Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

INTERNAL ASSESSMENT TEST – 02 (IAT-II) MAY 2023

2022-2023 EVEN SEMESTER


Date : 10.05.23 Time : 9.30 am to 12.30 am
Subject : Algorithms Year : II
Subject code : CS3401 Branch : BE-CSE
Sem : S4
K2- K3- K4- K5- K6-Creating
K1-Remembering
Understanding Applying Analyzing Evaluating

Bloom’s
Q.No Question CO
Taxonomy
An NP-hard problem can be solved in
1. deterministic polynomial time, how?(
CO5 K1

2. Differentiate NP hard and NP complete problem CO2 K2


CO5 K2
3. What are tractable and non-tractable problems?

4. What do you meant by primality testing CO5 K2


5. When can a node be terminated in the subset-sum problem CO4 K2
6. Define Hamiltonian circuit problem. CO4 K1
7. Give a template for a generic backtracking algorithm CO4 K2
8. What is backtracking CO4 K2
9. Define multistage graphs. Give an example. CO3 K1
10. Write the Pseudo-code for Greedy Algorithm CO3 K1

Write an algorithm to solve the Travelling salesman problem


6(a) CO5 K3
and prove that it is a 2 time approximation algorithm .
OR
Experiment with the nearest-neighbor algorithm and
6(b) CO5 K3
multifragme nt- heuristic algorithm for TSP problem.
What is class NP? Discuss about any five problems for which
7(a) CO5 K2
no polynomial time for TSP problem.
OR
7(b) Discuss the approximation algorithm for NP-hard problem. CO5 K2
Apply Branch and bound algorithm to solve the travelling
salesman problem.

8(a) C04 K3

OR

Solve the following instance of knapsack problem by branch


and bound algorithm W= 15.
8(b) CO4 K3
Items {1,2,3,4,5,6},Weight (5,7,2,4,5,1}
,Profit {40,35,18,4,10,2}
Let w= {5, 7, 10, 12, 15, 18, 20} and m=35.Find all
9(a) possible subset of w whose sum is equivalent to m. Draw CO4 K2
the portion of state space tree for this problem.
OR
9(b) Describe the backtracking solution to solve 8-Queens problem CO4 K2
Using Dynamic approach programming, solve the following
graph using the backward approach.

10a) CO3 K3

OR
Write the algorithm for quick sort. Provide a complete
10b) analysis of quick sort for the given set of numbers CO3 K3
12,33,23,43,44,55,64,77 and 76.

You might also like