Pakistan's best MCQs practice hub — FPSC · PPSC · CSS · NTS · Other Exams
Login

Which search algorithm requires data to be sorted beforehand and repeatedly divides the search interval in half?

ALinear Search
BBinary Search
CDepth-First Search (DFS)
DBreadth-First Search (BFS)

Explanation

Binary Search requires a pre-sorted array. It compares the target value to the middle element, cutting the search domain in half with each iteration, achieving an efficient time complexity of O(log n).

Exam Relevance
  • Topic: Data Structures & Algorithms
  • Subtopic: Searching Algorithms
Submitted by: mcqstutor Team More Computer MCQs →

No Comments

Leave a comment

Your email address will not be published. Required fields are marked *