Gujarat Technological University
Gujarat Technological University
Gujarat Technological University
___________
MARKS
Q.1 (a) Explain Asymptotic notations. 03
(b) What is Principle of Optimality? Explain its use in Dynamic 04
Programming Method.
(c) Explain why algorithm analysis is important. Also explain Worst Case, 07
Best Case & Average Case Complexity of algorithm.
Q.4 (a) Explain Optimal Substructure and Overlapping sub problems with 03
suitable example.
(b) Explain All Pair Shortest Path Algorithm. 04
(c) Given two sequences of characters, M=<A,B,C,D,B,A,C,D,F>, 07
N=<C,B,A,F> Obtain the Longest Common Subsequence. Write
equations and necessary steps.
1
OR
Q.4 (a) Explain: Articulation Point, Graph, Minimum Spanning Tree. 03
(b) Explain Depth First Search algorithm. 04
(c) Solve the following Knapsack Problem using Dynamic Method. Write 07
the equation and steps for solving above problem. n = 5, W = 100
Object 1 2 3 4 5
Weight (w) 10 20 30 40 50
Value (v) 20 30 66 40 60
*************