DAA Unit 4 Analysis
DAA Unit 4 Analysis
2M questions:
1. State the time complexity.
2. Write Pseudocodes.
3. What is the application of ..?
PYQ:
1. (i) Write the algorithm for solving all pair shortest path (Floyd – Warshall)
(ii) Solve the graph whose weighted matrix is given below
2. (i) Write Warshall's algorithm for finding transitive closure of a directed graph.
(ii) Find the transitive closure for the graph.
- - 3. (i) Define Minimum Spanning Tree.
(ii) List the properties of spanning tree.
(iii) Provide the algorithms for Krushkal's .
(iv) Identify the minimum spanning tree for graph in Figure using Krushkal's
(v) Compute the minimum spanning tree for the given Graph using Prim's and Krushkal’s
algorithm.
4. (i) Write Ford-Fulkerson algorithm for finding max flow in the network.
(ii) What is the Time complexity of Ford-Fulkerson algorithm.
(iii) Find maximum flow for the graph given in the Figure,mention the algorithmic technique used
5. Define topological sorting. Apply DFS for graph to solve topological sorting.
(Graph not found)
6. Design an algorithm for DFS traversal methods.Comment on it’s efficiency.Apply the same for the
given graph.
7. Calculate the shortest distance and shortest path from vertex 5 to vertex 0 using Dijkstra’s
algorithm.
8. Design and describe an algorithm to calculate the maximum flow through a tree,with a specific
root as a source and any one leaves a valid sink.
Solve the problem using the same.
Out of syllabus :
1. Explain the algorithm for finding the shortest paths from the source to all vertices in the given
graph with negative weight edge. Considering 'A' as the source vertex find the distance to all
vertices for graph
2. Develop an algorithm for solving the instance of the sum of subsets problem using dynamic
programming technique. Apply the same for the following S={3,5,6,7} and amount = 15.
3. Hamiltonian circuits.