Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged binary-search
0
0 votes
1
1 answer
152
152 views
GO Classes DPP | GATE CS, DA | Algorithms | Binary Search
Which of the following cannot be a sequence of keys compared during a binary search for some target key?$500,200,450,180$ $500,450,200,180$ $180,500,200,450$ $180,200,500...
GO Classes
152
views
asked
Aug 26
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-260
goclasses-cs-dpp
goclasses-cs-dpp-day-358
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
binary-search
+
–
2
2 votes
2
2 answers
183
183 views
GO Classes DPP | GATE CS, DA | Algorithms | Binary Search Insertion
Suppose Binary Search is used in Insertion Sort to locate where the $i$th element should be inserted among the first $i-1$ elements.What is the worst-case running time of...
GO Classes
183
views
asked
Aug 12
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-248
goclasses-cs-dpp
goclasses-cs-dpp-day-346
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
sorting
binary-search
insertion-sort
+
–
2
2 votes
1
1 answer
210
210 views
GO Classes DPP | GATE CS, DA | Algorithms | Binary Search
A sorted table contains $2000$ distinct elements in increasing order. A key is searched using binary search, and it is guaranteed that the key exists in the table.What is...
GO Classes
210
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-241
goclasses-cs-dpp
goclasses-cs-dpp-day-339
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
binary-search
numerical-answers
+
–
4
4 votes
2
2 answers
871
871 views
GATE DA 2026 | Question: 21
Let A be a sorted array containing $1000$ distinct integers. You perform a recursive binary search on $\text{A}$ to find an element $\text{y}$. Suppose each comparison ch...
gatecse
871
views
asked
Feb 23
Algorithms
gateda-2026
algorithms
binary-search
numerical-answers
one-mark
+
–
8
8 votes
5
5 answers
5.3k
5.3k views
GATE DA 2025 | Question: 17
For which of the following inputs does binary search take time $O(\log n)$ in the worst case?An array of $n$ integers in any orderA linked list of $n$ integers in any ord...
Arjun
5.3k
views
asked
Feb 27, 2025
Algorithms
gateda-2025
algorithms
binary-search
multiple-selects
one-mark
+
–
23
23 votes
4
4 answers
9.0k
9.0k views
GATE DS&AI 2024 | Question: 30
Let $F(n)$ denote the maximum number of comparisons made while searching for an entry in a sorted array of size $n$ using binary search.Which ONE of the following op...
Arjun
9.0k
views
asked
Feb 16, 2024
Algorithms
gate-ds-ai-2024
algorithms
binary-search
two-marks
+
–
6
6 votes
2
2 answers
1.8k
1.8k views
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 18
Bob writes down a number between 1 and 1,000. Mary must identify that number by asking "yes/no" questions of Bob. Mary knows that Bob always tells the truth. If Mary uses...
GO Classes
1.8k
views
asked
Feb 5, 2024
Algorithms
goclasses2024-mockgate-14
algorithms
binary-search
one-mark
+
–
0
0 votes
2
2 answers
1.9k
1.9k views
Binary search is performed on a sorted array of n elements. The search key is not in the array and falls between the elements at positions m and m+1 (where 1 ≤ m < n). How many comparisons are needed in the worst case scenario to determine that the key is not in the array?
Binary search is performed on a sorted array of n elements. The search key is not in the array and falls between the elements at positions m and m+1 (where 1 ≤ m < n). Ho...
dhruba
1.9k
views
asked
Jun 5, 2023
Algorithms
algorithms
binary-search
sorting
+
–
2
2 votes
2
2 answers
652
652 views
ISI 2019 | PCB CS | Question: 1
Let $A$ be a sorted array containing $n$ distinct integers, such that, for all $1 \leq i<j \leq n$, we have $A[i]<A[j]$. Note that the integers stored in the array $A$ ar...
admin
652
views
asked
Aug 8, 2022
Algorithms
isi2019-pcb-cs
descriptive
array
algorithm-design
binary-search
time-complexity
+
–
0
0 votes
2
2 answers
834
834 views
ISI2020-PCB-CS: 3
You are given two sorted arrays $X[\;]$ and $Y[\;]$ of positive integers. The array sizes are not given. Accessing any index beyond the last element of the arrays returns...
admin
834
views
asked
Aug 8, 2022
Algorithms
isi2020-pcb-cs
descriptive
algorithms
binary-search
array
time-complexity
data-structures
+
–
10
10 votes
3
answers
3 answers
2.2k
2.2k views
GO Classes Test Series 2023 | Algorithms | Test 1 | Question: 9
Given an unsorted array of $n$ distinct elements, you want to find this set of $\log n$ elements: those at positions $1,2,4,8,16, \ldots, n/2$ if array were sorted. In ot...
GO Classes
2.2k
views
asked
Jun 13, 2022
Algorithms
goclasses2024-algo-1-weekly-quiz
goclasses
algorithms
searching
binary-search
two-marks
+
–
1
1 vote
1
1 answer
623
623 views
NIELIT 2021 Dec Scientist A - Section B: 88
The recurrence relation for binary search algorithm is :$\text{T(n) = 2T (n/2) + O (1)}$$\text{T(n) = 2T (n/2) + O (n)}$$\text{T(n) = T (n/2) + O (1)}$$\text{T(n) = T (n/...
soujanyareddy13
623
views
asked
Jan 9, 2022
Algorithms
nielit2021dec-scientista
recurrence-relation
binary-search
algorithm-design
data-structures
asymptotic-notations
+
–
40
40 votes
10
answers
10 answers
28.4k
28.4k views
GATE CSE 2021 | Set 2 | Question: 8
What is the worst-case number of arithmetic operations performed by recursive binary search on a sorted array of size $n$?$\Theta ( \sqrt{n})$$\Theta (\log _2(n))$$\Theta...
Arjun
28.4k
views
asked
Feb 18, 2021
Algorithms
gatecse-2021-set2
algorithms
binary-search
time-complexity
one-mark
+
–
1
1 vote
2
2 answers
896
896 views
NIELIT Scientist B 2020 November: 101
The program written for binary search, calculates the midpoint of the span as $\text{mid : =(Low+High)/2}$. The program works well if the number of elements in the list i...
gatecse
896
views
asked
Dec 9, 2020
Algorithms
nielit-scb-2020
programming-in-c
data-structures
binary-search
algorithms
+
–
3
3 votes
1
1 answer
2.5k
2.5k views
NIELIT 2016 MAR Scientist C - Section C: 52
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 ...
admin
2.5k
views
asked
Apr 2, 2020
Data Structures
nielit2016mar-scientistc
data-structures
binary-search
time-complexity
binary-heap
+
–
1
1 vote
1
1 answer
4.5k
4.5k views
Made Easy Test Series
Given a sorted array of distinct integers A[1,2,3,..,n], the tightest upper bound to check the existence of any index i for which A[i]= i is equal to O($n^{a}log^{b}n)$. ...
Somoshree Datta 5
4.5k
views
asked
Dec 31, 2018
Algorithms
binary-search
algorithms
made-easy-test-series
numerical-answers
+
–
11
11 votes
6
6 answers
7.4k
7.4k views
TIFR CSE 2019 | Part A | Question: 5
Asha and Lata play a game in which Lata first thinks of a natural number between $1$ and $1000$. Asha must find out that number by asking Lata questions, but Lata can onl...
Arjun
7.4k
views
asked
Dec 18, 2018
Algorithms
tifr2019
algorithm-design
binary-search
+
–
1
1 vote
4
4 answers
3.1k
3.1k views
Binary Search
There are two sorted list each of length n. An element to be searched in the both the lists. The lists are mutually exclusive. The maximum number of comparisons required ...
Abhishek Kumar 38
3.1k
views
asked
Dec 15, 2018
Algorithms
data-structures
binary-search
+
–
2
2 votes
1
1 answer
2.0k
2.0k views
GATEBOOK_DSA4_2
In which of the cases shown below, Binary search can not always be applied for searching(A) Hierarchical data record (B) Internet Domain name conversion (C) Searching a t...
Ayush Upadhyaya
2.0k
views
asked
Nov 15, 2018
Programming in C
algorithms
binary-search
+
–
3
3 votes
0
0 answers
1.6k
1.6k views
GATEBOOK-DSA4_8
Consider a sorted array A of n integer elements, A[0]...A[n − 1].A search operation is to be performed on this array using .Binary search algorithm. If the element being ...
Ayush Upadhyaya
1.6k
views
asked
Nov 15, 2018
Programming in C
data-structures
binary-search
algorithms
+
–
0
0 votes
1
1 answer
2.9k
2.9k views
Algorithim
The average number of comparisons made by binary search for an unsuccessful search in array A
Sonali1996
2.9k
views
asked
Sep 22, 2018
Algorithms
binary-search
+
–
0
0 votes
2
2 answers
1.9k
1.9k views
Test Series
ben10
1.9k
views
asked
Sep 9, 2018
Algorithms
algorithms
binary-search
recurrence-relation
ace-test-series
+
–
0
0 votes
1
1 answer
703
703 views
SELF DOUBT
https://gateoverflow.in/18752/tifr2010-b-29IN THIS QUESTION WHY WE CANT NOT APPLY SINGLE BINARY SEARCH ON ENTIRE ARRAY ???BECAUSE LET WE HAVE ARRAY 1 14 3 12 5 10 7 8 9 ...
eyeamgj
703
views
asked
Sep 1, 2018
Algorithms
binary-search
algorithms
+
–
2
2 votes
4
4 answers
4.9k
4.9k views
Binary Search
for binary search in an array of n elements the average number of searches is $\left \lfloor \log_{2}n \right \rfloor$ or $\left \lceil \log_{2}n \right \rceil$ ?
aditi19
4.9k
views
asked
Aug 20, 2018
Algorithms
binary-search
+
–
0
0 votes
2
2 answers
1.5k
1.5k views
Binary search
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(A) (n)(B) (logn)(C) (log*n)(D) (1)
Sabir Khan
1.5k
views
asked
Aug 8, 2018
Algorithms
algorithms
sorting
binary-search
time-complexity
+
–
Page:
1
2
3
next »