Top 50 Algorithms MCQs with Answers (original) (raw)

What is the time complexity of Floyd–Warshall algorithm to calculate all pair shortest path in a graph with n vertices?

A problem in NP is NP-complete if

External entities in DFD are shown by:-

If we use Radix Sort to sort n integers in the range (nk/2,nk], for some k>0 which is independent of n, the time taken would be?

Which of the following is not true about comparison-based sorting algorithms?

Which of the following is not O(n2)?

The following statement is valid. log(n!) = [Tex]\theta [/Tex](n log n).

Which of the following algorithms sort n integers, having the range 0 to (n2 - 1), in ascending order in O(n) time ?

Which of the following algorithm design technique is used in merge sort?

Quick sort is run on 2 inputs shown below to sort in ascending order

A. 1, 2, 3……n
B. n, n – 1, n – 2 …… 1

Let C1 and C2 be the number of comparisons made for A and B respectively. Then

There are 50 questions to complete.

Take a part in the ongoing discussion