Vidyalelo
Data Structure · all questions

Searching Algorithms
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

132

Questions

4/7

Page

Pick an option on a question to see the right answer and solution.

What is the time complexity of Fibonacci Search?

Select an option to see the answer and solution.

Is there any difference in the speed of execution between linear serach(recursive) vs linear search(lterative)?

Select an option to see the answer and solution.

What is the average case time complexity of binary search using recursion?

Select an option to see the answer and solution.

Choose the correct while loop statement from the following that finds the range where are the element being search is present (x is the element being searched in an array arr of size n)?

Options are not available for this question.

Select an option to see the answer and solution.

Can linear search recursive algorithm and binary search recursive algorithm be performed on an unordered list?

Select an option to see the answer and solution.

What is the auxiliary space complexity of Z algorithm for pattern searching (m = length of text, n = length of pattern)?

Select an option to see the answer and solution.

What are the updated values of high and low in the array if the element being searched is lower than the value at calculated index in interpolation search? (pos = current position)

Select an option to see the answer and solution.

What is the worst case for linear search?

Select an option to see the answer and solution.

Interpolation search is an in place algorithm.

Select an option to see the answer and solution.

What is the time complexity of Z algorithm for pattern searching (m = length of text, n = length of pattern)?

Select an option to see the answer and solution.

What is the auxiliary space requirement of the jump search?

Select an option to see the answer and solution.

What is the best case and worst case complexity of ordered linear search?

Select an option to see the answer and solution.

What is the time complexity of binary search with iteration?

Select an option to see the answer and solution.

Is the space consumed by the linear search(recursive) and linear search(iterative) same?

Select an option to see the answer and solution.

What will be the maximum number of comparisons that can be made in jump search algorithm (assuming k to be blocks jumped)?

Select an option to see the answer and solution.

Which of the following searching algorithm is fastest when the input array is sorted but has non uniformly distributed values?

Select an option to see the answer and solution.

Interpolation search has a better time complexity than exponential search for any given array.

Select an option to see the answer and solution.

What is the worst case time complexity of KMP algorithm for pattern searching (m = length of text, n = length of pattern)?

Select an option to see the answer and solution.

What is the auxiliary space requirement of the exponential sort when used with recursive binary search?

Select an option to see the answer and solution.

The naive pattern searching algorithm is an in place algorithm.

Select an option to see the answer and solution.