JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech IV ADVANCED ALGORITHMS Previous Question Paper (July - 2023 - R16)

B.Tech | IV | II | R16 | July - 2023

Answer PaperPaper Code: 138ACMaximum 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

Explain the best case analysis of heap sort.

2 marks

Answer

The best case for heap sort occurs when all elements in the input array are identical. In this scenario, building the heap takes O(n) time, and the subsequent extraction of elements involves heapifying, resulting in a total time complexity of O(n log n).

b

Define Principle of optimality.

3 marks

Answer

The Principle of Optimality states that an optimal sequence of decisions has the property that whatever the initial state and initial decision are, the remaining decisions must constitute an optimal policy with regard to the state resulting from the first decision. This principle is the foundation of dynamic programming.

c

Write the general method of Greedy Approach.

2 marks

Answer

Sign in to view the complete answer paper.

d

What is the need of Topological Sorting?

3 marks

Answer

Sign in to view the complete answer paper.

e

Define Zero-one principle.

2 marks

Answer

Sign in to view the complete answer paper.

f

How can you solve systems of linear equations by substitution?

3 marks

Answer

Sign in to view the complete answer paper.

g

Define pattern in string.

2 marks

Answer

Sign in to view the complete answer paper.

h

Write the steps of the Naive String Matching Algorithm.

3 marks

Answer

Sign in to view the complete answer paper.

i

Define the word “Polynomial time”.

2 marks

Answer

Sign in to view the complete answer paper.

j

Why the NP-complete problems are significant?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Explain the worst case analysis of quick sort with example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write the role of Algorithms in computing.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

What is min heap? Explain heap sort strategy with example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the concept of chain matrix multiplication using dynamic programming.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Apply a variable-length Huffman coding strategy on this frequency character count table.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write the minimum cost spanning tree prim’s algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Find the Minimum cost spanning tree using Kruskal’s algorithm for the given graph.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write the advantages of Maximum Flow algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Evaluate the time complexity of Strassen's Matrix Multiplication.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the concept of Bitonic Sorting Network.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write the application area of Sorting Network.

5 marks

Answer

Sign in to view the complete answer paper.

b

How to find the Inverse of a 3 × 3 Matrix?

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Explain the major steps in Knuth-Morris-Pratt Algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

b

Compare and contrast deterministic and non deterministic finite automata.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Write the brute force algorithm for string pattern matching.

5 marks

Answer

Sign in to view the complete answer paper.

b

How many spurious hits does the Rabin-Karp matcher encounters in Text T = 31415926535......., for string matching, working module q = 11.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

What is Travelling Sales person problem? Explain with neat sketch.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain P, NP and NP-Hard classes with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain the strategy to prove that a problem is NP-Hard.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are approximation algorithms? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of ADVANCED ALGORITHMS from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech CSE IV II, July - 2023, R16.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in ADVANCED ALGORITHMS

Loading Question Papers

Fetching data from database...