SlideShare a Scribd company logo
Cheat Sheets for Hard Problems
Cheat  Sheets  for  Hard  Problems
Some problems tend to be harder than others.
NP
P
NP
P
NP
NP-complete
P
NP
X
TSPX
TSPX
solveTSP{
blah
blah
blah
blah
blah
}
Cheat Sheets for Hard Problems
Independent Set
Independent Set
Clique
Independent Set
Clique
Independent SetClique
Independent SetClique
Independent SetClique
Independent SetClique
SolveIndSet { Return Clique( ); }G
TSPX
solveTSP{
blah
blah
blah
blah
blah
}
Did you say NP-complete?
Did you say NP-complete?
Travelling Salesman
Satisfiability
Integer Linear Programming
Minimum Multi-way cut
....
Cheat Sheets for Hard Problems
Heuristics
Heuristics
Formal analysis?
You have Polynomial Time.
You have Polynomial Time.
WORK BACKWARDS!
Approximation & Randomized Algorithms
A no-compromise situation?
A no-compromise situation?
A no-compromise situation?
Exploit additional structure in the input.
Parameterized & Exact Analysis
Parameterized & Exact Analysis
Chromatic  Number  is  easy  on                                Graphs.Interval
Parameterized & Exact Analysis
Chromatic  Number  is  easy  on                                Graphs.Planar*
Parameterized & Exact Analysis
Chromatic  Number  is  easy  on                                Graphs.Bipartite
Good solutions tend to involve a
combination of several techniques.
Vertex Cover
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Vertex Cover
Every edge has at least one end point in a vertex cover.
Vertex Cover
Every edge has at least one end point in a vertex cover.
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Is there a Vertex Cover with at most k vertices?
A vertex with more than k neighbors.
Throw away all vertices with degree (k+1) or more.
(And decrease the budget appropriately.)
Throw away all vertices with degree (k+1) or more.
After all the high-degree vertices are gone...
(And decrease the budget appropriately.)
...any vertex can cover at most k edges.
...any vertex can cover at most k edges.
Suppose the current budget is (k-x).
...any vertex can cover at most k edges.
Suppose the current budget is (k-x).
If the number of edges in the graph exceeds k(k-x)...?
Lots of edges - no small vertex cover possible.
Few edges - brute force becomes feasible.
Lots of edges - no small vertex cover possible.
Few edges - brute force becomes feasible.
win/win
situation
Cheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
Common Sense
Common Sense
Approximate
Common Sense
Approximate
Randomize
Common Sense
Approximate
Randomize
Exploit Input Structure
Common Sense
Approximate
Randomize
Exploit Input Structure
http://neeldhara.com/summer2013
Slides and Other Resources

More Related Content

PDF
A Simple Algorithm for Minimal Unsatisfiable core
PPTX
Theory of Automata and formal languages Unit 5
PDF
Cs6503 theory of computation may june 2016 be cse anna university question paper
PPTX
Turing machine-TOC
PPTX
Turing machine - theory of computation
DOCX
Cs6503 theory of computation november december 2016
PDF
Cs6503 theory of computation november december 2015 be cse anna university q...
PDF
20110319 parameterized algorithms_fomin_lecture03-04
A Simple Algorithm for Minimal Unsatisfiable core
Theory of Automata and formal languages Unit 5
Cs6503 theory of computation may june 2016 be cse anna university question paper
Turing machine-TOC
Turing machine - theory of computation
Cs6503 theory of computation november december 2016
Cs6503 theory of computation november december 2015 be cse anna university q...
20110319 parameterized algorithms_fomin_lecture03-04

What's hot (20)

PPTX
Church Turing Thesis
PDF
Cs2303 theory of computation may june 2016
PPTX
Presentation of daa on approximation algorithm and vertex cover problem
DOCX
CS2303 Theory of computation April may 2015
DOCX
Cs6503 theory of computation april may 2017
PPTX
Turing machine by_deep
PPT
Turing machine
PPT
06 clipping
PDF
PPTX
Asymptotic Notation
DOC
Model toc
PDF
N20181126
PPTX
1.6 all notes
PDF
Turing machines
PPTX
C++ training day01
PPTX
3.4 deterministic pda
PDF
PPTX
PPTX
Lec 5 asymptotic notations and recurrences
PPTX
Theory of automata and formal languages Unit 4
Church Turing Thesis
Cs2303 theory of computation may june 2016
Presentation of daa on approximation algorithm and vertex cover problem
CS2303 Theory of computation April may 2015
Cs6503 theory of computation april may 2017
Turing machine by_deep
Turing machine
06 clipping
Asymptotic Notation
Model toc
N20181126
1.6 all notes
Turing machines
C++ training day01
3.4 deterministic pda
Lec 5 asymptotic notations and recurrences
Theory of automata and formal languages Unit 4
Ad

Viewers also liked (9)

PPTX
Fractional knapsack class 13
PDF
Algorithm chapter 10
PPT
Introduction to NP Completeness
PPTX
Limits of Computation
PPT
Knapsack problem
PPTX
Knapsack
PPTX
Knapsack Problem
PPTX
NP completeness
PPTX
Greedy Algorithms
Fractional knapsack class 13
Algorithm chapter 10
Introduction to NP Completeness
Limits of Computation
Knapsack problem
Knapsack
Knapsack Problem
NP completeness
Greedy Algorithms
Ad

Similar to Cheat Sheets for Hard Problems (20)

PPT
Introduction to algorithms and it's different types
PDF
P versus NP
PPT
Giáo trình Phân tích và thiết kế giải thuật - CHAP 8
PPTX
CSE680-17NP-Complete.pptx
PPTX
Approximation
PPTX
Undecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWER
PPTX
Design and analysis of algorithms unit 6 non deterministic polynomial
PDF
Search problems in Artificial Intelligence
PDF
Daa chapter11
PPTX
Undecidable Problems and Approximation Algorithms
PDF
Introduction to Approximation Algorithms
PPTX
Algorithm Design and Complexity - Course 6
PPT
CS 332 : Algorithms - Concept of NP Completeness
PPTX
optimal merge pattern notes - algorithms
PPT
lecture 27
PDF
28 Dealing with the NP Poblems: Exponential Search and Approximation Algorithms
PDF
Skiena algorithm 2007 lecture21 other reduction
PPTX
PPTX
PNP.pptx
Introduction to algorithms and it's different types
P versus NP
Giáo trình Phân tích và thiết kế giải thuật - CHAP 8
CSE680-17NP-Complete.pptx
Approximation
Undecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWER
Design and analysis of algorithms unit 6 non deterministic polynomial
Search problems in Artificial Intelligence
Daa chapter11
Undecidable Problems and Approximation Algorithms
Introduction to Approximation Algorithms
Algorithm Design and Complexity - Course 6
CS 332 : Algorithms - Concept of NP Completeness
optimal merge pattern notes - algorithms
lecture 27
28 Dealing with the NP Poblems: Exponential Search and Approximation Algorithms
Skiena algorithm 2007 lecture21 other reduction
PNP.pptx

More from Neeldhara Misra (19)

PDF
Efficient algorithms for hard problems on structured electorates
PDF
On the Parameterized Complexity of Party Nominations
PDF
Graph Modification Problems: A Modern Perspective
PDF
Deleting to Structured Trees
PDF
Elicitation for Preferences Single Peaked on Trees
PDF
Graph Modification Algorithms
PDF
Wg qcolorable
PDF
An FPT Algorithm for Maximum Edge Coloring
PDF
Research in CS
PDF
EKR for Matchings
PDF
Separators with Non-Hereditary Properties
PDF
From FVS to F-Deletion
PDF
A Kernel for Planar F-deletion: The Connected Case
PDF
Kernels for Planar F-Deletion (Restricted Variants)
PDF
Efficient Simplification: The (im)possibilities
PDF
Kernelization Complexity of Colorful Motifs
PDF
Expansions for Reductions
PDF
Lower Bounds In Kernelization
PDF
Connected Dominating Set and Short Cycles
Efficient algorithms for hard problems on structured electorates
On the Parameterized Complexity of Party Nominations
Graph Modification Problems: A Modern Perspective
Deleting to Structured Trees
Elicitation for Preferences Single Peaked on Trees
Graph Modification Algorithms
Wg qcolorable
An FPT Algorithm for Maximum Edge Coloring
Research in CS
EKR for Matchings
Separators with Non-Hereditary Properties
From FVS to F-Deletion
A Kernel for Planar F-deletion: The Connected Case
Kernels for Planar F-Deletion (Restricted Variants)
Efficient Simplification: The (im)possibilities
Kernelization Complexity of Colorful Motifs
Expansions for Reductions
Lower Bounds In Kernelization
Connected Dominating Set and Short Cycles

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
Computing-Curriculum for Schools in Ghana
PPTX
master seminar digital applications in india
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Lesson notes of climatology university.
A systematic review of self-coping strategies used by university students to ...
STATICS OF THE RIGID BODIES Hibbelers.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Final Presentation General Medicine 03-08-2024.pptx
O7-L3 Supply Chain Operations - ICLT Program
human mycosis Human fungal infections are called human mycosis..pptx
Microbial diseases, their pathogenesis and prophylaxis
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
RMMM.pdf make it easy to upload and study
Computing-Curriculum for Schools in Ghana
master seminar digital applications in india
O5-L3 Freight Transport Ops (International) V1.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
GDM (1) (1).pptx small presentation for students
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Pharma ospi slides which help in ospi learning
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE

Cheat Sheets for Hard Problems