Professional Documents
Culture Documents
Daa 2016 BE-160
Daa 2016 BE-160
Instruction : Answer any five questions, selecting at least two from each
Part.
PART – A
1. a) With a neat flow diagram, explain the typical sequence of steps in designing
and analysis of an algorithm. 10
b) Explain the concept of asymptotic notations, indicating the commonly used
notations with examples. 10
2. a) Give the general plan for analyzing the time efficiency of recursive algorithms.
If M(n) denotes the number of moves in tower of Hanoi puzzle, when ‘n’ disks
are involved, give the recurrence relation for M(n). Design and analyze
the algorithm for the tower of Hanoi problem. 10
b) Find the optimal solution for the following instance of the Knapsack problem,
using Brute force technique
n = 4; M = 6;
{W1, W2, W3, W4} = {2, 3, 1, 2}
{P1, P2, P3, P 4} = {10, 15, 12, 18}. 10
4. a) Explain the three major variations of decrease and conquer technique, with
examples. 10
b) Design an algorithm to traverse the graph using BFS method. Show the
traversal for the following graph :
10
PART – B
10
*BE160* -3- BE – 160
7. a) Apply Kruskal’s algorithm to find the minimum spanning tree for the following
graph :
10
b) Solve the single source shortest path problem using Dijkstra’s algorithm by
considering ‘a’ as the source.
10
BE – 160 -4- *BE160*
_______________________