JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

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

B.Tech | IV | II | R18 | July/August - 2022

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

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Explain Polynomial time and its justification.

8 marks

Answer

A Polynomial time algorithm is one whose running time is bounded by a polynomial function of the input size n. Specifically, an algorithm runs in polynomial time if there exists a constant k such that the number of operations is O(nk).

The justification for using polynomial time as the standard definition of tractability, known as the Cobham-Edmonds thesis, is based on several key factors:

  1. Closure under composition: If an algorithm calls a polynomial-time subroutine a polynomial number of times, the resulting algorithm remains polynomial. This allows for modular algorithm design.
  2. Model Independence: Polynomial time is robust across most reasonable models of computation. An algorithm that is polynomial on a multi-tape Turing machine remains polynomial on a single-tape machine or a random-access machine (RAM).
  3. Practical Efficiency: While high-degree polynomials (e.g., n100) are technically inefficient, they are rare in practice. Most naturally occurring polynomial-time algorithms have small exponents, making them feasible for large inputs, whereas exponential-time algorithms quickly become intractable as n grows linearly.
b

What is the P versus NP problem and why it’s hard?

7 marks

Answer

The P versus NP problem asks whether every decision problem whose solution can be verified in polynomial time (NP) can also be solved in polynomial time (P). In essence, it asks if P = NP.

This problem is considered one of the hardest in computer science for the following reasons:

  1. Verification vs. Search: It is easy to check if a provided certificate (solution) is correct for an NP problem, but finding that certificate from scratch appears to require an exhaustive search through an exponential number of possibilities.
  2. NP-Completeness: The existence of NP-complete problems, such as the Boolean Satisfiability Problem (SAT), acts as a bridge. If any single NP-complete problem is proven to be in P, then P = NP. Despite decades of effort, no polynomial-time algorithm has been found for any NP-complete problem.
  3. Relativization: It has been proven that there exist "oracles" where P = NP and others where P ≠ NP. This demonstrates that standard diagonalization techniques, which solved many problems in computability theory, are insufficient to resolve this question, requiring entirely new mathematical insights into the structure of complexity classes.
2

What is Polynomial Time? Explain with Nontrivial examples of polynomial-time Algorithms.

15 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Illustrate Matrix Chain Multiplication with an example.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain how knapsack problem is solved using Dynamic Programming.

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Illustrate the implementation of Quick Sort.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain how travelling sales person problem is solved using Branch-and-bound technique.

7 marks

Answer

Sign in to view the complete answer paper.

5

What are Randomized Algorithms? Explain in detail about Finger Printing and Pattern Matching.

15 marks

Answer

Sign in to view the complete answer paper.

6

Write a detailed note on Graph problems.

15 marks

Answer

Sign in to view the complete answer paper.

7

Explain in detail about Approximation Algorithms and Polynomial Time Approximation Schemes.

15 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Explain in detail about Decision Trees and Circuits.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write a short note on Disjoint Sets.

7 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of COMPUTATIONAL COMPLEXITY from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech CSE IV II, July/August - 2022, R18.

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

Other papers in COMPUTATIONAL COMPLEXITY

Loading Question Papers

Fetching data from database...