Sorting and Searching Algorithms

The 'Sorting and Searching Algorithms' test covers key questions on the efficiency and complexity of various sorting methods and their implementation. It also includes the analysis of search algorithms for accuracy and speed in different datasets.

Sample Questions

  1. Which sorting algorithm repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order?

    • Bubble Sort
    • Insertion Sort
    • Merge Sort
    • Quick Sort
  2. What is the time complexity of binary search in a sorted array?

    • O(n)
    • O(log n)
    • O(1)
    • O(n log n)
  3. Which searching algorithm checks each element one by one until the target is found?

    • Jump Search
    • Interpolation Search
    • Linear Search
    • Binary Search