Professional Documents
Culture Documents
4
4
NY
5
3
CK
WN
Q22. Use Floydd-Warshall Algorithm to find the shortest paths for all pairs of
vertices in the given graph.
2
a
b
7
3
c
d
1
Q23. What are minimum spanning trees? Write and explain any algorithm to find
a minimum spanning tree for a given graph.
Q24. What do you understand by Maximum flow, augmenting path?
Q25. What is planar graph explain with the help of an example.
Q26. Discuss the classes P, NP, NP complete, and NP hard with examples. How can
we show that a problem is NP complete.
Q27. Write and explain different Approximation algorithms.
Q28. Explain Binomial Heap.
Q29. Write and explain the concept of sorting networks. Design a sorting network to
sort four elements 2,8,3,6.
Prepared By-Archana R Raut
7
4
6
3
T (n) = 4 T (n / 2) + n
T (n) = 4 T (n / 2) + n2
T (n) = T (n / 2) + 1
T (n) = 4 T (n / 2) + n2 log n
Q44. Apply Kruskals Algorithm to find minimum spanning tree on the following graph:
b
11
4
a
14
6
1
10
Q45. Apply Prims Algorithm to find minimum spanning tree on the following graph:
11
4
a
7
h
14
6
1
10
Frequency
5
9
12
13
16
45
If the compression technique used is Huffman Coding, find the Huffman tree.
Q. 65. Write short notes on
(a) Graph coloring