Design and Analysis of Algorithms 2073

Tribhuwan University
Institute of Science and Technology
2073
Bachelor Level / Fifth Semester / Science
Computer Science and Information Technology ( CSC-303 )
( Design and Analysis of Algorithms )
Full Marks: 80
Pass Marks: 32
Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.

Attempt all questions.

1.  Explain bog-oh, big-omega and big-theta notations for computing analysis of algorithm with example.

8 marks view

2.  What do you mean by recurrence relation? Solve the following recurrence relation using master method.  

                     

                                                                                                       

8 marks view

3.  What is quick sort? Trace the following data using quick sort algorithm.

        A[]={99, 50, 60, 8, 5, 6, 20, 25, 40}

8 marks view

4.  What is Greedy paradigm? Write down the Greedy job sequencing algorithm.

8 marks view

5.  Write algorithm to compute Longest Common Subsequence of given two sequences. Compute the LCS of “COMPANY” and “COLONY”. 

8 marks view

6.  What is Floyd’s algorithm? Write the details of Floyd’s algorithm to find shortest path in a graph.                                                                                                                          

8 marks view

7.  What is convex hull? Describe the Graham’s scan algorithm to compute convex hull.

8 marks view

8.  Describe the term Class-P, Class-NP and NP-completeness.   

8 marks view

9.  What is directed acyclic graph? How to find the shortest path from a vertex of directed acyclic graph?

8 marks view

10.  What is BST? Write the algorithm of insertion and deletion operation of BST

8 marks view