+1 vote
in Data Structures & Algorithms II by (110k points)
Which of the following step is taken after finding an element having value greater than the element being searched?

(a) linear search takes place in the forward direction

(b) linear search takes place in the backward direction

(c) binary search takes place in the forward direction

(d) binary search takes place in a backward direction

The question was asked in an interview.

This key question is from Searching in section Searching of Data Structures & Algorithms II

1 Answer

+1 vote
by (614k points)
selected by
 
Best answer
Right answer is (b) linear search takes place in the backward direction

Best explanation: First an element having value greater than the element being searched is found. After this linear search is performed in a backward direction.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...