Advanced Topic 47 of 51 Algorithms
Approximation Algorithms
Methods guaranteeing near-optimal answers to hard problems.
How it works
For NP-hard problems, approximation algorithms run in polynomial time and guarantee a solution within a factor of optimal, such as 2 for vertex cover.
Where it is used
Traveling salesman variants, scheduling, set cover.
Common pitfall
Some problems cannot be approximated well unless P = NP.
Where it fits in the course
Approximation Algorithms is topic 47 of 51 in Algorithms, rated Advanced. It follows Randomized Algorithms. The next topic is Amortized Analysis.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Algorithms quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Algorithms quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Approximation Algorithms?
Methods guaranteeing near-optimal answers to hard problems. It belongs to Algorithms and is an advanced-level topic.
Where do people use Approximation Algorithms?
Traveling salesman variants, scheduling, set cover.
What is the most common mistake with Approximation Algorithms?
Some problems cannot be approximated well unless P = NP.
What should I learn before this topic?
Start with Randomized Algorithms, the topic just before it in Algorithms.
How can I practice it?
Answer the mini quiz in the interactive lesson, then take the Algorithms quiz.
Is Approximation Algorithms hard to learn?
It is an Advanced topic. Expect to read the explanation more than once and to connect it with earlier topics. Working through a small example by hand helps most.
How long does it take to learn Approximation Algorithms?
Most learners can read the explanation and finish the interactive lesson in under an hour. Fluency comes from applying the idea, so plan a few short practice sessions with the quiz.
Which topics are related to Approximation Algorithms?
Randomized Algorithms, Amortized Analysis, Huffman Coding are closely connected. The full list is in the related topics section of this page.
What should I study after Approximation Algorithms?
Continue with Amortized Analysis, the next topic in Algorithms.
Related topics
- Randomized Algorithms (Algorithms)
- Amortized Analysis (Algorithms)
- Huffman Coding (Algorithms)
- Convex Hull (Algorithms)
- Line Drawing Algorithms (Graphics, Vision & Media)
- Load Balancing Algorithms (Distributed Systems & Cloud)
- Wait-Free Algorithms (Concurrency & Parallelism)