Back to Weeks 1-5 Back to Weeks 6-11

Further Reading & Deep Dives

Comprehensive resources for Advanced Algorithms topics. Cross-references between weeks and additional materials for exam preparation.

Week 6: Greedy Algorithms & MST

Textbooks & Papers

Introduction to Algorithms (CLRS)

Chapter 16: Greedy Algorithms, Chapter 23: Minimum Spanning Trees, Chapter 24: Single-Source Shortest Paths

TextbookFoundational

Algorithm Design Manual - Skiena

Chapter 6: Greedy algorithms with practical problems and pitfalls. Great for understanding when greedy works.

Reference

Online Resources

Implementation Resources

Week 6: Network Flow

Foundational Papers

Ford-Fulkerson Method (1956)

Original paper on maximum flow. Introduces the concept of augmenting paths and residual graphs.

PaperClassic

Advanced Topics

Applications

Week 8: Linear Programming

Core References

Introduction to Linear Programming - Vanderbei

Comprehensive textbook on LP, Simplex method, duality, and interior point methods.

Textbook

LP: The Simplex Method - Stanford

Detailed notes on Simplex algorithm, pivoting, and degenerate cases.

Course Notes

Key Concepts

Extensions

Week 8: String Matching

Algorithms Overview

Advanced Topics

KMP Failure Function

Understanding the failure function (prefix table) is crucial. It encodes info about pattern overlaps with itself.

Core Concept

Applications

Week 9: Data Compression

Compression Theory

Information Theory Basics

Shannon Entropy determines theoretical limit of lossless compression. Knowing entropy helps set realistic expectations.

Theory

Lossless Compression Techniques

Codec Standards

Lossy Compression

Week 9: Huffman Coding Deep Dive

Optimality Proof

Huffman's algorithm produces optimal prefix code because:

  1. Optimal substructure: subtrees are optimal for their subtask
  2. Greedy choice: combining two smallest frequencies is locally optimal
  3. Exchange argument: any other tree has worse cost

Variants & Extensions

Limitations

Week 10: Streaming Algorithms

Key Problem Classes

Space Lower Bounds

Many stream problems have been proven to require Omega(log n) or Omega(sqrt(n)) space. No "free lunch" in streaming.

Theory

Sampling Techniques

Frequency Estimation

Advanced Topics

Week 10: Bloom Filters & Variants

Analysis

False Positive Rate

P(FP) ~ (1 - e^(-kn/m))^k, where k = hash functions, n = inserted items, m = bit array size.

Minimize by choosing k = (m/n) * ln(2) ~ 0.693 * (m/n)

Formula

Variants

Real-World Use Cases

Week 11: Randomized & Probabilistic Algorithms

Fundamental References

Randomized Algorithms - Motwani & Raghavan

The definitive textbook on randomized algorithms. Covers concentration bounds, derandomization techniques.

TextbookAdvanced

Classification

Type Running Time Correctness Example
Las Vegas Probabilistic Always correct Randomized Quicksort
Monte Carlo Deterministic Probably correct Miller-Rabin primality test

Key Algorithms

Randomized Quicksort

Expected O(n log n) time regardless of input. Eliminates adversarial worst case. Practical and widely used.

Miller-Rabin Primality Testing

O(k log^3 n) deterministic test with error probability 4^(-k). Industry standard for cryptography.

Randomized Linear Selection

Find k-th smallest in O(n) expected time. Uses random pivot like Quicksort.

Concentration Inequalities

Advanced Topics

Cross-Week Connections & Synthesis

Greedy vs Dynamic Programming

Complexity Throughout the Course

Data Structure Choices

Exam Preparation Tips

Time Management

Common Question Patterns

Study Schedule

Online References & Tools

Visualization Tools

Implementation References

Academic Resources

Related Courses (Same Level)

Advanced Algorithms Cheat Sheet - All Weeks | Last Updated 2024