Practice
Two kinds of practice are available now:
- Predict-the-step: open a visualizer, switch on Practice, and type the state you expect next (array after a pass, slot a key lands in). The engine checks your answer.
- University questions: attempt each question on paper first, then open the verified solution and the animation of the same input.
Timed mock tests and MCQ sets are not built yet.
Data structures: definitions and classification
Data abstraction and ADTs
Performance analysis: time and space complexity
- Nov 2025 Q1 (3 m) ✓: Compute the time complexity of the following code fragment. for(i=0;i<n;i++) for(j=n;j>0…
- May 2026 (S) Q1 (3 m) ✓: Compute the time complexity of the following code fragment. for(i=1; i<=n; i++) for(j=1;…
- May 2026 (S) Q10b (3 m) ✓: Find the Best, Worst and average case time complexity of Insertion sort.
- Model QP Q1 (3 m): What is the time complexity of this algorithm? j = 1 for (i = 1; i < n; i++) while (j < …
- Model QP Q9a (5 m): Illustrate how an algorithm's time and space complexity can be explained using tables and …
Asymptotic notations
Polynomial representation using arrays
Sparse matrix — tuple representation
Array storage: row-major and column-majorenrichment
Stack ADT and array implementation
Multiple stacks in one array
Queue ADT (linear queue)
Circular queues
Double-ended queues
- Nov 2025 Q9b (3 m) ✓: Write algorithm for various insertion operations of a double ended queue using array.
- May 2026 (S) Q9b (4 m) ✓: Write algorithm for various deletion operations of double ended queue using array.
- Model QP Q10b (4 m): Compare priority queues and deques in terms of structure, use cases, and operations.
- Model QP Q11b (4 m) ✓: Write algorithms to insert and delete elements from a double ended queue.
Infix to postfix conversion
- Nov 2025 Q10a (6 m) ✓: Convert the infix expression (A+B*C/D)-(E-F/G) to postfix form using a stack. Evaluate the…
- May 2026 (S) Q10a (6 m) ✓: Write algorithm for convert the given infix expression to postfix expression. Using a stac…
- Model QP Q11a (5 m) ✓: Evaluate the given expression using stack 4*5/3-(4%2)+(1*5)-2
Evaluating postfix expressions
Singly linked lists and their operations
- Nov 2025 Q3 (3 m): What is self-referential structure? Give an example.
- Nov 2025 Q4 (3 m): Write algorithm to find the largest element in a singly linked list.
- May 2026 (S) Q3 (3 m): What is self-referential structure? Give an example.
- May 2026 (S) Q4 (3 m): Write algorithm to count the number of elements in a singly linked list.
- May 2026 (S) Q12b (3 m): Write algorithm for appending one singly linked list with another.
- Model QP Q3 (3 m): Compare the insertion at head and tail in singly linked list and doubly linked list
- Model QP Q4 (3 m): Write an algorithm to count the number of occurrences of a word in a linked list (each nod…
- Model QP Q5 (3 m): Compare array and linked list in terms of memory usage and insertion/deletion complexity
- Model QP Q12b (4 m): Given a singly linked list, write an algorithm to insert a node at the beginning and end o…
Stacks and queues using linked lists
Polynomials using linked lists
Doubly linked lists
- Nov 2025 Q12b (3 m): Write algorithm to display elements in a doubly linked list in reverse order.
- May 2026 (S) Q11b (4 m): Write algorithm for insert node at the beginning and end of a doubly linked list.
- Model QP Q3 (3 m): Compare the insertion at head and tail in singly linked list and doubly linked list
Circular linked lists
Memory allocation: first-fit, best-fit, worst-fit
Garbage collection and compaction
Trees: terminology and representation
Binary trees: types and properties
Binary tree representation
Tree operations and traversals
Expression trees
Binary search trees
- Nov 2025 Q13a (6 m): Create a binary search tree using the following values 35, 12, 47, 36, 52, 30, 25 and 49. …
- May 2026 (S) Q14b (3 m): Write algorithm to search an element in given binary search tree.
- Model QP Q14b (4 m): Construct the binary search tree with: 52, 35, 11, 7, 10, 90, 21, 16. What is the height o…
Binary heaps and priority queues
- Nov 2025 Q5 (3 m): Compare Min-heap and Max-heap with example.
- May 2026 (S) Q16b (3 m) ✓: Create a Max-heap from 20, 12, 30, 25, 18, 8 and 24 using heapify. Then delete root elemen…
- Model QP Q10b (4 m): Compare priority queues and deques in terms of structure, use cases, and operations.
- Model QP Q16a (6 m): You are given k sorted linked lists. Your task is to merge them into one sorted list. Use …
Graph definitions
Graph representation
Depth-first and breadth-first search
- Nov 2025 Q14a (6 m): Write algorithm for graph traversal using BFS. Perform BFS on the given graph from source …
- May 2026 (S) Q14a (6 m): Write algorithm for graph traversal using DFS. Perform DFS on the given graph from source …
- Model QP Q13a (4 m): The Breadth-First Search algorithm has been implemented with the help of a queue. What is …
Single source all destinations (Dijkstra)
Selection sort
Insertion sort
Quick sort
- Nov 2025 Q15a (6 m) ✓: Write algorithm to sort an array using quick sort. Apply quick-sort to sort the numbers 45…
- Model QP Q8 (3 m) ✓: Apply the Quick Sort algorithm (using the last element as the pivot) to sort the following…
- Model QP Q15b (5 m): Create a text file that contains the names and marks of students in a class. Then, read th…
Merge sort
Heap sort
Radix sort
Linear search
Binary search
Hashing and hash functions
- Nov 2025 Q15b (3 m) ✓: Explain any three hashing functions with examples.
- May 2026 (S) Q8 (3 m) ✓: Explain any three hashing functions with examples.
- Model QP Q7 (3 m): Let the size of a hash table is 8. The index of the hash table varies from 0 to 7. Assume …
- Model QP Q16b (3 m): Implement a spell checker that uses a hash table to store a dictionary of valid words, ena…
Collision resolution: linear probing, quadratic probing, double hashing
Open hashing (separate chaining)
- Nov 2025 Q16a (6 m) ✓: Given the values 72,13,6,5,10,36,43 and 17 and a hash table of size 11. Show the resultant…
- Model QP Q15a (4 m) ✓: You are given a hash table with 5 buckets (i.e., indices 0 to 4). Use open hashing (separa…
- Model QP Q16b (3 m): Implement a spell checker that uses a hash table to store a dictionary of valid words, ena…