Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Skill

Approximation & Randomized Algorithms

Recognize NP-hard problems and respond with approximation, local search or randomization whose guarantee or measured gap you can state.

Advanced1 roadmap

4 objectives 5 steps about 120 min

Check what you know

The lessons are coming later. The knowledge check is ready now.

Take the knowledge check

This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.

Learning objectives

  • Explain P, NP, NP-complete and NP-hard informally, and argue that a new problem is NP-hard by sketching a reduction from a known NP-complete problem such as subset sum, partition or vertex cover.
  • Apply approximation algorithms with proven ratios, such as maximal-matching vertex cover, greedy set cover and greedy load balancing, and measure their gap from optimal against an exact solver on small inputs.
  • Improve solutions to hard optimization problems with local search (2-opt, hill climbing, simulated annealing), and report solution quality against running time over fixed random seeds.
  • Distinguish Las Vegas from Monte Carlo algorithms and apply randomization correctly: a Fisher-Yates shuffle, reservoir sampling over a stream, expected-linear quickselect, and repeating a one-sided test to shrink its error probability.

Lesson plan

5 steps, about 120 min · 0 of 4 lessons available so far

  1. P, NP and Reductions Without the Formalism Concept · 25 min · coming later
  2. Approximation Ratios You Can Prove Worked example · 25 min · coming later
  3. Lab: Local Search on a Delivery Route Lab · 30 min · coming later
  4. Randomness as a Tool: Shuffles, Samples and Repeated Trials Worked example · 20 min · coming later
  5. Check: Hard Problems and Randomized Methods Knowledge check · 8 questions

Practise it

For a 60-stop delivery instance, compute an exact tour on a 12-stop subset with subset-state DP, then compare nearest-neighbor, nearest-neighbor plus 2-opt and simulated annealing on all 60 stops over 20 fixed seeds, reporting the mean and worst tour length against the best known tour and the runtime of each; separately implement Fisher-Yates and reservoir sampling and check over 100,000 runs that every outcome appears with the expected frequency.

References

Hard prerequisites

Unlocks

Nothing depends on this skill yet.

On these roadmaps

Progress and evidence for this skill are shared across all of them.