Question
a.
Ο(n2)
b.
Ο(nlog n)
c.
Ο(n3)
d.
Ο(n)
Posted under Data Structures and Algorithms
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the worst case run-time complexity of binary search algorithm?
Dragan Donku : June 26, 2023
the worst case run time compelxity of binary search algorithm is O(log(n))
Click to add ReplySimilar Questions
Discover Related MCQs
Q. Apriory algorithm analysis does not include −
View solution
Q. Time complexity of Depth First Traversal of is
View solution
Q. Travelling salesman problem is an example of
View solution
Q. Project scheduling is an example of
View solution
Q. Which of the following is an example of dynamic programming approach?
View solution
Q. Which of the following uses memoization?
View solution
Q. Which of the following asymptotic notation is the worst among all?
View solution
Q. Minimum number of moves required to solve a Tower of Hanoi puzzle is
View solution
Q. Program with highest run-time complexity is
View solution
Q. The time complexity of quick sort is …………..
View solution
Q. Two main measures for the efficiency of an algorithm are
View solution
Q. The time factor when determining the efficiency of algorithm is measured by
View solution
Q. The space factor when determining the efficiency of algorithm is measured by
View solution
Q. Which of the following case does not exist in complexity theory
View solution
Q. The complexity of the average case of an algorithm is
View solution
Q. The complexity of linear search algorithm is
View solution
Q. The complexity of Binary search algorithm is
View solution
Q. The complexity of Bubble sort algorithm is
View solution
Q. The complexity of merge sort algorithm is
View solution
Q. Let A be an array of 31 numbers consisting of a sequence of 0’s followed by a sequence of 1’s. The problem is to find the smallest index i such that A[i] is 1 by probing the minimum number of locations in A. The worst case number of probes performed by an optimal algorithm is________.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Data Structures and Algorithms? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!