JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B. Tech II Year DESIGN AND ANALYSIS OF ALGORITHMS Previous Question Paper (September/October - 2023 - R15)

B. Tech | II Year | II Semester | R15 | September/October - 2023

Answer PaperPaper Code: 124CBMaximum Marks: 75Time: 3 Hours

Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.

Part A

125 marks
a

What is time complexity?

2 marks

Answer

Time complexity is a measure of the amount of time an algorithm takes to run as a function of the length of the input. It is typically expressed using asymptotic notation, such as Big O notation, to describe the upper bound of the growth rate of the algorithm's execution time.

b

Differentiate between Pseudocode and an algorithm.

3 marks

Answer

An algorithm is a step-by-step logical procedure or set of rules designed to solve a specific problem, independent of any programming language. Pseudocode is a high-level, informal description of an algorithm that uses structural conventions of programming languages but is intended for human reading rather than machine execution.

c

Write an algorithm of Union operation.

2 marks

Answer

Sign in to view the complete answer paper.

d

What is the importance of Game tree?

3 marks

Answer

Sign in to view the complete answer paper.

e

What is feasible solution?

2 marks

Answer

Sign in to view the complete answer paper.

f

Write an algorithm of Greedy Knapsack.

3 marks

Answer

Sign in to view the complete answer paper.

g

What is state space tree?

2 marks

Answer

Sign in to view the complete answer paper.

h

What are the advantages of Backtracking?

3 marks

Answer

Sign in to view the complete answer paper.

i

What is Non-Polynomial time algorithm?

2 marks

Answer

Sign in to view the complete answer paper.

j

What is decision problem?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Derive the time complexity of Strassen’s matrix multiplication.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the Amortized complexity.

5 marks

Answer

Sign in to view the complete answer paper.

OR
3

Write and explain the algorithm of Merge Sort and also analyze the time complexity of the same.

10 marks

Answer

Sign in to view the complete answer paper.

4

Write an algorithm to find the connected components using DFS and also analyze the time complexity of the same.

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Explain about the AND/OR graph with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm of BFS and also analyze the time complexity of the same.

5 marks

Answer

Sign in to view the complete answer paper.

6

Design a three stage system with device types D1, D2, D3. The costs are $30, $15, $20 respectively. The cost of the system is to be no more than $105. The reliability of each device type is 0.9, 0.8 and 0.5 respectively.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Find the shortest path of the following graph from source to destination by using single source shortest path.

6 marks

Answer

Sign in to view the complete answer paper.

b

Write down the differences between prim’s and Krushkal’s algorithm.

4 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Draw the portion of the state space tree generated by LCBB for the following knapsack instances: n=5, (P1, P2, P3, P4, P5) = (10, 15, 6, 8, 4), (W1, W2, W3, W4, W5) = (4, 6, 3, 4, 2) and m = 12

6 marks

Answer

Sign in to view the complete answer paper.

b

Write down the applications of n-Queens problem.

4 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain how to find the Hamiltonian cycle using Backtracking.

5 marks

Answer

Sign in to view the complete answer paper.

b

Draw and explain the tree organization of the 4 – Queen Solution state space tree.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Write a non-deterministic algorithm of Sorting of an elements in an array.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the Cook’s theorem.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain the relationship between P, NP, NP-Hard and NP-Complete.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a Non – deterministic algorithm of 0/1Knapsack problem.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of DESIGN AND ANALYSIS OF ALGORITHMS from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B. Tech CSE II Year II Semester, September/October - 2023, R15.

For the question paper without answers, switch to the Question Paper tab.

Other papers in DESIGN AND ANALYSIS OF ALGORITHMS

Loading Question Papers

Fetching data from database...