This download link is referred from the post: PTU B.Tech Dec 2018 5th Semester Question Papers || Punjab Technical University
Roll No. HEEEEEEEEEEE Total No. of Pages : 02
Total No. of Questions : 18
--- Content provided by FirstRanker.com ---
B.Tech.(CSE) (2011 Onwards) (Sem.-5)
DESIGN & ANALYSIS OF ALGORITHMS
Subject Code : BTCS-503
M.Code : 70536
Time : 3 Hrs. Max. Marks : 60
--- Content provided by FirstRanker.com ---
INSTRUCTION TO CANDIDATES :
- SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each.
- SECTION-B contains FIVE questions carrying FIVE marks each and students have to attempt any FOUR questions.
- SECTION-C contains THREE questions carrying TEN marks each and students have to attempt any TWO questions.
SECTION-A
--- Content provided by FirstRanker.com ---
Answer the following questions :
- What is an algorithm?
- If f(n) = n! and g(n) = 2n, indicate whether, f= O(g), or f= Ω(g), or both (f= Θ(g)).
- What do you mean by dynamic programming?
- State the time complexity of Bubble sort.
- Explain the applications of depth first search algorithm.
- Describe asymptotic notation.
- What is order statistics?
- What do you mean by randomization?
- What is convex hulls?
- Explain the time complexity of binary search.
--- Content provided by FirstRanker.com ---
--- Content provided by 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, f2(n) = 2n, f3(n) =n + 10, f4(n) = 10n, f5(n) = 100n, and f6(n) = n 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.
--- Content provided by FirstRanker.com ---
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 :
--- Content provided by FirstRanker.com ---
- Divide and conquer technique
- Greedy algorithm
18.
- Why do we perform topological sorts only on DAGs? Explain.
- Using Dijkstra’s algorithm find the shortest path from A to D for the following graph.
--- Content provided by FirstRanker.com ---
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.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: PTU B.Tech Dec 2018 5th Semester Question Papers || Punjab Technical University