MEDIUM
Earn 100

The lenear time complexity is named as linear because its time complexity is of the order of .

50% studentsanswered this correctly

Important Questions on Data Structure

HARD
An algorithm is made up of two independent time complexities f(n) and g(n). Then the complexities of the algorithm is in the order of _____.
HARD
When the efficiency of algorithm determine, then the space factor is measured by _____.
HARD

Which of the following statements is true?

I. As the number of entries in the hash table increases, the number of collisions increases.

II. Recursive programs are efficient.

III The worst time complexity of quick sort is Om2.

IV. Binary search using a linked list is efficient.

HARD

int i=0; 
  while(i<5){ //runs 5 times 
    i++; 
  } 

 time complexity of the loop is

MEDIUM
The _________ of the algorithm is the function defined by the average number of steps taken on any instance of size n.
MEDIUM

The general step wise procedure for Big-O runtime analysis :

  1. Eliminate all excluding the highest order terms.
  2. Express the maximum number of operations, the algorithm performs in terms of n.
  3. Figure out what the input is and what n represents.
  4. Remove all the constant factors.

Correct the Sequence

MEDIUM
 If for an algorithm time complexity is given by O(n) then complexityof it is:
MEDIUM
 To calculate the running time find the maximum number of nested loops that go through a significant portion of the Output.