JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech IV COMPUTATIONAL COMPLEXITY Previous Question Paper (September - 2022 - R18)

B.Tech | IV | IV-II | R18 | September - 2022

Answer PaperPaper Code: 158AKMaximum Marks: 75Time: 3 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Differentiate between Class P and Class NP.

7 marks

Answer

Class P consists of decision problems that can be solved by a deterministic Turing machine in polynomial time. These are considered tractable problems where the time complexity is bounded by a polynomial function of the input size, such as O(n^k). In contrast, class NP (Nondeterministic Polynomial time) consists of decision problems for which a given solution can be verified by a deterministic Turing machine in polynomial time. While every problem in P is also in NP, it is currently unknown if P equals NP. A key distinction is that P focuses on the efficiency of finding a solution, whereas NP focuses on the efficiency of verifying a potential solution provided by a nondeterministic process.

b

What do you mean by polynomial run time algorithm? Explain.

8 marks

Answer

A polynomial run time algorithm is an algorithm whose execution time is bounded by a polynomial expression of the input size n. Formally, an algorithm has polynomial time complexity if its running time T(n) is O(n^k) for some constant k > 0. These algorithms are categorized as efficient or tractable because their growth rate remains manageable as the input size increases significantly.

Key characteristics include:

  • Scalability: Unlike exponential time algorithms (e.g., O(2^n)), which become computationally infeasible for even moderate input sizes, polynomial algorithms scale gracefully.
  • Examples: Common examples include sorting algorithms like Merge Sort (O(n log n)) and searching algorithms like Binary Search (O(log n)).
  • Complexity Classes: Polynomial time is the defining criterion for the class P. If an algorithm's complexity is O(n^k), it is considered to be in the class P, serving as the benchmark for practical computational feasibility in computer science.
215 marks
a

Explain the Reducibility with example.

8 marks

Answer

Sign in to view the complete answer paper.

b

How do you calculate computational complexity? Discuss.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Write the Quick sort algorithm? Analyze the time complexity in worst case.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about travelling sales person problem. Explain how it can be solved using Branch and Bound method. Show the steps and solution by taking any one example containing at least 5 cities and 10 ways to travel between them.

10 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Explain matrix chain multiplication using an example.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain Huffman coding with an example.

7 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

How does digital fingerprinting algorithm work? Explain.

8 marks

Answer

Sign in to view the complete answer paper.

b

List and explain the randomized algorithms with example.

7 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Discuss the advantages of randomized algorithm.

8 marks

Answer

Sign in to view the complete answer paper.

b

Elaborate on De-Randomization Advanced Algorithms.

7 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Write a brief note on approximation algorithm.

8 marks

Answer

Sign in to view the complete answer paper.

b

What is a Spanning tree? What are its applications? Explain.

7 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

How elements are inserted and deleted in B-Trees? Explain.

8 marks

Answer

Sign in to view the complete answer paper.

b

Construct an AVL tree with the following numbers: 25, 46, 13, 55, 15, 30, 58, 4, 6. Insert 50, 10 and 40, delete 25, 13 and 30 and rebalance the tree if necessary in each case.

7 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of COMPUTATIONAL COMPLEXITY from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech CSE IV IV-II, September - 2022, R18.

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

Other papers in COMPUTATIONAL COMPLEXITY

Loading Question Papers

Fetching data from database...