Live online classes · Mon–Sat · India-wide

Data Structure (BCS301) Important Questions

AKTU B.Tech · 2nd Year · Exam 2026-27. Worked out from 12 real papers, 2018-19 to 2025-26.

  • 12AKTU papers analysed
  • 22must-do topics
  • 20repeated 2-mark questions
Share on WhatsApp

The PDF has every topic with the years it came, a unit-wise plan and the sources. Free. Share it with your class.

Most likely question in each unit

UnitMost likelyBackup topics
1Introduction, complexity, arrays (address calculation, sparse matrix), linked lists, polynomialsArray address calculation, row/column major (11/12)Polynomial addition using linked list · Insert a node in singly/doubly linked list
2Stacks, infix/postfix, recursion, Tower of Hanoi, queues, circular queue, deque, priority queueInfix to postfix with stack trace (11/12)Stack using linked list (C program) · Tower of Hanoi · Circular queue / deque
3Searching (linear, binary, indexed), hashing & collisions, sorting (insertion to radix)Hashing: division method + collision resolution / linear probing (9/12)Heap sort on 18, 25, 45, 34, 36, 51, 43, 24 · Quick / merge / insertion sort trace
4Trees: binary trees, traversals, BST, threaded trees, Huffman, AVL, B-tree, binary heapAVL tree construction (10/12)B-tree of order 4/5 · Tree from inorder + preorder · Huffman code · BST
5Graphs: representation, BFS/DFS, spanning trees (Prim, Kruskal), Warshall, DijkstraPrim's / Kruskal's MST (10/12)Dijkstra (8/12) · Floyd-Warshall (6/12) · BFS/DFS

Must-do topics

These came in most of the 12 papers. Prepare them first.

  • Array address calculation (row major / column major, 2-D, 3-D, index formula)

    came in 11 of 12 papers

    Unit 1 · 2018-19 to 2025-26

    How to answer: Write the formulas: 2-D row major LOC = B + w[(i - L1)·N + (j - L2)], column major LOC = B + w[(j - L2)·M + (i - L1)], where M, N = number of rows/columns (U - L + 1). For 3-D use effective indices E1, E2, E3. Always show lengths of each dimension and total elements first, then substitute step by step.

    Last asked (2025-26 (carry-over), Section B): Explain the representation of 1-D and multi-dimensional arrays; derive the 2-D address formula in row major and column major order.

  • Asymptotic notations, time & space complexity, time-space trade-off, ADT

    came in 11 of 12 papers

    Unit 1 · 2018-19 to 2025-26

    How to answer: Define time and space complexity; best, average and worst case. Big-O (upper bound), Ω (lower bound), Θ (tight bound) with the formal definition (c, n0) and one graph each. Time-space trade-off with an example (lookup table vs. recompute). ADT = data + operations without implementation (e.g. Stack ADT).

    Last asked (2025-26 (carry-over), Section C): Explain algorithm analysis in detail: time and space complexity and the role of asymptotic notations with examples.

  • Singly linked list operations (insert, delete, search, reverse, concatenate)

    came in 11 of 12 papers

    Unit 1 · 2018-19 to 2025-26

    How to answer: Draw the node (data | next). Write C/pseudo-code for insert at beginning, end, after a given node / kth position; delete a given element; traverse. Know reverse (three pointers prev/cur/next) and concatenate (walk to last node of list 1, link to head of list 2). Mention overflow (no free memory) and underflow (empty list).

    Last asked (2025-26 (carry-over), Section C): Write algorithm and program to create a singly linked list and insert/delete at the beginning, middle and end.

  • Infix to postfix / prefix conversion using stack

    came in 11 of 12 papers

    Unit 2 · 2018-19 to 2025-26

    How to answer: Write the algorithm (scan left to right; operand → output; '(' → push; operator → pop higher/equal precedence then push; ')' → pop till '('). Trace in a 3-column table (symbol | stack | postfix). Practise A + (B * C - (D / E ^ F) * G) * H → A B C * D E F ^ / G * - H * +.

    Last asked (2025-26 (carry-over), Section C): Convert (A + B) * (C - D) to postfix and evaluate it using A=2, B=3, C=5, D=1.

  • AVL tree (construction with rotations)

    came in 10 of 12 papers

    Unit 4 · 2018-19 to 2025-26

    How to answer: Balance factor = h(left) - h(right) ∈ {-1, 0, 1}. Four rotations: LL, RR, LR, RL with small diagrams. Insert the given keys one by one, write the balance factors and name the rotation each time. Practise 71, 41, 91, 56, 60, 30, 40, 80, 50, 55 (asked 3 times).

    Last asked (2025-26 (carry-over), Section C): Create an AVL tree by inserting 10, 20, 30, 40, 50. Show the rebalancing at each step.

  • Minimum spanning tree: Prim's and Kruskal's algorithms

    came in 10 of 12 papers

    Unit 5 · 2019-20 to 2025-26

    How to answer: Define spanning tree and MST (n-1 edges, minimum total weight). Prim's: grow from a start vertex, add the cheapest edge to a new vertex. Kruskal's: sort edges, add if no cycle (union-find). Show a table of edges chosen, final tree and total cost. Complexity: Prim O(E log V), Kruskal O(E log E).

    Last asked (2025-26 (carry-over), Section B): What is Kruskal's algorithm? Explain the step-by-step procedure to construct an MST using an example.

  • Hashing: hash functions and collision resolution (linear/quadratic probing, chaining)

    came in 9 of 12 papers

    Unit 3 · 2019-20 to 2025-26

    How to answer: Hash functions: division (k mod m), mid-square, folding. Collision resolution: open addressing (linear probing h + i, quadratic h + i², double hashing) and separate chaining. Linear probing causes primary clustering; quadratic probing reduces it. Practise a numerical: insert keys with key % 10 into a table and count collisions.

    Last asked (2025-26 (carry-over), Section A): What is a collision in hashing?

  • Construct binary tree from traversals (inorder + preorder / postorder)

    came in 9 of 12 papers

    Unit 4 · 2018-19 to 2025-26

    How to answer: Root = first of preorder (or last of postorder); split inorder at the root into left and right subtrees; repeat recursively. Draw the tree at each step, then write the missing traversal. Note: inorder + pre/post gives a unique tree; pre + post alone does not.

    Last asked (2025-26 (carry-over), Section C): Define binary tree and its properties. Construct the tree from inorder D B E A F C and preorder A B D E C F.

  • Binary tree types and properties (complete, strict, extended, skewed, height, E = I + 2n)

    came in 9 of 12 papers

    Unit 4 · 2018-19 to 2025-26

    How to answer: Define with diagrams: strictly binary (0 or 2 children), complete, full, extended (2-tree, external nodes), skewed. Properties: max nodes at level l = 2^l, max nodes in height h = 2^(h+1) - 1, height of complete tree = ⌊log₂ n⌋. Proof of E = I + 2n by induction. Array and linked representation.

    Last asked (2025-26 (carry-over), Section C): Discuss the properties of binary trees.

  • Graph traversal: BFS and DFS (connected components)

    came in 9 of 12 papers

    Unit 5 · 2018-19 to 2024-25

    How to answer: BFS uses a queue (level by level), DFS uses a stack/recursion (go deep, backtrack). Write both algorithms, trace on the given graph showing the queue/stack contents and visit order, draw the BFS/DFS tree. Complexity O(V + E). Connected components: run DFS/BFS from each unvisited vertex.

    Last asked (2024-25, Section B): Explain the DFS algorithm with an example graph. Which data structure is used for DFS and BFS?

  • Array vs linked list (merits and demerits)

    came in 8 of 12 papers

    Unit 1 · 2019-20 to 2025-26

    How to answer: Table: memory (contiguous vs scattered), size (fixed vs dynamic), access (O(1) random vs O(n) sequential), insertion/deletion cost, extra pointer space, cache behaviour. Add one line on when to use each.

    Last asked (2025-26 (carry-over), Section A): Why are linked lists preferred over arrays in dynamic memory allocation?

  • Stack: push/pop, array & linked implementation, applications

    came in 8 of 12 papers

    Unit 2 · 2019-20 to 2025-26

    How to answer: Stack ADT (LIFO), overflow/underflow conditions, push and pop algorithms for array (top index) and linked list (insert/delete at head). Applications: expression conversion/evaluation, recursion (call stack), balanced parentheses, reversing a string. Know the C program for stack using a linked list.

    Last asked (2025-26, Section C): Write a C program to implement a stack using a single linked list.

  • Recursion (tail recursion, iteration vs recursion, removal of recursion)

    came in 8 of 12 papers

    Unit 2 · 2018-19 to 2025-26

    How to answer: Recursion = function calling itself with a base case; uses the system stack. Tail recursion = recursive call is the last statement (show factorial with accumulator). Table: iteration vs recursion (memory, speed, readability). Write recursive and iterative factorial / Fibonacci / binary search.

    Last asked (2025-26 (carry-over), Section C): Explain recursion.

  • Queue and circular queue (operations, full/empty conditions, linked implementation)

    came in 8 of 12 papers

    Unit 2 · 2018-19 to 2025-26

    How to answer: Linear queue drawback (space wasted after deletions). Circular queue: rear = (rear + 1) % N; full when (rear + 1) % N == front; empty when front == -1. Write insert/delete in C and trace a few enqueue/dequeue operations. Queue using linked list: insert at rear, delete at front.

    Last asked (2025-26 (carry-over), Section B): Explain circular queue operations using arrays. Simulate Enqueue(10), Enqueue(20), Dequeue(), Enqueue(30), Enqueue(40), Dequeue().

  • Searching: linear, binary and indexed sequential search

    came in 8 of 12 papers

    Unit 3 · 2019-20 to 2025-26

    How to answer: Linear search O(n) on any list; binary search O(log n) on a sorted list. Write iterative and recursive binary search in C and trace it (low, high, mid table). Indexed sequential: an index table of every kth key, search the index then the block.

    Last asked (2025-26 (carry-over), Section C): Explain sequential and binary search; compare working principle, time complexity and applications.

  • Quick sort (algorithm, trace, pivot choice, complexity)

    came in 8 of 12 papers

    Unit 3 · 2018-19 to 2025-26

    How to answer: Write PARTITION and QUICKSORT (first or last element as pivot). Trace every pass on the given list, marking the pivot's final position. Best/average O(n log n), worst O(n²) when the list is already sorted; not stable; pivot choice decides balance.

    Last asked (2025-26 (carry-over), Section B): Sort [15, 3, 9, 8, 5, 2, 7, 1, 6] using quick sort. What are its best, worst and average case performance?

  • Insertion, selection and bubble sort (stable, in-place, internal/external sorting)

    came in 8 of 12 papers

    Unit 3 · 2018-19 to 2025-26

    How to answer: Write each algorithm and show pass-by-pass tables. All O(n²) worst case; insertion sort O(n) best case. Stable = equal keys keep their order (insertion, bubble, merge) vs unstable (selection, quick, heap). In-place = O(1) extra space. Internal sorting in RAM, external on disk.

    Last asked (2025-26 (carry-over), Section A): What is stable sorting? Give one example.

  • Binary search tree (insert, delete, search, traversals)

    came in 8 of 12 papers

    Unit 4 · 2018-19 to 2025-26

    How to answer: BST property (left < root < right). Build the tree for the given keys; deletion's three cases (leaf, one child, two children → inorder successor). Write recursive inorder/preorder/postorder, iterative search, and non-recursive traversal using a stack. Inorder of a BST is sorted.

    Last asked (2025-26 (carry-over), Section B): Discuss BST. Construct a BST using 50, 30, 70, 20, 40, 60, 80. Perform inorder traversal.

  • Dijkstra's shortest path algorithm

    came in 8 of 12 papers

    Unit 5 · 2018-19 to 2025-26

    How to answer: Single-source shortest path for non-negative weights. Initialise d[source] = 0, others ∞; repeatedly pick the unvisited vertex with the smallest d and relax its edges. Show a table with one row per iteration (visited set + distance of every vertex) and draw the final shortest-path tree. O(V²) or O((V + E) log V) with a heap.

    Last asked (2025-26 (carry-over), Section C): Explain shortest path algorithms. Describe Dijkstra's algorithm with a suitable example.

  • Graph representation and terminology (adjacency matrix / list, degree)

    came in 8 of 12 papers

    Unit 5 · 2018-19 to 2025-26

    How to answer: Terms: directed/undirected, weighted, degree (in/out), path, cycle, connected, complete graph (n(n-1)/2 edges), regular graph (nd/2 edges), multigraph, pendant vertex. Draw one graph with its adjacency matrix and adjacency list; compare space O(V²) vs O(V + E). C code for in-degree/out-degree from an adjacency matrix.

    Last asked (2025-26 (carry-over), Section C): Define a graph. Explain the different graph representations and compare adjacency matrix and adjacency list.

  • B-tree (insertion and deletion)

    came in 7 of 12 papers

    Unit 4 · 2018-19 to 2024-25

    How to answer: B-tree of order m: every node ≤ m-1 keys and ≤ m children, all leaves at the same level, node splits at the median when it overflows. Insert the given keys showing every split; for deletion show borrowing and merging. Why faster than BST: height is O(log_m n), fewer disk accesses.

    Last asked (2024-25, Section C): Construct a B-Tree of order 4 with the letters a g f b k d h m j e s i r x c l n t u p.

  • Polynomial representation and addition using linked list

    came in 4 of 12 papers

    Unit 1 · 2021-22 to 2024-25

    How to answer: Node = (coeff, exp, next), terms kept in decreasing order of exponent. Addition: walk both lists; equal exponents → add coefficients; else copy the larger exponent term. Show a worked example (e.g. 5x³ + 4x² + 2 and 3x² + x) and write the C function.

    Last asked (2024-25, Section C): Illustrate how to represent a polynomial using linked list. Construct a C program to add two polynomials using linked list.

High-chance topics

  • Threaded binary treeUnit 4 · came in 7 of 12 papers
  • Doubly and circular linked listsUnit 1 · came in 6 of 12 papers
  • Tower of Hanoi (recursive solution)Unit 2 · came in 6 of 12 papers
  • Warshall / Floyd-Warshall algorithm and transitive closureUnit 5 · came in 6 of 12 papers
  • Sparse matrix and its representationUnit 1 · came in 5 of 12 papers
  • Deque and priority queueUnit 2 · came in 5 of 12 papers
  • Merge sortUnit 3 · came in 5 of 12 papers
  • Heap and heap sort (max/min heap, heap vs BST)Unit 3 · came in 5 of 12 papers
  • Huffman coding (Huffman tree, optimal codes)Unit 4 · came in 5 of 12 papers
  • Data structure basics (classification, linear vs non-linear, malloc/calloc)Unit 1 · came in 4 of 12 papers
  • Postfix expression evaluation using stackUnit 2 · came in 4 of 12 papers

Repeated 2-mark questions (Section A)

  1. What is threaded binary tree / its significance?asked 5 times
  2. Array vs linked list (merits / demerits)asked 5 times
  3. Write the full and empty conditions of a circular queueasked 4 times
  4. What is tail recursion? Explain with exampleasked 4 times
  5. Asymptotic notations / time & space complexity / time-space trade-offasked 4 times
  6. How can you represent a sparse matrix in memory?asked 4 times
  7. Define complete, strictly, extended and full binary treesasked 4 times
  8. Compare adjacency matrix and adjacency list / graph representationsasked 4 times
  9. Define priority queue and its applicationasked 4 times
  10. What is a minimum (cost) spanning tree?asked 3 times
  11. Stable vs unstable sorting (with example), in-place sortingasked 3 times
  12. What is recursion? Its disadvantages / which data structure is used for recursion?asked 3 times
  13. Differentiate linear search and binary searchasked 2 times
  14. Convert a short infix expression to postfixasked 2 times
  15. Height / depth of a complete binary tree with n nodesasked 2 times
  16. Construct an expression tree for an algebraic expressionasked 2 times
  17. Define / compute the transitive closure of a graphasked 2 times
  18. Number of edges in a complete / regular graphasked 2 times
  19. Address of an element in an array (2-mark numerical)asked 2 times
  20. What is collision in hashing / forms of hashing?asked 2 times

The 10 numericals to practise by hand

  1. Address of an element in a 2-D / 3-D array with negative lower bounds (row and column major)
  2. Infix → postfix with stack table: A + (B * C - (D / E ^ F) * G) * H
  3. Postfix evaluation: 2 3 9 * + 2 3 ^ - 6 2 / +
  4. Hash table with key % 10 (or % 7) and linear probing: final table + number of collisions
  5. Quick sort trace with first element as pivot; heap sort on 18, 25, 45, 34, 36, 51, 43, 24
  6. Merge sort / insertion sort pass tables on 8-10 numbers
  7. Binary tree from inorder + preorder (or postorder), then the third traversal
  8. AVL tree for 71, 41, 91, 56, 60, 30, 40, 80, 50, 55 with rotations
  9. B-tree of order 4 or 5 for a g f b k d h m j e s i r x c l n t u p
  10. Prim/Kruskal MST, Dijkstra table and Huffman codes for a:5, b:9, c:12, d:13, e:16, f:45

Get the Data Structure PDF

Share on WhatsApp

Not official AKTU material. The important questions are based on 12 previous year papers (2018-19 to 2025-26). The real paper can differ. Syllabus cross-checked with the official AKTU B.Tech 2nd year CSE scheme (BCS301, 3-1-0, 70 + 30 marks). Research date: 20 Nov 2026.

More subjects: all B.Tech papers. Practise coding for free on Kinetic CodeGuide.

Every course is taught live online.We do not operate any offline centre — join from anywhere in India.Live online only · no offline centreFormerly Easy Coders