Professional Documents
Culture Documents
Wa0016.
Wa0016.
6 3 Define path compression, and identify how does it improves the performance 2
of find operations in disjoint set.
7 3 Provide an example where Euler circuits are relevant in gaming. 2
8 3 Below is a Königsberg bridge problem find a path over every one of seven 2
bridges that span a forked river flowing past an island—but without crossing
any bridge twice. Identify the path.
10 3 Write the algorithm for Union by Height (or Union by Rank) strategy in 2
disjoint set data structures.
11 4 Compare and contrast the greedy approach with other algorithmic 2
paradigms, such as dynamic programming or divide and conquer.
12 4 Enlist the key step in Dijkstra's algorithm for finding the shortest path. 2
13 4 Given a ship with storage capacity of 400 units and 8 containers with 2
weights of 100, 200, 50, 90, 150, 50, 20, 80 determine the maximum number
of containers that can be loaded into the ship. Is the solution obtained from
the greedy approach guaranteed to be optimal?
14 4 Can Kruskal's algorithm handle graphs with negative edge weights? Justify. 2
17 4 Construct Huffman’s tree for the following data and form codes for each 2
character.
25 5 King Arthur expects 150 knights for an annual dinner at Camelot. Some of 2
the knights quarrel with each other and Arthur knows who quarrels with
whom. Arthur wants to seat his guests around a table so that no two
quarrelling knights sit next to each other. Which standard problem can be
used to model King Arthur’s task?justify.
26 5 Illustrate the role of bounding in the branch and bound algorithm when 2
solving the assignment problem?
27 5 State the decision version of the Knapsack problem. 2
PART B
28 3 Determine the articulation point(s) in the given graph and explain it with an 15
algorithm.
29 3 Identify the all possible Euler circuits for the graph and outline the procedure 7
used.
30 3 Describe the union and find operations in the disjoint set data structure with 8
an example.
31 3 Write an algorithm and analyze the time complexity of union and find 15
operations in disjoint set data structures using Union by Size and Union by
Height strategies.
32 4 Determine the shortest cost path from Vertex 1 to all other vertices using 15
greedy approach and outline the algorithm used.
33 4 Construct MST using Kruskal's algorithm and outline the procedure used. 8
34 4 Using Dynamic Programming Recurrence relation C(n,k) = C(n-1,k-1) + 7
C(n-1,k) for n > k > 0 C(n,0) = C(n, n) = 1. find the binomial coefficient
6C4.
35 4 Obtain the minimun cost path from S to T for the given multi-stage graph 15
problem and outline the algorithm used
39 5 Solve the following TSP problem using Branch and Bound technique 8