pyqs.site
Workspace
Subjects1
Light Mode
pyqs.site/
/
pyqs.site•Algorithms & Data Structures (Template) (CS-201)•

Checklist — Algorithms & Data Structures (Template) Previous Year Questions & Analysis

0%
/
8 questions
Year
Unit
Repeated
Type
Status
Marks
2025

Examination Paper

0/3 Done
Unit 1
Asymptotics & Recurrence
2025
Unit 1
Numerical
7M
3x
Q.1 (a)State the Master Theorem and solve the recurrence relation T(n)=4T(n2)+n2log⁡nT(n) = 4T\left(\dfrac{n}{2}\right) + n^2 \log nT(n)=4T(2n​)+n2logn.
View Answer
Unit 2
Trees & Hashing
2025
Unit 2
Theory
7M
2x
Q.3 (a)Given the Binary Search Tree shown in the diagram, write its Pre-order, In-order, and Post-order traversals, and explain node deletion with two children.
Sample PYQ Diagram — Binary Search Tree (BST)
View Answer
Unit 3
Graph Algorithms
2025
Unit 3
Theory
7M
2x
Q.4 (a)Explain Dijkstra's single-source shortest path algorithm, its greedy invariant, and why it fails with negative edge weights.
View Answer
2024

Examination Paper

0/3 Done
Unit 1
Asymptotics & Recurrence
2024
Unit 1
Numerical
7M
3x
Q.2 (b)Solve the divide-and-conquer recurrence T(n)=2T(n2)+nT(n) = 2T\left(\dfrac{n}{2}\right) + nT(n)=2T(2n​)+n using the Master Theorem.
View Answer
Unit 2
Trees & Hashing
2024
Unit 2
Theory
2M
2x
Q.3 (b)What is the worst-case and average-case search time complexity of a Binary Search Tree?
View Answer
Unit 4
Dynamic Programming
2024
Unit 4
Numerical
7M
Q.5 (a)Write the dynamic programming recurrence for the 0/1 Knapsack problem and state its time and space complexity.
View Answer
2023

Examination Paper

0/2 Done
Unit 1
Asymptotics & Recurrence
2023
Unit 1
Theory
2M
3x
Q.1 (b)Write the three standard cases of Master Theorem for T(n)=aT(n/b)+f(n)T(n) = aT(n/b) + f(n)T(n)=aT(n/b)+f(n).
View Answer
Unit 3
Graph Algorithms
2023
Unit 3
Theory
7M
2x
Q.4 (b)Compare Dijkstra's algorithm and Bellman-Ford algorithm for shortest paths.
View Answer