Important Problems for DSA
December 29, 2025
๐ข Sorting Algorithms
- ๐ซง Bubble Sort โ swap neighbors again & again (slow ๐ข)
- ๐ฏ Selection Sort โ pick minimum and place it correctly
- ๐งฉ Insertion Sort โ insert like playing cards โ ๏ธ
- โก Quick Sort โ divide by pivot (fast on average ๐)
- ๐งฌ Merge Sort โ divide โ sort โ merge (stable)
- ๐๏ธ Heap Sort โ uses heap data structure
- ๐ข Radix Sort โ digit-by-digit sorting
- ๐ Shell Sort โ gap-based insertion sort
- ๐ชฃ Bucket Sort โ distribute into buckets, then sort
- ๐งฎ Counting Sort โ count frequencies (non-comparison)
๐ Searching Algorithms
- ๐ถ Linear Search โ check one by one
- ๐ Binary Search โ works only on sorted data ๐
- ๐ฆ Jump Search โ jump ahead in fixed blocks
- ๐ Interpolation Search โ predicts position
- ๐ Exponential Search โ expands range exponentially
- ๐ Sublist Search โ find linked list inside another
- ๐ง BoyerโMoore Algorithm โ smart string skipping
- ๐ RabinโKarp Algorithm โ hashing + string matching
- ๐๏ธ Hashing โ O(1) average lookup
- ๐บ Ternary Search โ split into three parts
๐ง Divide and Conquer
- ๐ Binary Search โ split & conquer
- ๐งฌ Merge Sort โ recursive merging
- โก Quick Sort โ partition around pivot
- ๐ Closest Pair of Points โ geometry problem
- ๐งฎ Strassenโs Matrix Multiplication โ faster matrix multiply
- โ๏ธ Karatsuba Multiplication โ fast large number multiplication
- ๐ Maximum Subarray Problem โ Kadane + D&C
- ๐ FFT (Fast Fourier Transform) โ signal processing
- ๐ Counting Inversions โ measure disorder
- ๐ผ Tower of Hanoi โ classic recursion puzzle
๐ฐ Greedy Algorithms
- ๐๏ธ Activity Selection Problem โ max non-overlapping tasks
- ๐ Fractional Knapsack โ take fractions
- ๐ค Huffman Coding โ optimal compression
- ๐งโ๐ผ Job Scheduling Problem โ maximize profit
- ๐ฒ Primโs Algorithm โ minimum spanning tree
- ๐ฃ๏ธ Dijkstraโs Algorithm โ shortest path (no negative edges)
- ๐ Kruskalโs Algorithm โ MST using sorting + union-find
๐งฎ Dynamic Programming (DP)
- ๐ 0/1 Knapsack โ pick or skip
- โพ๏ธ Unbounded Knapsack โ unlimited items
- ๐ฐ Coin Change โ number of ways / min coins
- ๐ชข Rope Cutting โ maximize product
- ๐ LCS (Longest Common Subsequence) โ string matching
- ๐ LIS (Longest Increasing Subsequence) โ sequence DP
- ๐ข MCM (Matrix Chain Multiplication) โ parenthesization
- ๐ฆ BellmanโFord โ shortest path (negative edges allowed)
- ๐ FloydโWarshall โ all-pairs shortest path