Kit Library

🎯 Exam Preparation Kit

ADSA Exam Preparation

English 30 leveled MCQs Free

Shared by a Veda learner · Generated with Veda AI

Smart notes

What you'll study, topic by topic

1

JNTU ananthapur R23 btech 2nd year -1sem ADSA questions papers answers

Full explanation, worked examples & memory tricks in the app

Solved paper preview

Sample questions with model answers

Every question in the paper gets a full exam-length answer in the app — organised by marks, the way a topper writes it.

7 marks Long answer

Write an algorithm for finding maximum element of an array perform best, worst and average case complexity with appropriate order notations.

Show answer outline

Algorithm iterates through the array, returning the maximum value.

The full exam-length answer is in the app.

7 marks Long answer

Construct a B+ Tree of order 3 for the keys: 10, 20, 5, 6, 12, 30, 7, 17. Show the final tree.

Show answer outline

Insert keys while maintaining B+ Tree properties.

The full exam-length answer is in the app.

6 marks Long answer

Perform insertion and deletion operations on a Splay Tree for the elements: 10, 20, 30, 40, 50. Show tree after each step.

Show answer outline

Insert and delete elements while maintaining tree structure.

The full exam-length answer is in the app.

6 marks Long answer

Given a Red-Black Tree, insert 18, 11, 14, 15 and show how properties are preserved during insertion.

Show answer outline

Insert while ensuring red-black properties are maintained.

The full exam-length answer is in the app.

6 marks Long answer

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.

Show answer outline

Use modulo operation to place values in the table.

The full exam-length answer is in the app.

6 marks Long answer

Sort the array [9, 4, 7, 3, 1, 6] using Heap Sort. Show the heap construction and sorting steps.

Show answer outline

Build heap, then sort by repeatedly extracting max.

The full exam-length answer is in the app.

6 marks Long answer

Use Divide and Conquer to perform Matrix Multiplication for two 2x2 matrices using Strassen's algorithm. Show all 7 multiplications.

Show answer outline

Apply Strassen's algorithm to compute matrix product.

The full exam-length answer is in the app.

6 marks Long answer

Solve the Travelling Salesman Problem using Dynamic Programming for 4 cities with given cost matrix. Show the steps and minimum cost.

Show answer outline

Use DP to find minimum cost path visiting all cities.

The full exam-length answer is in the app.

6 marks Long answer

Solve the Fractional Knapsack problem using Greedy method: Weights = [10, 20, 30], Values = [60, 100, 120], Capacity = 50. Show steps.

Show answer outline

Select items based on value-to-weight ratio until capacity is reached.

The full exam-length answer is in the app.

4 marks Medium answer

Explain the method of solving recurrence equations with suitable example.

Show answer outline

Use substitution or iteration to simplify and solve the equation.

The full exam-length answer is in the app.

4 marks Medium answer

Explain the necessary steps for analyzing the efficiency of recursive algorithms.

Show answer outline

Identify base cases, recursive cases, and use recurrence relations.

The full exam-length answer is in the app.

4 marks Medium answer

Compare Splay Trees with AVL Trees based on operations and efficiency.

Show answer outline

Splay Trees are self-adjusting; AVL Trees maintain strict balancing.

The full exam-length answer is in the app.

4 marks Medium answer

Discuss how clustering affects hash performance in open addressing.

Show answer outline

Clustering can lead to longer search times due to increased collision.

The full exam-length answer is in the app.

4 marks Medium answer

Write the time complexity of Heap Sort with three cases and compare with Merge Sort.

Show answer outline

Heap Sort: O(n log n); Merge Sort: O(n log n) with stable sorting.

The full exam-length answer is in the app.

4 marks Medium answer

Compare Strassen's algorithm with the standard approach.

Show answer outline

Strassen's is faster than standard O(n^3) method.

The full exam-length answer is in the app.

4 marks Medium answer

Mention the challenges in solving TSP using brute force.

Show answer outline

Exponential time complexity makes it impractical for large datasets.

The full exam-length answer is in the app.

4 marks Medium answer

Why is Greedy method not suitable for 0/1 Knapsack?

Show answer outline

It may not yield the optimal solution due to indivisibility of items.

The full exam-length answer is in the app.

3 marks Medium answer

Write the asymptotic notations used for best case, average case and worst case analysis of algorithms.

Show answer outline

Best case: O(1), Average case: O(n), Worst case: O(n^2).

The full exam-length answer is in the app.

3 marks Medium answer

Explain how leaf node chaining helps in range queries in B+ Trees.

Show answer outline

Leaf node chaining allows efficient traversal for range queries.

The full exam-length answer is in the app.

2 marks Short answer

What are the key steps involved in designing an algorithm?

Show answer outline

Define the problem, analyze requirements, design, implement, test.

The full exam-length answer is in the app.

2 marks Short answer

Define asymptotic notation. Mention any two types.

Show answer outline

Asymptotic notation describes algorithm efficiency; types include Big-O and Big-Ω.

The full exam-length answer is in the app.

2 marks Short answer

Mention any two applications of AVL Trees.

Show answer outline

Used in databases and memory management.

The full exam-length answer is in the app.

2 marks Short answer

What is a B-Tree? Mention one operation performed on B-Trees.

Show answer outline

A B-Tree is a self-balancing tree; operations include insertion.

The full exam-length answer is in the app.

2 marks Short answer

List any two properties of Red-Black Trees.

Show answer outline

Each node is red or black; the root is black.

The full exam-length answer is in the app.

2 marks Short answer

Define Hash Function and its significance in Hash Tables.

Show answer outline

A hash function maps data to a fixed size; it ensures efficient data retrieval.

The full exam-length answer is in the app.

2 marks Short answer

What is the purpose of Strassen's Matrix Multiplication in Divide and Conquer?

Show answer outline

To reduce the time complexity of matrix multiplication.

The full exam-length answer is in the app.

2 marks Short answer

Define the term 'Greedy Method' with one example application.

Show answer outline

A problem-solving method that makes the locally optimal choice; e.g., Kruskal's algorithm.

The full exam-length answer is in the app.

2 marks Short answer

State the principle of Dynamic Programming.

Show answer outline

Breaks problems into simpler subproblems and stores results.

The full exam-length answer is in the app.

2 marks Short answer

What is meant by NP-Complete problem?

Show answer outline

A problem for which no efficient solution is known, but solutions can be verified quickly.

The full exam-length answer is in the app.

2 marks Short answer

List any four properties of Red-Black Trees.

Show answer outline

Each node is red or black; no two red nodes in a row.

The full exam-length answer is in the app.

Study it properly — free, 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.