Bellmann Ford algorithm is used to indicate whether the graph has negative weight cycles or not.
Select an option to see the answer and solution.
Which of the following is not an application of Breadth First Search?
A. Finding shortest path between two nodes
B. Finding bipartiteness of a graph
C. GPS navigation system
D. Path Finding
Select an option to see the answer and solution.
Choose the correct statement from the following.
A. branch and bound is more efficient than backtracking
B. branch and bound is not suitable where a greedy algorithm is not applicable
C. branch and bound divides a problem into at least 2 new restricted sub problems
D. backtracking divides a problem into at least 2 new restricted sub problems
Select an option to see the answer and solution.
Which is the correct technique for finding a maximum matching in a graph?
A. BFS traversal
B. DFS traversal
C. Shortest path traversal
D. Heap order traversal
Select an option to see the answer and solution.
Which type of best first search algorithm was used to predict the closeness of the end of path and its solution?
A. Greedy BFS
B. Divide and Conquer
C. Heuristic BFS
D. Combinatorial
Select an option to see the answer and solution.
In the given graph, identify the shortest path having minimum cost to reach vertex E if A is the source vertex.
A. a-b-e
B. a-c-e
C. a-c-d-e
D. a-c-d-b-e
Select an option to see the answer and solution.
Which of the following is not an application of Depth First Search?
A. For generating topological sort of a graph
B. For generating Strongly Connected Components of a directed graph
C. Detecting cycles in the graph
D. Peer to Peer Networks
Select an option to see the answer and solution.
The Data structure used in standard implementation of Breadth First Search is?
A. Stack
B. Queue
C. Linked List
D. Tree
Select an option to see the answer and solution.
Floyd Warshall Algorithm can be used for finding . . . . . . . .
A. Transitive closure
B. Minimum spanning tree
C. Topological sort
D. Single source shortest path
Select an option to see the answer and solution.
Consider the following graph. Using Kruskal's algorithm, which edge will be selected first?
Select an option to see the answer and solution.
Dijkstra's Algorithm is used to solve . . . . . . . . problems.
A. Single source shortest path
B. All pair shortest path
C. Sorting
D. Network flow
Select an option to see the answer and solution.
What will be the result of depth first traversal in the following tree?
A. 4 2 5 1 3
B. 1 2 4 5 3
C. 4 5 2 3 1
D. 1 2 3 4 5
Select an option to see the answer and solution.
Which data structure is used for implementing a LIFO branch and bound strategy?
A. stack
B. queue
C. array
D. linked list
Select an option to see the answer and solution.
In the given graph, what is the minimum cost to travel from vertex 1 to vertex 3?
Select an option to see the answer and solution.
What is the space complexity of standard DFS(V: no. of vertices E: no. of edges)?
A. O(V+E)
B. O(V)
C. O(E)
D. O(V*E)
Select an option to see the answer and solution.
A person wants to visit some places. He starts from a vertex and then wants to visit every place connected to this vertex and so on. What algorithm he should use?
A. Depth First Search
B. Breadth First Search
C. Trim's algorithm
D. Kruskal's algorithm
Select an option to see the answer and solution.
How many solution/solutions are available for a graph having negative weight cycle?
A. One solution
B. Two solutions
C. No solution
D. Infinite solutions
Select an option to see the answer and solution.
Kruskal's algorithm is used to . . . . . . . .
A. find minimum spanning tree
B. find single source shortest path
C. find all pair shortest path algorithm
D. traverse the graph
Select an option to see the answer and solution.
Both LIFO branch and bound strategy and backtracking leads to depth first search.
Select an option to see the answer and solution.
Which of the following is false about the Kruskal's algorithm?
A. It is a greedy algorithm
B. It constructs MST by selecting edges in increasing order of their weights
C. It can accept cycles in the MST
D. It uses union-find data structure
Select an option to see the answer and solution.