IAE Academy

Data Structures and Algorithms: notes and questions

For CSE/IT and DS & AI students

Notes for each topic, a formula sheet, practice questions and 117 past GATE questions from 13 papers (2018–2026), 114 of them solved step by step.

previous-year questions
117previous-year questions
solved step by step
114solved step by step
GATE papers, 2018–2026
13GATE papers, 2018–2026
topics with notes
7topics with notes

Foundation

Learn the subject one topic at a time. Each topic has notes, the key formulas and practice questions.

Topic notes and formulas

Notes on every topic, with the key formulas and practice.

  1. Arrays, stacks, queues and linked lists

    GATE CS/IT notes on arrays, stacks, queues and linked lists.

    6 practice questions

  2. Trees, binary search trees and binary heaps

    Trees, binary search trees and binary heaps: how hierarchical data is structured, searched and prioritised.

    7 practice questions

  3. GATE CS only

    Asymptotic complexity and recurrences

    Asymptotic complexity describes how an algorithm's time and space grow with input size n, independent of any machine.

    6 practice questions

  4. Searching, sorting and hashing

    Searching, sorting and hashing cover how to find, order and index data.

    5 practice questions

  5. Greedy, dynamic programming and divide-and-conquer

    Greedy, dynamic programming and divide-and-conquer are the three core algorithm-design paradigms for GATE CS.

    6 practice questions

  6. Graphs: traversals, minimum spanning trees and shortest paths

    Graph traversal (BFS, DFS with timestamps and edge classification), ordering and connectivity (topological sort, connected and strongly connected components), minimum spanning trees (Kruskal, Prim, cut and cycle properties) and shortest paths (BFS, DAG relaxation, Dijkstra, Bellman-Ford, Floyd-Warshall): the exact procedures, the conditions under which each algorithm is correct, and their time and space costs, with hand-traced worked examples and original practice problems.

    5 practice questions

  7. GATE DA only

    Programming in Python

    Python for GATE DA is tested as exact-output tracing: you read a short program and say what it prints.

    6 practice questions

GATE

Past GATE questions on Data Structures and Algorithms by topic and year, the full papers, practice and the GATE syllabus.

117 questions, by topic and year

How many questions each topic had in the CS and DA papers of each year. This shows what was asked, not what will be asked. We placed each question under a topic ourselves; the exam paper does not label topics.

Topic2018202020222023202420252026Total
Linear structures112232213
Trees & heaps241255726
Complexity·12232414
Sorting & hashing·11137518
Design techniques2··13·28
Graph algorithms231168728
Python····33410

Solved papers

For CS, GATE 2023 comes from IIT Kanpur's own copy of the paper and its answer key, which numbers the CS questions Q.11 to Q.65. For 2024, 2025 and 2026 both sessions (CS1 and CS2) are included. For DA, all three papers are included: 2024 (IISc Bengaluru), 2025 (IIT Roorkee) and 2026 (IIT Guwahati), each with its final answer key.

The GATE syllabus for Data Structures and Algorithms, paper by paper

From the GATE 2027 syllabus PDF: the data-structure items of CS Section 4, “Programming and Data Structures”, and all of CS Section 5, “Algorithms”. Programming in C and recursion, the first two items of Section 4, are on the Programming in C page. For DA, all of Section 4, “Programming, Data Structures and Algorithms”, including Programming in Python, the topic only DA lists.

Show the GATE CS wording

Arrays, stacks, queues, linked lists, trees, binary search trees, binary heaps, graphs. … Searching, sorting, hashing. Asymptotic worst case time and space complexity. Algorithm design techniques: greedy, dynamic programming and divide‐and‐conquer. Graph traversals, minimum spanning trees, shortest paths.

Show the GATE DA wording

Programming in Python, basic data structures: stacks, queues, linked lists, trees, hash tables; Search algorithms: linear search and binary search, basic sorting algorithms: selection sort, bubble sort and insertion sort; divide and conquer: mergesort, quicksort; introduction to graph theory; basic graph algorithms: traversals and shortest path.

Download the full GATE 2027 syllabus PDFs

Preparing in Kolkata? See IAE Academy’s GATE CS coaching and GATE DA coaching.

Other exams

13 questions on Data Structures and Algorithms from ISRO's Scientist/Engineer written test (ISRO CS 2025, ISRO CS 2023), by topic. They are not counted in the GATE numbers on this page.

IT jobs for DS & AI and CSE/IT

Skills named in Wadhwani AI's postings for freshers that IAE matched to Data Structures and Algorithms (listed 19 October 2026).

  • data structures

    Listed by: Wadhwani AI (organisation): Engineering Trainee (146520000006160157), Delhi (fix-term); Wadhwani AI (organisation): Software Development Engineer - I (146520000005021055), New Delhi (permanent)

  • algorithms

    Listed by: Wadhwani AI (organisation): Engineering Trainee (146520000006160157), Delhi (fix-term); Wadhwani AI (organisation): Software Development Engineer - I (146520000005021055), New Delhi (permanent)

What Genpact, ZS, Microsoft Research India and Wadhwani AI publish for students