0% found this document useful (0 votes)
31 views2 pages

QP22O1P - 290: Time: 3 Hours Total Marks: 100

This document contains the questions for a B. Tech theory examination on Design and Analysis of Algorithms. It has 7 sections with a total of 100 marks. Section A contains 10 short answer questions worth 2 marks each. Section B contains 3 long answer questions worth 10 marks each, involving solving recurrences, binomial heaps, minimum spanning trees, and the N queens problem. Section C contains 2 algorithm questions worth 10 marks each, on merge sort and heap sort. Section D contains 2 questions worth 10 marks each, on red-black trees, skip lists, knapsack problems, and shortest paths. Section E contains 2 questions worth 10 marks each on the travelling salesman problem, Hamiltonian cycles, vertex cover, and pattern matching

Uploaded by

AnKush Dada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views2 pages

QP22O1P - 290: Time: 3 Hours Total Marks: 100

This document contains the questions for a B. Tech theory examination on Design and Analysis of Algorithms. It has 7 sections with a total of 100 marks. Section A contains 10 short answer questions worth 2 marks each. Section B contains 3 long answer questions worth 10 marks each, involving solving recurrences, binomial heaps, minimum spanning trees, and the N queens problem. Section C contains 2 algorithm questions worth 10 marks each, on merge sort and heap sort. Section D contains 2 questions worth 10 marks each, on red-black trees, skip lists, knapsack problems, and shortest paths. Section E contains 2 questions worth 10 marks each on the travelling salesman problem, Hamiltonian cycles, vertex cover, and pattern matching

Uploaded by

AnKush Dada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Printed Page: 1 of 2 

Subject Code: KCS503


0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0
 
B. TECH.
(SEM V) THEORY EXAMINATION 2021-22
DESIGN AND ANALYSIS OF ALGORITHM
Time: 3 Hours Total Marks: 100
Note: 1. Attempt all Sections. If require any missing data; then choose suitably.
2. Any special paper specific instruction.

SECTION A

1. Attempt all questions in brief. 2 x 10 = 20


a. How analyze the performance of an algorithm in different cases?
b. Derive the time complexity of Merge sort.
c. Explain left rotation in RB tree.
d. Write down the properties of Fibonacci Heap.
e. Explain Greedy programming in brief.
f. What do you mean by convex hull?
g. Write down the Floyd Warshal algorithm.
h. Explain Branch and Bound method in brief.
i. Explain Randomized algorithm in brief.
j. Explain NP-complete and NP-Hard.

1
90

13
SECTION B
_2

2.
2. Attempt any three of the following: 10 x 3 = 30
1P

24
a. Solve the recurrence

5.
2O

i) T (n) =3T (n/4) + cn2 using recursion tree method.


ii)
.5
T (n) = n + 2T (n/2) using Iteration method. (Given T(1)=1)
P2

17
b. What is Binomial Heap? Write down the algorithm for Decrease key operation
Q

|1

in Binomial Heap also write its time complexity.


c. Write and explain the Kruskal algorithm to find the Minimum Spanning Tree of
17

a graph with suitable example.


9:

d. What is N queens problem? Draw a state space tree for 4 queens problem using
backtracking.
:5

e. Write Rabin Karp string matching algorithm. Working modulo q=11, how
08

many spurious hits does the Rabin karp matcher in the text T=
21

3141592653589793, when looking for the pattern P=26.


20

SECTION C
-
ec

3. Attempt any one part of the following: 10 x 1 = 10


D

(a) Write Merge sort algorithm and sort the following sequence {23, 11, 5, 15, 68,
0-

31, 4, 17} using merge sort.


|3

(b) What do you understand by stable and unstable sorting? Sort the following
sequence {25, 57, 48, 36, 12, 91, 86, 32} using heap sort.

4. Attempt any one part of the following: 10 x 1 = 10


(a) Discuss the various cases for insertion of key in red-black tree for given
sequence of key in an empty red-black tree- {15, 13, 12, 16, 19, 23, 5, 8}.
(b) What is skip list? Explain the Search operation in Skip list with suitable

QP22O1P_290 | 30-Dec-2021 08:59:17 | 117.55.242.131


Printed Page: 2 of 2 
Subject Code: KCS503
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0
 
example also write its algorithm.

5. Attempt any one part of the following: 10 x 1 = 10


(a) What is Knapsack problem? Solve Fractional knapsack problem using greedy
programming for the following four items with their weights w = {3, 5, 9, 5}
and values P = {45, 30, 45, 10} with knapsack capacity is 16.
(b) Write down the Bellman Ford algorithm to solve the single source shortest path
problem also write its time complexity.

6. Attempt any one part of the following: 10 x 1 = 10


(a) What is travelling salesman problem (TSP)? Find the solution of following TSP
using Branch & Bound method
0 20 30 10 11
15 0 16 4 2
3 5 0 2 4
19 6 18 0 3
16 4 7 16 0

1
(b) Explain the method of finding Hamiltonian cycles in a graph using
90

13
backtracking method with suitable example.
_2

2.
1P

24
7. Attempt any one part of the following: 10 x 1 = 10

5.
2O

(a) Write and explain the algorithm to solve vertex cover problem using

.5
approximation algorithm.
P2

17
(b) Explain and Write the Knuth-Morris-Pratt algorithm for pattern matching also
write its time complexity.
Q

|1

 
17
9:
:5
08
21
- 20
ec
D
0-
|3

QP22O1P_290 | 30-Dec-2021 08:59:17 | 117.55.242.131

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy