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

Which of the following cases does NOT exist while calculating time complexity?

The correct answer is

Null case

The option "Null case" is not a standard or recognized term when calculating time complexity. Time complexity deals with the performance of an algorithm as the input size varies or under specific input arrangements (best/worst/average scenario), not a state referred to as a "Null case". Therefore, the case that does NOT exist while calculating time complexity is the Null case.

Was this answer helpful?

Important Questions from Introduction

  1. In the following table, the left column contains the names of standard graph algorithms and the right column contains the time complexities of the algorithms. Here, n and m are number of vertices and edges, respectively. Match each algorithm with its time complexity.

    List IList II
    Standard graph algorithmsTime complexities
    A.Bellman‐Ford algorithmI.O(m*log n)
    B.Kruskal’s algorithmII.O(n 3)
    C.Floyd‐Warshall algorithmIII. O(n*m)
    D.Topological sortingIV.O(n + m)

    Choose the correct answer from the options given below :

  2. How many cards must be selected from a standard deck of 52 cards to guarantee that at least three hearts are present among them?

  3. Match List 1 with List 2 and choose the correct answer from the code given below:

    List I

    (Graph Algorithm)

    List II

    (Time Complexity)

    a) Dijkstra’s algorithm

    i) Θ(E log E)

    b) Kruskal’s algorithm

    ii) Θ(V 3)

    c) Floyd-Warshall algorithm

    iii) Θ(V 2)

    d) Topological sorting

    iv) Θ(V + E)

    Where V and E are the number of vertices and edges in graph respectively.

  4. The solution of recurrence relation: T(n)=2T(sqrt(n)) + lg(n) is

  5. Modulus of elasticity of concrete, E is calculated using:

Need Expert Advice?

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