DSA — Syllabus
Explore the syllabus by level.
Understand foundational concepts, complexity, and simple data handling.
- Introduction to DSA
- Time and Space Complexity (Big O, Big Θ, Big Ω notation)
- Recursion basics
- Arrays (Declaration, traversal, insertion, deletion, searching (linear search))
- Strings (Basic operations)
- Mathematical algorithms (Factorials, GCD, LCM, Primes)
- Input/Output handling
Learn fundamental data structures and their operations
- Linked List (Singly linked list, doubly linked list, circular linked list, Traversal, insertion, deletion)
- Stack (Array & linked list implementation, push, pop, peek, applications)
- Queue (Simple queue, circular queue, priority queue, enqueue, dequeue, front, rear)
- Basic problems (Reverse linked list, balanced parentheses, stack/queue challenges)
Understand searching/sorting algorithms and their efficiency
- Searching Algorithms (Linear search, binary search, ternary search, search in sorted & rotated arrays)
- Sorting Algorithms (Bubble sort, selection sort, insertion sort, merge sort, quick sort, heap sort, counting sort, radix sort)
- Complexity analysis of algorithms
- Practice problems (Find min/max, kth smallest/largest, sorted order check)
Handle complex data efficiently using advanced data structures
- Trees (Binary tree, binary search tree (BST), tree traversals (inorder, preorder, postorder), height, depth, level order)
- Heap (Min-heap, max-heap, heapify, insert, delete)
- Hashing (Hash tables, hash functions, collision resolution)
- Graph Basics (Representation (adjacency matrix/list), BFS, DFS)
- Practical problems (Lowest common ancestor, path finding)
Solve complex problems using graphs and algorithmic techniques.
- Graph Algorithms (BFS, DFS, Dijkstra’s, Bellman-Ford, Floyd-Warshall, Prim’s, Kruskal’s, Topological sorting)
- Dynamic Programming (Fibonacci, Knapsack, Coin Change, Longest Common Subsequence)
- Greedy Algorithms (Interval scheduling, Huffman coding)
- Backtracking (N-Queens, Rat in Maze, Sudoku solver)
- Complexity and optimization
Master competitive programming and advanced problem-solving
- Advanced Trees (AVL tree, Red-Black tree, Segment tree, Fenwick tree (BIT))
- Advanced Graphs (Shortest path optimizations, Network flow (Ford-Fulkerson), Strongly connected components, Tarjan’s algorithm)
- Advanced DP (Bitmask DP, DP on trees)
- String Algorithms (KMP, Rabin-Karp, Trie, Suffix Tree/Array)
- Complexity Analysis (Amortized analysis, NP problems, Approximation algorithms)
- Problem-solving patterns (Sliding window, two pointers, divide & conquer, greedy + DP combinations)