github

Made bySaurav Hathi

CSE - Practice Test -21

Q1:

What is the time complexity of Bellman-Ford single-source shortest path algorithm on a complete graph of n vertices?

I . O(n^2)

II. O(nlogn)

III. O(n^3)

IV. O(n^3.logn)

Tags:
Section:
Algorithm
Options:
Q2:

In an unweighted, undirected connected graph, the shortest path from a node S to every other node is computed most efficiently, in terms of time complexity by

Tags:
Section:
Algorithm
Options:
Q3:

An undirected graph G has n nodes. Its adjacency matrix is given by an n × n square matrix whose (i) diagonal elements are 0‘s and (ii) non-diagonal elements are 1‘s. which one of the following is TRUE?

Tags:
Section:
Algorithm
Options:
Q4:

Let G be an undirected connected graph with distinct edge weight. Let emax be the edge with maximum weight and emin the edge with minimum weight. Which of the following statements is false?

Tags:
Section:
Algorithm
Options:
Q5:

Graph traversal is different from a tree traversal, because

Tags:
Section:
Algorithm
Options:
Q6:

Which of the following algorithms can be used to most efficiently determine the presence of a cycle in a given graph?

Tags:
Section:
Algorithm
Options:
Q7:

Dijkstra’s algorithm is based on

Tags:
Section:
Algorithm
Options:
Q8:

What is the time complexity of the brute force algorithm used to solve the Knapsack problem?

Tags:
Section:
Algorithm
Options:
Q9:

Which of the following problems is NOT solved using dynamic programming?

Tags:
Section:
Algorithm
Options:
Q10:

Dijkastra's algorithm is based on which paradigm?

Tags:
Section:
Algorithm
Options:
Q11:

What is the time complexity of Huffman Coding?

Tags:
Section:
Algorithm
Options:
Q12:

What algorithm technique is used in the implementation of Kruskal solution for the MST?

Tags:
Section:
Algorithm
Options:
Q13:

Rather than build a subgraph one edge at a time …………………………. builds a tree one vertex at a time.

Tags:
Section:
Algorithm
Options:
Q14:

Which of the following is not a backtracking algorithm?

Tags:
Section:
Algorithm
Options:
Q15:

Which of the following problems can be solved using recursion?

Tags:
Section:
Algorithm
Options: