1,038 views
2 votes
2 votes
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 telephone number in directory
(D) An array of integers

Answer is given to be (D). I thought it must be (B).

 

Please help. I understand (D) is okay when the array is not sorted.But what about other options?

1 Answer

0 votes
0 votes
I am not sure about the option A,B,C but i am sure about the option D

there is two types of search on array of integers l

linear search

binary search

when array of integers are unsorted then we cannot apply binary search

Related questions