Searching on Data Structure and Algorithms related Questions and Answers - Page 12

Question 111 : What is the value of jump taken for maximum efficiency while implementing jump search?
1. n/2
2. n2
3. n1/2
4. log n
View Answer   Discuss with Members

Question 112 : The array is as follows: 1,2,3,6,8,10. At what time the element 6 is found? (By using linear search(recursive) algorithm)
1. 4th call
2. 3rd call
3. 6th call
4. 5th call
View Answer   Discuss with Members

Question 114 : Choose the recursive formula for the Fibonacci series.(n>=1)
1. F(n) = F(n+1) + F(n+2)
2. F(n) = F(n) + F(n+1)
3. F(n) = F(n-1) + F(n-2)
4. F(n) = F(n-1) – F(n-2)
View Answer   Discuss with Members

Question 116 : Given an array arr = {45,77,89,90,94,99,100} and key = 100; What are the mid values(corresponding array elements) generated in the first and second iterations?
1. 90 and 99
2. 90 and 100
3. 89 and 94
4. 94 and 99
View Answer   Discuss with Members

Question 117 : What is the best case runtime of linear search(recursive) algorithm on an ordered set of elements?
1. O(1)
2. O(n)
3. O(logn)
4. O(nx)
View Answer   Discuss with Members

Question 118 : Given, arr = {1,3,5,6,7,9,14,15,17,19} key = 17 and delta = {5,3,1,0}
How many key comparisons are made?(exclude the comparison used to decide the left or right sub array)
1. 4
2. 3
3. 5
4. 6
View Answer   Discuss with Members


View 111 - 118 of 118 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter