My Report

Data Structure II Practice Test 5


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Breadth First Search is equivalent to which of the traversal in the Binary Trees?

2. A simple acyclic path between source and sink which pass through only positive weighted edges is called?

3. Consider the following graph. What is the minimum cost to travel from node A to node C?
bellman-ford-algorithm-questions-answers-q12

4. If there are n couples who would prefer each other to their actual marriage partners, then the assignment is said to be unstable.

5. A graph is said to have a negative weight cycle when?

6. What is the simplest method to prove that a graph is bipartite?

7. Which of the following is not a branch and bound strategy to generate branches?

8. A matching that matches all the vertices of a graph is called?

9. Given pseudo code of Dijkstra's Algorithm.

//Initialise single source(G,s)
S=0
Q=V[G]
While Q != 0
    Do u=extract-min(Q)
        S=S union {u}
	    For each vertex v in adj[u]
	        Do relax(u,v,w)

What happens when "While Q != 0" is changed to "while Q>1"?

10. How many solution/solutions are available for a graph having negative weight cycle?


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.