Computers and Technology, 22.06.2019 09:50 laurentsofia09

# Assume that you have an sorted array of records. assume that the length of the array (n) is known. give two different methods to search for a specific value in this array. you can use english or pseudo-code for your algorithm. what is the time complexity for each algorithm and why?

Answers: 1

Computers and Technology, 22.06.2019 07:20

Write a pseudocode solution for each of these problems. 1. design a while loop that lets that user enter a number. the number should be multiplied by 10, and the result stored in a variable named product. the loop should iterate as long as product contains a value less than 100. 2. design a do-while loop that asks the user to enter two numbers. the numbers should be added and the sum displayed. the loop should ask the user whether he or she wishes to perform the operation again. if so, the loop should repeat; otherwise it should terminate. 3. design a for loop that displays the following set of numbers: 0, 10, 20, 30, 40, 50 100. 4. design a nested loop that displays 10 rows of # characters. there should be 15 # characters in each row. 5. convert this for loop to a while loop. declare integer count for count = 1 to 50 display count end for 6. find the error in the following pseudocode. declare boolean finished = false declare integer value, cube while not finished display “enter a value to be cubed.” input value; set cube = value ^ 3 display value, “ cubed is “, cube end while

Answers: 2

Computers and Technology, 22.06.2019 11:00

When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours

Answers: 1

Computers and Technology, 23.06.2019 10:20

Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?

Answers: 1

Computers and Technology, 23.06.2019 23:10

En que pais se invento la mina antipersonal

Answers: 2

Assume that you have an sorted array of records. assume that the length of the array (n) is known. g...

Geography, 07.11.2020 08:40

Mathematics, 07.11.2020 08:40

Mathematics, 07.11.2020 08:40

Social Studies, 07.11.2020 08:40

Mathematics, 07.11.2020 08:40

English, 07.11.2020 08:40

Mathematics, 07.11.2020 08:40

Mathematics, 07.11.2020 08:50