DAA Suggestion
DAA Suggestion
Subject Code:PCCCS404
CO Distribution Analysis At A Glance
C.O. Type C.O. Total In-Percentage
CO1 24 18.60
CO2 39 30.23
CO3 45 34.88
CO4 21 16.28
Page 1 of 9
© Q.Bank:PCCCS404, Printed by:G12169sc, Date & Time:2-5-23 11:19:11
p1-(55-255)
Modul
Sl.No. Question Marks CO BL
e
Find the running time of the following program:
function(int n){
55 for(int i=1; i<=n; i++) 5 2 CO1 BL1
for(int j=1; j<=n; j*=2)
printf(“*”);
}
56 Is 2n+1 = O(2n)? Justify your answer. 5 2 CO1 BL1
Find the time complexity of the following recurrence
58 relation, using the Recursion Tree method: 10 1 CO1 BL2
T (n) = 3T (n/2) + n log n
Define recursion tree with an example. State the
80 differences of Divide and Conquer with Dynamic 5 2 CO3 BL3
Programming?
Demonstrate the basic characteristics of dynamic
118 2 3 CO3 BL3
programming.
What exactly do you mean by dynamic programming
120 2 3 CO3 BL3
memorization?
Which approach should we consider when choosing
between the top-down approach and the bottom-up
123 5 3 CO3 BL3
approach solutions for the same problem? Explain with
an example.
Show how the dynamic programming approach can be
124 5 3 CO3 BL4
used to resolve matrix chain multiplication problems.
With an example explain Optimal Substructures
125 5 3 CO3 BL3
and Overlapping Subproblems characteristics.
Discuss the steps to get the minimum cost value for
the following matrices under matrix chain multiplication
126 10 3 CO3 BL3
using dynamic programming. The matrices have size
2x3, 3x4, 4x5, and 5x7.
Use the fundamental principle of Floyd-Warshall’s
127 algorithm to find the shortest path from node 2 to node 10 3 CO3 BL3
4 for the following graph.
153 What was the first problem proved as NP complete? 2 4 CO4 BL1
“P class belongs to NP class” – explain it with an
154 2 4 CO4 BL2
example.
164 Prove that 3-CNF SAT problem is NP Hard. 10 4 CO4 BL4
167 Prove that 3-CNF SAT problem is NP. 5 4 CO4 BL4
Prove that 2-CNF SAT problem is polynomial time
170 5 4 CO4 BL4
solvable.
Sort the following according to their asymptotic
195 complexity (in non-decreasing order) 2 1 CO1 BL1
n1/2 , log n , 100n , 50n + 2n , 5n2 + 7n log n + 10100
Write the algorithm for detecting cycle in an undirected
206 5 3 CO3 BL3
graph using BFS with the help of an example graph.
Write divide and conquer algorithm for matrix
207 5 2 CO3 BL3
multiplication.
253 Discuss the limitations of the Bellman-Ford algorithm. 2 3 CO3 BL2
Describe the kinds of issues that dynamic
254 2 3 CO3 BL2
programming can help us address.
Page 2 of 9
© Q.Bank:PCCCS404, Printed by:G12169sc, Date & Time:2-5-23 11:19:11
255 Solve Traveling Salesman Problem using DP strategy. 5 3 CO3 BL3
Write the differences between feasible solutions and
256 2 3 CO3 BL2
optimal solutions.
2 257 State the differences between 0/1 knapsack and
2 3 CO3 BL2
greedy knapsack with examples.
marks
258
When will a recurrence relation fall into Case 2 of
2 1 CO1 BL2
Master Theorem?
Write down the differences between feasible solutions
259 2 1 CO1 BL2
and optimal solutions.
260 Mention the steps of the Recursion tree method. 2 1 CO1 BL2
What is least cost branch and bound? Solve the below
0/1 Knapsack problem using least cost branch and
bound technique. M=15 Kg. Also show the state-space
tree.
261 Item Pi Wi 10 4 CO3 BL3
1 10 2 p2-(261-266)
2 10 4
3 12 6
4 18 9
Why Dijkstra’s algorithm fails with negative edge
weight? Explain with an example. How Bellman Ford
262 10 3 CO3 BL3
algorithm overcome this disadvantage of Dijkstra’s
shortest path algorithm? Explain with an example.
Describe the advantages of branch and bound over
264 brack tracking. How a maximization problem is solved 5 4 CO4 BL4
using branch and bound?
What is bounding function in the context of branch and
265 bound algorithm? Explain the bounding functions used 5 4 CO4 BL4
in solving 15-puzzle problem using branch and bound?
Describe Floyd-Warshall algorithm and derive its time
266 5 3 CO3 BL3
complexity.
267 Explain LIFO branch and bound. 2 4 CO3 BL3
Derive the time complexity of Bellman-Ford algorithm
268 2 3 CO4 BL4
in case of complete graph.
What is the time complexity of the knapsack problem using
269 branch and bound?
2 4 CO4 BL2
2 270
How Branch and bound approach differs from
backtracking?
2 4 CO4 BL2
marks
When Bellman-Ford algorithm outperforms over
271 2 4 CO3 BL2
Dijkstra algorithm?
Which algorithmic approach is used in Floyd- Warshall
272 2 3 CO2 BL1
algorithm?
Write down the pseudocode to compute the shortest
273 2 3 CO4 BL1
path in the Dijkstra algorithm.
What is the time complexity of the Bellman-Ford
274 2 3 CO2 BL1
algorithm?
Can we solve the all pair shortest path problem using
275 2 3 CO3 BL4
the Dijkstr algorithm? Justify your answer.
How Dijkstra algorithm outperforms the Bellman-Ford
276 2 3 CO3 BL3
algorithm?
Page 3 of 9
© Q.Bank:PCCCS404, Printed by:G12169sc, Date & Time:2-5-23 11:19:11
Illustrate the problem of graph coloring with a suitable
277 2 3 CO3 BL2
example.
How can the Graph Coloring problem be applied to
278 2 3 CO3 BL4
real-world scenarios?
2 How can the N-Queens problem be extended to a
marks279 generalized version with different board sizes and 2 3 CO3 BL4
numbers of queens?
Write down the time complexity for the Subset Sum
280 2 3 CO3 BL2
problem using backtracking.
Write down some real-life application of fractional
281 2 3 CO3 BL2
knapsack problem.
282 State the Max Flow Min cut theorem for network flow. 2 4 CO4 BL2
283 Write down a few applications on network flow. 2 4 CO4 BL4
What do you mean by in-flow and out-flow for a node in
284 2 4 CO4 BL3
a flow network?
What do you mean by capacity of the flow
285 network? Can the flow through an edge be greater 2 4 CO4 BL3
than its capacity?
Using the dynamic programming approach, find
whether a solution exists or not to the Subset Sum
286 Problem for the set of integers {2, 3, 7, 8, 10} and a 10 3 CO3 BL5
target sum of 14. Show your work step by step and
explain the time complexity of your algorithm.
Calculate the maximum flow between the source and
the sink in the given below graph using the Folk-
Fulkerson algorithm p3-(286-293)
Page 4 of 9
© Q.Bank:PCCCS404, Printed by:G12169sc, Date & Time:2-5-23 11:19:11
for(int i=0;i<=n;i++)
p4-(302-327)
Page 5 of 9
© Q.Bank:PCCCS404, Printed by:G12169sc, Date & Time:2-5-23 11:19:11
Write an algorithm to design the Fibonacci series. Let f
(n) and g(n) be asymptotically positive functions.
309 Prove or disprove each of the following conjecture: 10 1 CO1 BL3
Page 6 of 9
© Q.Bank:PCCCS404, Printed by:G12169sc, Date & Time:2-5-23 11:19:11
In a transportation network, the nodes represent cities
or towns, and the edges represent roads or railway
321 lines connecting them. How can you use some existing 5 2 CO2 BL5
algorithmic solution to find the most cost-effective way
of connecting all the cities?
In telecommunications, antennas need to be placed in
such a way that they do not interfere with each other's
322 signals. Show how you can solve/model this problem 5 3 CO3 BL5
using the concept of the N-Queens problem to find the
optimal placement of antennas on a grid.
In cartography, graph coloring is used to color the
regions of a map such that adjacent regions have
323 different colors. Show using an example scenario with 5 3 CO3 BL5
at least 8 regions, how this problem can be modeled
using graph coloring problem.
Consider a city with multiple intersections that have
traffic lights. Each traffic light controls the flow of traffic
for a particular direction. The traffic lights at different
324 intersections should be coordinated in a way that 10 3 CO3 BL5
minimizes traffic congestion and delays. Show how
graph coloring problem can be used to solve this
problem
Consider the following variation of the subset sum
problem: given a set of integers S = {a1, a2, ..., an}, find
a subset T of S such that the sum of the elements of T
is as close as possible to a target integer k, without
325 exceeding it. If there are multiple subsets that achieve 10 3 CO3 BL6
the same closeness to k, choose the one with the
minimum elements.
Describe an algorithm to solve this problem. Analyze
the complexity of your algorithm.
Consider a transportation network consisting of a set of
factories and a set of warehouses, connected by a
network of roads. Each factory has a certain supply of
goods that need to be transported to the warehouses,
and each warehouse has a certain demand for goods.
The transportation cost between each factory and
326 10 4 CO4 BL6
warehouse is known, and each road has a certain
capacity that limits the amount of goods that can be
transported on it.
Formulate this problem as a network flow problem, and
describe how to construct the corresponding flow
network.
Explain how the Ford-Fulkerson Algorithm works for
327 10 4 CO4 BL3
network flow. Analyze its time complexity.
What is the time complexity of the greedy algorithm
328 2 2 CO2 BL3
used in the fractional knapsack problem?
Can the greedy fractional knapsack algorithm be used
329 2 2 CO2 BL3
to solve the subset sum problem?
What is the main drawback of the greedy algorithm
330 2 2 CO2 BL3
used in the fractional knapsack problem?
Page 7 of 9
© Q.Bank:PCCCS404, Printed by:G12169sc, Date & Time:2-5-23 11:19:11
2 marks
What is the objective of the job sequencing problem
331 2 2 CO2 BL2
with deadline?
What is the difference between a spanning tree and a
332 2 2 CO2 BL2
minimum spanning tree?
333 Is a minimum spanning tree unique for a given graph? 2 2 CO2 BL2
334 What is the objective of the N-Queen problem? 2 3 CO3 BL2
Can the greedy algorithm always find the optimal
335 2 3 CO3 BL2
coloring for a given graph?
How does backtracking work in the subset sum
336 2 3 CO3 BL3
problem?
Describe the fundamental difference between Divide
337 2 2 CO2 BL2
and Conquer algorithm and Greedy algorithm.
Solve the 8-puzzle problem using branch and bound.
p5-(338-349)
Apply Floyd Warshall Algorithm and find out all pair
shortest path matrix using dynamic programming.
Page 9 of 9
© Q.Bank:PCCCS404, Printed by:G12169sc, Date & Time:2-5-23 11:19:11