Which of the following data structures are most appropriate for searching a…

2023

Which of the following data structures are most appropriate for searching a key in the list of elements, using Binary and Sequential search algorithms?

Answer: C. Array and Link List, respectivelyBinary search requires random access to elements, which is efficiently supported by arrays. Sequential (linear) search can be performed efficiently on a…

  1. A.

    Link List and Queue, respectively

  2. B.

    Link List and Array, respectively

  3. C.

    Array and Link List, respectively

  4. D.

    Array and Stack, respectively

Attempted by 1205 students.

Show answer & explanation

Correct answer: C

Binary search requires random access to elements, which is efficiently supported by arrays. Sequential (linear) search can be performed efficiently on a linked list by traversing nodes one by one.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…