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

2022

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

Answer: C. Array and Linked List, respectivelyKey points: Binary search requires the data to be sorted and needs direct (random) access to elements. Arrays provide O(1) random access, making binary search…

  1. A.

    Linked List and Queue, respectively

  2. B.

    Linked List and Array, respectively

  3. C.

    Array and Linked List, respectively

  4. D.

    Array and Stack, respectively

Attempted by 1100 students.

Show answer & explanation

Correct answer: C

Key points: Binary search requires the data to be sorted and needs direct (random) access to elements. Arrays provide O(1) random access, making binary search efficient on arrays with time complexity O(log n).

Explore the full course: Up Lt Grade Assistant Teacher 2025

Loading lesson…