You are on page 1of 8

School of Computer Science and Engineering

Fall Semester 2023-24 UG Seniors (B.Tech 2021 Batch)


Continuous Assessment Test – II
Programme Name &Branch: B.Tech BBS SLOT:G1 and G2
Course Name & code: CBS3003 – Design and Analysis of Algorithms
Class Numbers: 1317, 1316, 1318, 1319
Faculty Names: Prof.Saravanan.R, Prof.Thangaramya.K, Prof.Iyappan.P, Prof.Srivani.A
Exam Duration: 90 Min. Maximum Marks: 50
Q.No. Questions Max
Marks
1. Given a sequence of matrices <8,5,10,20,5>. Using Dynamic 10
programming find the minimum number of scalar multiplications needed and also
write the optimal multiplication order.
2. Traverse the given graph with the necessary traversals by taking vertex 1 as start vertex. 10
If several nodes can be chosen at some steps of the traversal, pick the vertex in
ascending order. Use appropriate data structures and show all possible intermediate steps
diagrammatically.

1 6

2 7

3. Discuss about augmenting path with suitable example. Consider the given network flow 10
graph and apply Ford Fulkerson algorithm to compute the max-flow using augmenting
paths in the given network where the weighted edges indicate the capacity of the
channel. Discuss its time complexity. (Step by step solution is required).
4. i) Write kruskal’s algorithm and draw the minimum cost spanning tree for the given 5
graph using the same. (show all the stages)

ii) Arrange the vertices of the given digraph in topological ordering . If not possible then 5
justify your answer with proper explanation

5. Elaborate in detail about the following with proper explanation. 10

i) Tractable Problems ii) Intractable Problems iii)NP Hard Problems

iv)NP Complete Problems

You might also like