QP

Attribution Non-Commercial (BY-NC)

18 views

QP

Attribution Non-Commercial (BY-NC)

- 9A05707 Software Project Management
- Control Systems (Cs) Notes as Per Jntua
- telugu-first-language.pdf
- ssc Social Textbook (AP)
- 9A13701 Robotics and Automation
- 07A4EC01 Environmental Studies
- R7410506 Mobile Computing
- R7410407 Operating Systems
- R5410201 Neural Networks & Fuzzy Logic
- 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

You are on page 1of 1

R7

DESIGN AND ANALYSIS OF ALGORITHMS

(Computer Science and Engineering)

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)

- 9A05707 Software Project ManagementUploaded bysivabharathamurthy
- Control Systems (Cs) Notes as Per JntuaUploaded bysivabharathamurthy
- telugu-first-language.pdfUploaded bysatya
- ssc Social Textbook (AP)Uploaded bysivabharathamurthy
- 9A13701 Robotics and AutomationUploaded bysivabharathamurthy
- 07A4EC01 Environmental StudiesUploaded bysivabharathamurthy
- R7410506 Mobile ComputingUploaded bysivabharathamurthy
- R7410407 Operating SystemsUploaded bysivabharathamurthy
- R5410201 Neural Networks & Fuzzy LogicUploaded bysivabharathamurthy
- R7312301 Transport Phenomena in BioprocessesUploaded bysivabharathamurthy
- R7311506 Operating SystemsUploaded bysivabharathamurthy
- R7311306 Process ControlUploaded bysivabharathamurthy
- R7311205 Distributed DatabasesUploaded bysivabharathamurthy
- R7311006 Process Control InstrumentationUploaded bysivabharathamurthy
- R7310406 Digital CommunicationsUploaded bysivabharathamurthy
- R7310306 Heat TransferUploaded bysivabharathamurthy
- R7310206 Linear Systems AnalysisUploaded bysivabharathamurthy
- R7310106 Engineering GeologyUploaded bysivabharathamurthy
- R5310406 Digital CommunicationsUploaded bysivabharathamurthy
- R5310204 Power ElectronicsUploaded bysivabharathamurthy
- 9A23501 Heat Transfer in BioprocessesUploaded bysivabharathamurthy
- 9A21506 Mechanisms & Mechanical DesignUploaded bysivabharathamurthy
- 9A15502 Digital System DesignUploaded bysivabharathamurthy
- 9A14503 Principles of Machine DesignUploaded bysivabharathamurthy
- 9A10505 Principles of CommunicationsUploaded bysivabharathamurthy
- 9A05505 Operating SystemsUploaded bysivabharathamurthy
- 9A04504 Digital IC ApplicationsUploaded bysivabharathamurthy
- 9A03505 Heat TransferUploaded bysivabharathamurthy
- 9A02505 Electrical Machines-IIIUploaded bysivabharathamurthy