Searching Algorithms - Study Mode
[#61] Is the space consumed by the linear search(recursive) and linear search(iterative) same?
Correct Answer
(A) No, recursive algorithm consumes more space
[#62] What will be the maximum number of comparisons that can be made in jump search algorithm (assuming k to be blocks jumped)?
Correct Answer
(C) k-1
[#63] Which of the following searching algorithm is fastest when the input array is sorted but has non uniformly distributed values?
Correct Answer
(C) binary search
[#64] Interpolation search has a better time complexity than exponential search for any given array.
Correct Answer
(B) False
[#65] What is the worst case time complexity of KMP algorithm for pattern searching (m = length of text, n = length of pattern)?
Correct Answer
(C) O(m)