Model Question Paper
Model Question Paper
Tech CSE
(SEM- V) ODD SEMESTER THEORY EXAMINATION
DESIGN & ANALYSIS OF ALGORITHMS
Time: 3 Hours Total Marks: 100
Note: (i) Attempt all questions.
(ii) All questions carry equal marks.
(iii) Be precise in your answer.
(iv) No second answer book will be provided.
(v) Make suitable assumptions, if required.
Here jobs are from J1………..J9. The execution time of each job is required 1 unit of time. You
can calculate one job at a time. Each job Ji has profit Pi and deadline di. You will get profit
Pi, if job Ji is completed before end of deadline di. What is the maximum profit?
(c) Write short notes on following:
(i) Amortized Analysis.
(ii) Branch-and-Bound.
70 40 30
C 20 D
60 50
(b) Give the Dijkstra’s Algorithm for single source shortest path. Give a counter example
that shows that Dijkstra’s algorithm may not work for a weighted connected graph with
negative weight.
(c) Define Depth First Search. Write an algorithm for DFS, discussing its time complexity
also illustrates with some example.