whoashish's cp notes

Home

❯

4. Greedy

4. Greedy

Oct 08, 20261 min read

  • i. Greedy and Exchange Arguments: A greedy algorithm commits to the locally best choice and never undoes it.
  • ii. Matroids: A matroid is exactly the structure on which the sorted greedy is always optimal.
  • iii. Interval Problems: Intervals on a line produce interval graphs, which are perfect:
  • iv. Scheduling and Partitioning: Scheduling problems are a map of what’s easy and what’s NP-hard.

4 items under this folder.

  • Oct 08, 2026

    i. Greedy and Exchange Arguments

    • greedy
  • Oct 08, 2026

    ii. Matroids

    • greedy
    • matroids
  • Oct 08, 2026

    iii. Interval Problems

    • greedy
    • intervals
    • sweep
  • Oct 08, 2026

    iv. Scheduling and Partitioning

    • greedy
    • scheduling