JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech IV COMPUTATIONAL COMPLEXITY Previous Question Paper (September - 2022 - R18)
Answer any five questions. All questions carry equal marks.
Main
Differentiate between Class P and Class NP.
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.
What do you mean by polynomial run time algorithm? Explain.
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.
Explain the Reducibility with example.
Answer
Sign in to view the complete answer paper.
How do you calculate computational complexity? Discuss.
Answer
Sign in to view the complete answer paper.
Write the Quick sort algorithm? Analyze the time complexity in worst case.
Answer
Sign in to view the complete answer paper.
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.
Answer
Sign in to view the complete answer paper.
Explain matrix chain multiplication using an example.
Answer
Sign in to view the complete answer paper.
Explain Huffman coding with an example.
Answer
Sign in to view the complete answer paper.
How does digital fingerprinting algorithm work? Explain.
Answer
Sign in to view the complete answer paper.
List and explain the randomized algorithms with example.
Answer
Sign in to view the complete answer paper.
Discuss the advantages of randomized algorithm.
Answer
Sign in to view the complete answer paper.
Elaborate on De-Randomization Advanced Algorithms.
Answer
Sign in to view the complete answer paper.
Write a brief note on approximation algorithm.
Answer
Sign in to view the complete answer paper.
What is a Spanning tree? What are its applications? Explain.
Answer
Sign in to view the complete answer paper.
How elements are inserted and deleted in B-Trees? Explain.
Answer
Sign in to view the complete answer paper.
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.
Answer
Sign in to view the complete answer paper.