Question

    Which algorithm is used to search for a specific element

    in a sorted array by repeatedly dividing the search interval in half?
    A Linear search Correct Answer Incorrect Answer
    B Binary search Correct Answer Incorrect Answer
    C Depth-first search Correct Answer Incorrect Answer
    D Breadth-first search Correct Answer Incorrect Answer

    Solution

    Binary Search algorithm is used to search for a specific element in a sorted array by repeatedly dividing the search interval in half

    Practice Next

    Relevant for Exams: