Skip to content
Early access — you're among the first to try PYQLabs. Share feedback
Concept drill

binary search

GATE CSE & IT · Algorithms - Time Complexity · 1994-2025

12
PYQs
100%
keyed
2
elite explanations
8
years appeared

Study anchor

Source-book anchor pending for this concept.

Practice action

Start latest PYQ

PYQs in this concept

All concepts →
2025 PYQ

An array $A$ of length $n$ with distinct elements is said to be bitonic if there is an index $1=i=n$ such that $A[1 . . i]$ is sorted in the non-decreasing order and $A[i+1 . . n]$...

mediumanswer keybasic explanation
2021 PYQ

What is the worst-case number of arithmetic operations performed by recursive binary search on a sorted array of size n?

easyanswer keybasic explanation
2017 Q3

Match the algorithms with their time complexities: Algorithm (P) Towers of Hanoi with n disks (Q) Binary search given n sorted numbers (R) Heap sort given n numbers at the worst ca...

mediumanswer key
2008 PYQ

Consider the following C program that attempts to locate an element x in an array Y[] using binary search. The program is erroneous. 1. f(int Y[10], int x) { 2. int i, j, k; 3. i =...

mediumanswer key
2008 PYQ

The minimum number of comparisons required to determine if an integer appears more than n/2 times in a sorted array of n integers is

mediumanswer keyelite explanation
2008 PYQ

Consider the following C program that attempts to locate an element x in an array Y[] using binary search. The program is erroneous. 1. f(int Y[10], int x) { 2. int i, j, k; 3. i =...

mediumanswer key
2007 PYQ

Consider the process of inserting an element into a Max Heap, where the Max Heap is represented by an array. Suppose we perform a binary search on the path from the new leaf to the...

mediumanswer key
2003 PYQ

The cube root of a natural number n is defined as the largest natural number m such that $${m^3} \le n$$. The complexity of computing the cube root of n (n is represented in binary...

mediumanswer keyelite explanation
2003 PYQ

The usual $$\Theta ({n^2})$$ implementation of Insertion Sort to sort an array uses linear search to identify the position where an element is to be inserted into the already sorte...

easyanswer key
1995 PYQ

Which of the following statements is true? I. As the number of entries in a hash table increases, the number of collisions increases. II. Recursive programs are efficient III. The...

easyanswer key
1994 PYQ

Linked lists are not suitable data structures of which one of the following problems?

easyanswer key
1994 PYQ

The recurrence relation that arises in relation with the complexity of binary search is:

easyanswer key