All Exams Test series for 1 year @ ₹349 only
Question

Arrange the following search and sort algorithms in ascending order of their worst-case complexities.

A. Merge sort

B. Linear Search

C. Bubble Sort

D. Binary Search

Choose the correct answer from the options given below:

This question was previously asked in
UGC NET 2022 Paper 1 Question Paper (22-Oct-2022) (Shift 2)
The correct answer is

D, B, A, C

Algorithms are compared by the growth rate of their worst-case running time on n elements.

Step 1 — Binary search halves the search range at every comparison: \(O(\log n)\).

Step 2 — Linear search may examine every element: \(O(n)\).

Step 3 — Merge sort splits in half and merges in linear time: \(O(n \log n)\).

Step 4 — Bubble sort compares adjacent pairs over n passes: \(O(n^2)\).

Step 5 — since \(\log n \lt n \lt n \log n \lt n^2\), the ascending order is D, B, A, C. The orders that begin with merge sort, or put bubble sort before merge sort, violate this growth ordering.

D, B, A, C option is correct.

Was this answer helpful?

Similar Questions

  1. Match the following :

     List – I List – II
    a.Bucket sorti.\(O(n^3 \lg n)\)
    b.Matrix chain multiplicationii.\(O(n^3)\)
    c.Huffman codesiii.\(O(n \lg n)\)
    d.All pairs shortest pathsiv.\(O(n)\)

    Codes :

    a b c d

  2. We can show that the clique problem is NP-hard by proving that

  3. To determine the efficiency of an algorithm the time factor is measured by :

  4. Given the following statements :

    \(S_{1}\) : The subgraph-isomorphism problem takes two graphs \(G_{1}\) and \(G_{2}\) and asks whether \(G_{1}\) is a subgraph of \(G_{2}\).

    \(S_{2}\) : The set-partition problem takes as input a set S of numbers and asks whether the numbers can be partitioned into two sets A and \(\bar{A} = S - A\) such that

    \(\sum_{x \in A} x = \sum_{x \in \bar{A}} x\)

    Which of the following is true ?

  5. An algorithm is made up of 2 modules \(M_{1}\) and \(M_{2}\). If time complexity of modules \(M_{1}\) and \(M_{2}\) are h(n) and g(n) respectively, the time complexity of the algorithm is

  6. If new item (P=5, W=2) is added to the list, total items is 8 and capacity is 25, then the best-case time of fractional knapsack for this case is __________.

  7. Choose the correct statement(s)

    A. A problem which is NP-Complete will have the property that it can be solved in polynomial time iff all other NP-complete problems can also be solved in polynomial time.

    B. All NP-complete problem are NP-hard problems.

    C. If an NP-hard problem can be solved in polynomial time, then all NP-complete problem can be solved in polynomial time

    D. Not all NP-hard-problems are NP-complete.

    Choose the correct answer from the options given below:

  8. Match the LIST-I with LIST-II

    LIST-I
    Algorithm
    LIST-II
    Complexity
    A. Insertion SortI. O(log n)
    B. Binary SearchII. O(n2)
    C. Quick SortIII. O(n-1)
    D. Selection SortIV. O(n log n)

    Choose the correct answer from the options given below:

  9. Red-black trees are one of many search tree schemes that are “balanced” in order to guarantee that basic dynamic-set operations take ________ time in the worst case.


Important Questions from Asymptotic Worst Case Time and Time Complexity

  1. Arrange the following in ascending order of their average case complexity.

    Selection-sort, Quick-sort, Linear search, Binary search

  2. Match the following :

     List – I List – II
    a.Bucket sorti.\(O(n^3 \lg n)\)
    b.Matrix chain multiplicationii.\(O(n^3)\)
    c.Huffman codesiii.\(O(n \lg n)\)
    d.All pairs shortest pathsiv.\(O(n)\)

    Codes :

    a b c d

  3. We can show that the clique problem is NP-hard by proving that

  4. To determine the efficiency of an algorithm the time factor is measured by :

  5. Given the following statements :

    \(S_{1}\) : The subgraph-isomorphism problem takes two graphs \(G_{1}\) and \(G_{2}\) and asks whether \(G_{1}\) is a subgraph of \(G_{2}\).

    \(S_{2}\) : The set-partition problem takes as input a set S of numbers and asks whether the numbers can be partitioned into two sets A and \(\bar{A} = S - A\) such that

    \(\sum_{x \in A} x = \sum_{x \in \bar{A}} x\)

    Which of the following is true ?

Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) 2026 Mock Test Series
796 Tests 2 Tests Free
219 Attempts
4.4(46)
English
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App