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

R7

DESIGN AND ANALYSIS OF ALGORITHMS

(Computer Science and Engineering)

B.Tech III Year I Semester (R07) Supplementary Examinations December/January 2013/14

Time: 3 hours

Answer any FIVE questions All questions carry equal marks ***** 1 (a) (b) 2 (a) (b) Write an algorithm for transpose of a matrix by using step count method. Discuss the different approaches to find the time complexity of algorithm.

Max Marks: 80

Explain the different set operations with suitable examples. Prove that if G is a connected undirected graph with n vertices and n – 1 edge, then G is a tree. Present a pseudo code for quick sort by using randomized technique. Draw the tree of calls for the merge sort by the following set of elements (179, 285, 310, 351, 652, 254, 423, 450, 520 and 861). Find optimal solution for the following knapsack problem: n = 3, m = 20, (P1,P2,P3) = (25,24,15) and (W 1,W 2,W3) = (18,15,10). Define the following terms: (i) Feasible solution. (ii) Optimal solution. (iii) Object function.

3 (a) (b)

4 (a) (b)

5 (a) How would you construct an optimal binary search tree for a set of n keys if all the keys are equally likely to be searched for? What will be the average number of comparisons in the tree if n = 2k? (b) Write a pseudo code of the bottom-up dynamic programming algorithm for the knapsack problem. 6 (a) Write a backtracking algorithm for solving the knapsack optimization problem using the variable tuple size formulation. (b) Explain in detail how the technique of backtracking can be applied to solve the 8-queens problem. 7 (a) Prove the validity of the lower bound given by form (11, 2) for instances of the traveling sales man problem with integer symmetric matrix of intercity distances. (b) How would you modify lower bound (11, 2) for non symmetric distance matrices? 8 (a) Write short notes on: (i) Classes of NP-hard. (ii) Classes of NP-complete. How are P and NP problems related? *****

(b)

- ssc Telugu(FL) (AP)
- ssc Social Textbook (AP)
- 07A4EC01 Environmental Studies
- R7410506 Mobile Computing
- R7410407 Operating Systems
- R5410201 Neural Networks & Fuzzy Logic
- 9A13701 Robotics and Automation
- 9A05707 Software Project Management
- R7312301 Transport Phenomena in Bioprocesses
- R7311506 Operating Systems
- R7311306 Process Control
- R7311205 Distributed Databases
- R7311006 Process Control Instrumentation
- R7310406 Digital Communications
- R7310306 Heat Transfer
- R7310206 Linear Systems Analysis
- R7310106 Engineering Geology
- R5310406 Digital Communications
- R5310204 Power Electronics
- 9A23501 Heat Transfer in Bioprocesses
- 9A21506 Mechanisms & Mechanical Design
- 9A15502 Digital System Design
- 9A14503 Principles of Machine Design
- 9A10505 Principles of Communications

QP

QP

- ssc Telugu(FL) (AP)
- ssc Social Textbook (AP)
- 07A4EC01 Environmental Studies
- R7410506 Mobile Computing
- R7410407 Operating Systems
- R5410201 Neural Networks & Fuzzy Logic
- 9A13701 Robotics and Automation
- 9A05707 Software Project Management
- R7312301 Transport Phenomena in Bioprocesses
- R7311506 Operating Systems
- R7311306 Process Control
- R7311205 Distributed Databases
- R7311006 Process Control Instrumentation
- R7310406 Digital Communications
- R7310306 Heat Transfer
- R7310206 Linear Systems Analysis
- R7310106 Engineering Geology
- R5310406 Digital Communications
- R5310204 Power Electronics
- 9A23501 Heat Transfer in Bioprocesses
- 9A21506 Mechanisms & Mechanical Design
- 9A15502 Digital System Design
- 9A14503 Principles of Machine Design
- 9A10505 Principles of Communications
- 9A05505 Operating Systems
- 9A04504 Digital IC Applications
- 9A03505 Heat Transfer
- 9A02505 Electrical Machines-III
- 9A01505 Engineering Geology

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