This action might not be possible to undo. Are you sure you want to continue?

Welcome to Scribd! Start your free trial and access books, documents and more.Find out more

li to get lots of stuff for free :)

Code No: R05220502

Set No. 1

II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2007 DESIGN AND ANALYSIS OF ALGORITHMS (Computer Science & Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Explain the asymptotic notations used in algorithm analysis. (b) Prove that f(n)=0(h(n)) where f(n)=0(g(n)) and g(n)=0(h(n)). [10+6]

2. (a) List some of the relative advantages and disadvantages of the partition algorithm (b) Write the Quicksort algorithm? Analize the time complexity in worst case. [6+10] 3. (a) How many comparisons of edge weights will be done by the minimum spanning tree algorithm, in total, if the input is a complete undirected graph with n vertices and vi is the start vertex. (b) Design a linear-time algorithm for solving the single source shortest path algorithm for directed a cyclic graphs represented by their adjacency linked lists. [6+10] 4. (a) Solve the following 0/1 Knapsack problem using dynamic programming m=6, n=3, (w1 , w2 , w3 )=(2,3,3), (p1 , p2 , p3 )=(1,2,4) (b) Write an algorithm of all pairs shortest path problem. [8+8]

5. (a) Write a pseudocode for ﬁnding the strongly connected components of directed graph. Also analyze its time complexity. (b) Explain the Inorder traversal of a tree with an example. 6. (a) Describe graph coloring problem and its time complexity. (b) Write an algorithm of 8-queens problem using backtracking. [8+8] [8+8]

7. (a) What is Bounding? Explain how these bound are useful in Branch and Bound methods. (b) Describe the TSP in Branch and Bound. 8. (a) Explain about cook’s theorem. (b) Explain the strategy to prove that a problem is NP hard. ⋆ get ⋆ Go to www.mdu.li to ⋆ ⋆ ⋆ lots of stuff for free :) [8+8] [8+8]

1 of 1

Go to www.mdu.li to get lots of stuff for free :)

Code No: R05220502

Set No. 2

II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2007 DESIGN AND ANALYSIS OF ALGORITHMS (Computer Science & Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Give a monte-carlo algorithm for ﬁnding the majority element in an array. (b) Show that f(n)=8n+128=0(n2 ).

m

[8+8]

**2. (a) Suppose a binary tree has leaves ℓ1 ℓ2 .......lm at depths d1 , d2 ....dm respectively prove that
**

i=1

2−di ≤ 1 and determine when the equality is true.

(b) Write and explain the control abstraction algorithm of divide and conquer. [8+8] 3. (a) What is spanning tree? Explain the prim’s algorithm with an example. (b) Explain the terms Feasible solution, optimal solution and objective function. [10+6] 4. (a) Find one problem for which the principle of optimality does not hold. Explain why the principle does not hold. (b) Find the shortest path between all pairs of nodes in the following graph. (Figure 4b) [8+8]

Figure 4b 5. (a) Write a pseudocode for ﬁnding the strongly connected components of directed graph. Also analyze its time complexity. (b) Explain the Inorder traversal of a tree with an example. 6. (a) Write an algorithm of ﬁnding all m-colorings of a graph. (b) Describe the 4-queens problem using backtracking. [8+8] [8+8]

Go Bounding? Explain how these bound are useful in Branch 7. (a) What is to www.mdu.li to get lots of stuff for free :) and Bound methods.

(b) Describe the TSP in Branch and Bound. 1 of 2 [8+8]

Go to www.mdu.li to get lots of stuff for free :)

Code No: R05220502 8. (a) Explain the classes of NP-hard and NP-complete.

Set No. 2

(b) Describe clique decision problem and write the algorithm for the same. [8+8] ⋆⋆⋆⋆⋆

Go to www.mdu.li to get lots of stuff for free :)

2 of 2

Go to www.mdu.li to get lots of stuff for free :)

Code No: R05220502

Set No. 3

II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2007 DESIGN AND ANALYSIS OF ALGORITHMS (Computer Science & Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Deﬁne omega notation. Explain the terms involved in it. Give an example. (b) Show that f1 (n)×f2 (n) = 0(g1 (n)×g2 (n) wheref1 (n) = 0(g1 (n) and f2 (n) = 0(g2 (n)). [10+6] 2. (a) Write and explain the control abstraction for Divide and conquer. (b) Suggest reﬁnements to mergesort to make it in-place. 3. (a) What is spanning tree? Explain the prim’s algorithm with an example. (b) Explain the terms Feasible solution, optimal solution and objective function. [10+6] 4. (a) For the Travelling sales person algorithm show that the time complexity is 0(n2 2n ) and space complexity is O(n2n ). (b) Write an algorithm of matrix chain multiplication. 5. (a) Explain the properties of strongly connected components. (b) Write a non-recursive algorithm of In-order traversal of a tree and also analyze its time complexity. [6+10] 6. Describe Backtracking technique to m-coloring graph. Explain with an example. [16] 7. (a) Explain the method of reduction to solve TSP problem using Branch and Bound. (b) Explain the principles of FIFO Branch and Bound. 8. (a) Explain the classes of P and NP. (b) Write a nondeterministic Knapsack algorithm. ⋆⋆⋆⋆⋆ [8+8] [8+8] [8+8] [8+8]

Go to www.mdu.li to get lots of stuff for free :)

1 of 1

Go to www.mdu.li to get lots of stuff for free :)

Code No: R05220502

Set No. 4

II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2007 DESIGN AND ANALYSIS OF ALGORITHMS (Computer Science & Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Deﬁne omega notation. Explain the terms involved in it. Give an example. (b) Show that f1 (n)×f2 (n) = 0(g1 (n)×g2 (n) wheref1 (n) = 0(g1 (n) and f2 (n) = 0(g2 (n)). [10+6] 2. (a) Write and explain the control abstraction for Divide and conquer. (b) Suggest reﬁnements to mergesort to make it in-place. 3. (a) What is spanning tree? Explain the prim’s algorithm with an example. (b) Explain the terms Feasible solution, optimal solution and objective function. [10+6] 4. (a) Explain the OBST algorithm. (b) Find the shortest tour of a TSP for following instance using dynamic programming A B C D A B C D ∞ 12 5 7 11 ∞ 13 6 4 9 ∞ 18 10 3 2 ∞ [8+8]

(c)

[8+8]

5. (a) Explain the properties of depth-ﬁrst search. (b) Write a non-recursive algorithm of Post-order traversal of a tree and also analyze its time complexity. [6+10] 6. (a) Draw the state space tree for m coloring when n=3 and m=3 (b) Write a recursive backtracking algorithm. [8+8]

7. Write the LCBB algorithm for the 0/1 Knapsack problem. Also Analyse its complexity. [16] 8. (a) Explain the classes of NP-hard and NP-complete. (b) Describe clique decision problem and write the algorithm for the same. [8+8] ⋆ get ⋆ Go to www.mdu.li to ⋆ ⋆ ⋆ lots of stuff for free :)

1 of 1

- Microprocessor
- microproce3
- microproc4
- Mi Crop 2
- Micro Processor and Applications
- Micro Processor 2
- Micro Processor
- mgfyre
- mfgsd
- mfgh
- MSC 3 - 2004 jan
- mfdgdf
- mfdg
- ME
- Mdu Prospectus
- Mdu Website
- Mdu Rotak Full Cse Syllabus
- Mdu Rohtak Full Mechanical Syllabus
- mdu_mech
- Mdu IT Full Syllabus
- mdu_it
- Mdu First Year Syllabus
- Mdu Eco Question Paper Dec
- Mdu Ece Full Syllabus

- CS2251_DAA_AM_2011
- Sol 4
- popl02
- Mathematics for Computer Science
- Exercise5 Sol
- Design Analysis and Algorithm
- 04107617
- ch9.6
- 1 3 Brute Force Algorithms
- Greedy
- A NEW SHORTEST ROUTING PATH ALGORITHM USING SPANNING TREES – A TECHNICAL RESEARCH
- String Matching
- SNDP
- 4 Routing
- A Ad
- abstracts
- 00040173
- A Fast Algorithm for Erosion and Dilation in Mathematical Morphology
- Lamport 84
- data structure
- Select
- Semigroups as Graphs, by W. B. Vasantha Kandasamy, Florentin Smarandache
- GraphLaplacian Tutorial
- Cut method and its applications in benzenoid graph
- Ming-Hsuan Kang- Toroidal Fullerenes with the Cayley Graph Structure
- MTH 221 Week 1 5 All Assignments and Discussion Questions - Page 2
- 2008 Net Science CD online market analysis Poster
- EDGE-TENACITY IN CYCLES AND COMPLETE GRAPHS
- Issn 1937 - 1055 Volume 4, 2009
- IJMC-4-2009-book

Are you sure?

This action might not be possible to undo. Are you sure you want to continue?

We've moved you to where you read on your other device.

Get the full title to continue

Get the full title to continue reading from where you left off, or restart the preview.

scribd