Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech IV ADVANCED ALGORITHMS Previous Question Paper (January/February - 2023 - R18)

B.Tech | IV | I | R18 | January/February - 2023

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

Write down the role of algorithms in computing.

2 marks

Answer

Algorithms serve as the fundamental building blocks of computing by providing a precise, step-by-step sequence of instructions to solve computational problems. They enable the transformation of input data into desired output efficiently, ensuring reliability, scalability, and optimal resource utilization in software systems.

b

State and explain optimal binary search tree.

3 marks

Answer

An Optimal Binary Search Tree (OBST) is a binary search tree where the keys are arranged such that the total expected cost of searching for all keys is minimized. Given a set of keys with associated search probabilities, the tree structure is built using dynamic programming to ensure that frequently accessed keys are placed closer to the root, thereby reducing the average search time.

c

Define greedy algorithm?

2 marks

Answer

Sign in to view the complete answer paper.

d

Discuss maximum flow algorithm with an example.

3 marks

Answer

Sign in to view the complete answer paper.

e

Define sorting network.

2 marks

Answer

Sign in to view the complete answer paper.

f

Explain bio tonic sorting network.

3 marks

Answer

Sign in to view the complete answer paper.

g

What is string matching?

2 marks

Answer

Sign in to view the complete answer paper.

h

Mention the applications of string-matching algorithms.

3 marks

Answer

Sign in to view the complete answer paper.

i

What is vertex cover problem?

2 marks

Answer

Sign in to view the complete answer paper.

j

State and explain polynomial time verification.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

Consider the following recurrence

T(n)=T(n/3)+T(2n/3)+n
. Obtain asymptotic bound using recursion tree method.

10 marks

Answer

Sign in to view the complete answer paper.

OR
3

Given two sequences of characters, P=<MLNOM> Q= <MNOM> Obtain the longest common subsequence.

10 marks

Answer

Sign in to view the complete answer paper.

4

What is an optimal Huffman code for the following set of frequencies based on first 8 Fibonacci numbers: 1, 1, 2, 3, 5, 8, 13, 21

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Define: “topological sort” of a directed acyclic graph. What is the time complexity of topological sort?

5 marks

Answer

Sign in to view the complete answer paper.

b

What is Kruskal’s algorithm? Explain the algorithm with a suitable example.

5 marks

Answer

Sign in to view the complete answer paper.

6

Explain in detail about the concept of solving system of linear equations.

10 marks

Answer

Sign in to view the complete answer paper.

OR
7

Give an example to explain in detail about the comparison networks in detail.

10 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What is the basic idea behind Rabin-Karp algorithm? What is expected running time of this algorithm?

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain in the algorithm for navie bayes string matching?

5 marks

Answer

Sign in to view the complete answer paper.

OR
9

Discuss Knuth Morries Pratt (KMP) algorithm. Compute whether the pattern P = 10100111 is present in the string T = 1001010100111 or not.

10 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

If any NP-complete problem belongs to class P, then is P = NP? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a brief note on NP-completeness and the classes-P, NP and NPC.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Define NP complete and NP hard problems with example.

5 marks

Answer

Sign in to view the complete answer paper.

b

How are P and NP problems related?

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 I, January/February - 2023, R18.

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...