PTU B.Tech CSE 5th Semester May 2019 70536 DESIGN and ANALYSIS OF ALGORITHMS Question Papers

PTU Punjab Technical University B-Tech May 2019 Question Papers 5th Semester Computer Science Engineering (CSE)

www.FirstRanker.com
www.FirstRanker.com
Roll No.
Total No. of Pages : 02
Total No. of Questions : 18
B.Tech.(CSE) (2011 Onwards) (Sem.?5)
DESIGN & ANALYSIS OF ALGORITHMS
Subject Code : BTCS-503
M.Code : 70536
Time : 3 Hrs. Max. Marks : 60
INSTRUCTION TO CANDIDATES :
1.
SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
each.
2.
SECTION-B contains FIVE questions carrying FIVE marks each and students
have to attempt any FOUR questions.
3.
SECTION-C contains T HREE questions carrying T EN marks each and students
have to attempt any T WO questions.

SECTION-A
Answer the following questions :
1. What is an algorithm?
2. If f(n) = n! and g(n) = 2n, indicate whether f = 0(g), or f = (g), or both (f = (g)).
3. What do you mean by dynamic programming?
4. State the time complexity of Bubble sort.
5. Explain the applications of depth first search algorithm.
6. Describe asymptotic www.FirstRanker.com
notation.

7. What is order statistics?
8. What do you mean by randomization?
9. What is convex hulls?
10. Explain the time complexity of binary search.

1 | M-70536

(S2)-522
www.FirstRanker.com

www.FirstRanker.com
www.FirstRanker.com
SECTION-B
11. Take the following list of functions and arrange them in ascending order of growth rate.
That is, if function g(n) immediately follows function f(n) in your list, then it should be the
case that f(n) is O(g(n)).

f1(n) = n2.5, f 2(n) = 2n, f3(n) = n + 10, f4(n) = 10n, f5(n) = 100n, and f6(n) = n2 log n
12. Sort the list 415, 213, 700, 515, 712, 715 using Merge sort algorithm. Also explain the time
complexity of merge sort algorithm.
13. Explain breadth first search algorithm with an example.
14. Write a short note on approximation algorithms.
15. Explain the classes of P and NP.

SECTION-C
16. Explain Strassen's algorithm for matrix multiplication with the help of an example.
17. Write a short note for the following :

a. Divide and conquer technique

b. Greedy algorithm

18. a. Why do we perform topological sorts only on DAGs? Explain.

b. Using Dijkstra's algorithm find the shortest path from A to D for the following graph.
7
B
C
3
2
2
2
3
A
D
www.FirstRanker.com
E
F
6
1
2
2
G
H
4

Fig.1


NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any
page of Answer Sheet will lead to UMC against the Student.
2 | M-70536

(S2)-522
www.FirstRanker.com

This post was last modified on 04 November 2019