Z5007 · MTech Core · Odd Semester 2026-27
Programming and Data Structures
Graduate core course in Python data structures and algorithms pairing implementation from first principles with asymptotic and amortized analysis, formal proofs, balanced trees, hashing, heaps, dynamic programming, greedy algorithms, and graph search. For the BS section (Z2005), see the BS archive.
Weekly Schedule & Prerequisites
| Session | Schedule | Room / Notes |
|---|---|---|
| Lectures (4 weekly) | Monday, Wednesday, Thursday, and Friday | Mon 9:00–9:50 AM · Wed 11:00–11:50 AM · Thu 10:00–10:50 AM · Fri 11:00–11:50 AM |
| Laboratory (1 weekly) | Thursday, 2:00 PM – 4:40 PM | 2 hr 40 min hands-on coding & benchmarks (ICAs run 2:00–2:45 PM) |
| Office Hours | Tuesday, 2:00 PM – 4:00 PM | Room 105 (F1) (Bweleo Campus) or email with Z5007 subject |
Formal Prerequisites: Prior proficiency in foundational Python (functions, recursion basics, loops, OOP classes, and reading Python tracebacks) and introductory discrete mathematics. Google Classroom course materials are mirrored here permanently across academic terms.
Course Materials (Weeks 1–17 Complete Roadmap, Code, Notebooks & Summaries)
Every published module pairs original Slide PDFs, LaTeX Summary Notes (PDF), tested Python Reference Modules (.py), and runnable Jupyter Notebooks (.ipynb + Google Colab), all browsable with Big-O complexity summaries in the Weeks 1–17 Code & Complexity Explorer.
| Week | Module & Dates | Lecture Slides, LaTeX Notes, Code & Labs |
|---|---|---|
| Week 1 | Orientation, Asymptotic Analysis & Big-O Oct 5–9 · Canning, Broder & Lafore Ch. 1–2 |
Mon: Course Orientation & ScalingSlides PDF
Wed: Asymptotic Analysis & RAM ModelSlides PDF
Thu: Foundations of Data StructuresSlides PDF
Fri: Big-O Made SimpleSlides PDF
Week 1 Notes, Code & Complexity LabLaTeX Notes PDFSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
| Week 2 | Arrays, Binary Search, Dynamic Arrays & Simple Sorts Oct 12–16 · Canning, Broder & Lafore Ch. 2–3 |
Mon: Arrays & Binary SearchSlides PDF
Thu: Dynamic Arrays & Amortized DoublingSlides PDF
Fri: Bubble & Selection SortSlides PDF
Week 2 Notes & Thu Lab 1 (Student)LaTeX Notes PDFSummary PDFLab 1 (.ipynb)Colab ↗
Week 2 Reference Code & NotebookPython (.py)Reference (.ipynb)Colab ↗
|
| Week 3 | Insertion Sort & Stacks (Arrays vs. Linked Nodes) Oct 19–22 · Canning, Broder & Lafore Ch. 3–4 |
Mon: Insertion SortSlides PDF
Wed: Stacks (LIFO & Bracket Matching)Slides PDF
Thu: Implementing Stacks & Expressions (ICA 1)Slides PDF
Week 3 Notes & Thu Lab 2 (Student)LaTeX Notes PDFSummary PDFLab 2 (.ipynb)Colab ↗
Week 3 Reference Code & NotebookPython (.py)Reference (.ipynb)Colab ↗
|
| Week 4 | Circular Queues, Linked Lists, Sentinels & LRU Cache Oct 28–30 · Canning, Broder & Lafore Ch. 4–5 |
Wed: Circular Queues & Linked QueuesSlides PDF
Thu: Linked Lists & Pointer SurgerySlides PDF
Fri: Doubly Linked Lists & LRU CacheSlides PDF
Week 4 Notes & Thu Lab 3 (Student)LaTeX Notes PDFSummary PDFLab 3 (.ipynb)Colab ↗
Week 4 Reference Code & NotebookPython (.py)Reference (.ipynb)Colab ↗
|
| Week 5 | Recursion, Merge Sort, Quicksort & Master Theorem Nov 2–6 · Canning, Broder & Lafore Ch. 6–7 |
Mon: Thinking Recursively & Call StackSlides PDF
Wed: Merge SortSlides PDF
Thu: Quicksort & Quickselect (ICA 2)Slides PDF
Fri: Recurrences & Master TheoremSlides PDF
Week 5 Notes & Thu Lab 4 (Student)LaTeX Notes PDFSummary PDFLab 4 (.ipynb)Colab ↗
Week 5 Reference Code & NotebookPython (.py)Reference (.ipynb)Colab ↗
|
| Week 6 | Quiz 1 Review, Binary Trees & BST Foundations Nov 12–14 · Written Closed-Book Assessment + Trees Prep |
40 Worked Quiz 1 Practice ProblemsSummary PDFPractice PDF (40 Qs)
Binary Trees, Traversals & BST ModulePython (.py)Notebook (.ipynb)Colab ↗
|
| Week 7 | Linear-Time Sorts, Binary Trees, BSTs & AVL Prep Nov 16–20 · Canning, Broder & Lafore Ch. 8 |
Mon: Counting Sort & Radix SortSlides PDF
Wed: Binary Trees & Four TraversalsSlides PDF
Thu: Binary Search Trees (Search & Insert)Slides PDF
Fri: BST Deletion & Height BalanceSlides PDF
Week 7 Notes & Thu Lab 5 (Student)LaTeX Notes PDFSummary PDFLab 5 (.ipynb)Colab ↗
Self-Balancing AVL Trees (Code & Lab)Python (.py)Notebook (.ipynb)Colab ↗
|
| Week 8 | AVL Trees, Heaps, Priority Queues & Hash Tables Nov 23–27 · Canning, Broder & Lafore Ch. 8, 10, 11, 13 |
Mon: AVL Trees (Rotations & Rebalance)Slides PDFMon Notes PDF
Week 8 Complete Summary, Heaps & Hashing LabSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
| Week 9 | Graph Representations, BFS, DFS & Topological Sort Nov 30–Dec 4 · Ch. 14 · ICA 3 on Thu Dec 3 |
Week 9 Summary, Graph Module & LabSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
| Week 10 | Weighted Shortest Paths: Dijkstra & Bellman-Ford Dec 7–11 · Ch. 14–15 · Zanzibar Routing Case Study |
Week 10 Summary, Shortest-Path Module & LabSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
| Week 11 | Greedy Algorithms & Minimum Spanning Trees (Kruskal & Prim) Dec 14–18 · Skiena; Ch. 14–15 · Union-Find & Cut Property |
Week 11 Summary, Greedy & MST Module & LabSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
| Week 12 | Dynamic Programming: Memoization, 0/1 Knapsack, LCS & Edit Distance Dec 21–24 · Quiz 2 Dec 22–24 · Sequence Alignment |
Week 12 Summary, DP Module & LabSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
| Week 13 | Advanced Dynamic Programming: Matrix Chain, O(n log n) LIS & Bitmask TSP Dec 28–Jan 1 · Interval & State-Compression DP |
Week 13 Summary, Advanced DP Module & LabSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
| Week 14 | String Matching & Prefix Tries (KMP & Rabin-Karp) Jan 4–8 · Autocomplete, Failure Functions & Rolling Hashes |
Week 14 Summary, String & Trie Module & LabSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
| Week 15 | Union-Find & Amortized Potential Analysis Review Jan 11–15 · ICA 4 on Thu Jan 14 · Path Compression & Aggregate Bounds |
Week 15 Summary, Union-Find Module & LabSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
| Week 16 | NP-Completeness, Polynomial Reductions & 2-Approximation Jan 18–22 · 3-SAT, Independent Set, Vertex Cover |
Week 16 Summary, Reductions Module & LabSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
| Week 17 | Capstone Synthesis, Randomized & Parallel Algorithms; Practical & Theory Exams Jan 25–Feb 5 · Ch. 12, 16 · Practical Exam Thu Jan 28 · Theory Exams Feb 1–5 |
Week 17 Summary, Capstone Synthesis & LabSummary PDFPython (.py)Notebook (.ipynb)Colab ↗
|
Assessment & Grading (Official Z5007 Breakdown)
| Component | Weight | Schedule & Coverage |
|---|---|---|
| Quiz 1 | 10% | Nov 12–14 (institute window) · Written closed book covering Weeks 1–5 (Ch. 1–7). |
| Quiz 2 | 10% | Dec 22–24 (institute window) · Written closed book covering Weeks 7–11 (Trees, Hashing, Heaps, DP, Greedy). |
| In-Class Assignments (4 ICAs) | 12% | Thu labs 2:00–2:45 PM (Oct 22, Nov 5, Dec 3, Jan 14) · Offline auto-tested coding on the completed block. |
| Weekly Labs | 8% | Every Thursday 2:00–4:40 PM · Best 9 of 11 graded weekly laboratory notebooks. |
| Course Project (Pairs) | 20% | Nov 6 to Jan 28 · Pair engineering project with proposal, checkpoint, report, and viva. |
| End-Semester Practical | 20% | Thu Jan 28 in lab (2 hr 40 min) · Offline implementation across the full course. |
| End-Semester Theory | 20% | Feb 1–5 institute exam window · Comprehensive written closed-book examination. |
Course Learning Outcomes (CLO1–CLO6)
- CLO1: Analyze the time and memory cost of algorithms using Big-O notation, recurrences, and amortized analysis.
- CLO2: Implement arrays, stacks, queues, linked lists, trees, hash tables, heaps, and graphs from first principles in Python.
- CLO3: Prove algorithm correctness using loop invariants and exchange arguments, and reason about lower bounds such as sorting's $\Omega(n \log n)$ bound.
- CLO4: Design efficient solutions using sorting, recursion, dynamic programming, greedy algorithms, and graph search.
- CLO5: Evaluate empirical performance by profiling, benchmarking, and choosing data structures backed by experimental evidence.
- CLO6: Apply data structures and parallel or randomized methods to large real datasets, including Zanzibar routing and agricultural pricing workloads.
Textbooks & Resources
q3qmenl2): github.com/inyalala/iitmz-teaching-site/courses/z5007 ↗.