JNTU ananthapur R23 btech 2nd year -1sem ADSA questions papers answers
Full explanation, worked examples & memory tricks in the app
Shared by a Veda learner · Generated with Veda AI
Full explanation, worked examples & memory tricks in the app
Every question in the paper gets a full exam-length answer in the app — organised by marks, the way a topper writes it.
Write an algorithm for finding maximum element of an array perform best, worst and average case complexity with appropriate order notations.
Algorithm iterates through the array, returning the maximum value.
The full exam-length answer is in the app.
Construct a B+ Tree of order 3 for the keys: 10, 20, 5, 6, 12, 30, 7, 17. Show the final tree.
Insert keys while maintaining B+ Tree properties.
The full exam-length answer is in the app.
Perform insertion and deletion operations on a Splay Tree for the elements: 10, 20, 30, 40, 50. Show tree after each step.
Insert and delete elements while maintaining tree structure.
The full exam-length answer is in the app.
Given a Red-Black Tree, insert 18, 11, 14, 15 and show how properties are preserved during insertion.
Insert while ensuring red-black properties are maintained.
The full exam-length answer is in the app.
Insert the values 12, 44, 13, 88, 23, 94, 11, 39 into a hash table of size 13 using division method. Show the final table.
Use modulo operation to place values in the table.
The full exam-length answer is in the app.
Sort the array [9, 4, 7, 3, 1, 6] using Heap Sort. Show the heap construction and sorting steps.
Build heap, then sort by repeatedly extracting max.
The full exam-length answer is in the app.
Use Divide and Conquer to perform Matrix Multiplication for two 2x2 matrices using Strassen's algorithm. Show all 7 multiplications.
Apply Strassen's algorithm to compute matrix product.
The full exam-length answer is in the app.
Solve the Travelling Salesman Problem using Dynamic Programming for 4 cities with given cost matrix. Show the steps and minimum cost.
Use DP to find minimum cost path visiting all cities.
The full exam-length answer is in the app.
Solve the Fractional Knapsack problem using Greedy method: Weights = [10, 20, 30], Values = [60, 100, 120], Capacity = 50. Show steps.
Select items based on value-to-weight ratio until capacity is reached.
The full exam-length answer is in the app.
Explain the method of solving recurrence equations with suitable example.
Use substitution or iteration to simplify and solve the equation.
The full exam-length answer is in the app.
Explain the necessary steps for analyzing the efficiency of recursive algorithms.
Identify base cases, recursive cases, and use recurrence relations.
The full exam-length answer is in the app.
Compare Splay Trees with AVL Trees based on operations and efficiency.
Splay Trees are self-adjusting; AVL Trees maintain strict balancing.
The full exam-length answer is in the app.
Discuss how clustering affects hash performance in open addressing.
Clustering can lead to longer search times due to increased collision.
The full exam-length answer is in the app.
Write the time complexity of Heap Sort with three cases and compare with Merge Sort.
Heap Sort: O(n log n); Merge Sort: O(n log n) with stable sorting.
The full exam-length answer is in the app.
Compare Strassen's algorithm with the standard approach.
Strassen's is faster than standard O(n^3) method.
The full exam-length answer is in the app.
Mention the challenges in solving TSP using brute force.
Exponential time complexity makes it impractical for large datasets.
The full exam-length answer is in the app.
Why is Greedy method not suitable for 0/1 Knapsack?
It may not yield the optimal solution due to indivisibility of items.
The full exam-length answer is in the app.
Write the asymptotic notations used for best case, average case and worst case analysis of algorithms.
Best case: O(1), Average case: O(n), Worst case: O(n^2).
The full exam-length answer is in the app.
Explain how leaf node chaining helps in range queries in B+ Trees.
Leaf node chaining allows efficient traversal for range queries.
The full exam-length answer is in the app.
What are the key steps involved in designing an algorithm?
Define the problem, analyze requirements, design, implement, test.
The full exam-length answer is in the app.
Define asymptotic notation. Mention any two types.
Asymptotic notation describes algorithm efficiency; types include Big-O and Big-Ω.
The full exam-length answer is in the app.
Mention any two applications of AVL Trees.
Used in databases and memory management.
The full exam-length answer is in the app.
What is a B-Tree? Mention one operation performed on B-Trees.
A B-Tree is a self-balancing tree; operations include insertion.
The full exam-length answer is in the app.
List any two properties of Red-Black Trees.
Each node is red or black; the root is black.
The full exam-length answer is in the app.
Define Hash Function and its significance in Hash Tables.
A hash function maps data to a fixed size; it ensures efficient data retrieval.
The full exam-length answer is in the app.
What is the purpose of Strassen's Matrix Multiplication in Divide and Conquer?
To reduce the time complexity of matrix multiplication.
The full exam-length answer is in the app.
Define the term 'Greedy Method' with one example application.
A problem-solving method that makes the locally optimal choice; e.g., Kruskal's algorithm.
The full exam-length answer is in the app.
State the principle of Dynamic Programming.
Breaks problems into simpler subproblems and stores results.
The full exam-length answer is in the app.
What is meant by NP-Complete problem?
A problem for which no efficient solution is known, but solutions can be verified quickly.
The full exam-length answer is in the app.
List any four properties of Red-Black Trees.
Each node is red or black; no two red nodes in a row.
The full exam-length answer is in the app.
The full Veda Bites deck, complete notes, spaced-repetition flashcards, leveled MCQs, tests and games for this kit — plus Daily Facts and the Arena, every day.