Cheat Sheets for Hard Problems Some problems tend to be harder than - - PowerPoint PPT Presentation

cheat sheets for hard problems some problems tend to be
SMART_READER_LITE
LIVE PREVIEW

Cheat Sheets for Hard Problems Some problems tend to be harder than - - PowerPoint PPT Presentation

Cheat Sheets for Hard Problems Some problems tend to be harder than others. NP NP P NP P NP-complete NP P X solveTSP{ blah blah blah blah blah } X TSP solveTSP{ blah blah blah blah blah } solveTSP{ blah blah X


slide-1
SLIDE 1
slide-2
SLIDE 2

Cheat ¡Sheets ¡for ¡Hard ¡Problems

slide-3
SLIDE 3

Some problems tend to be harder than others.

slide-4
SLIDE 4

NP

slide-5
SLIDE 5

P NP

slide-6
SLIDE 6

P NP NP-complete

slide-7
SLIDE 7

P NP

slide-8
SLIDE 8

X solveTSP{ blah blah blah blah blah }

slide-9
SLIDE 9

TSP X solveTSP{ blah blah blah blah blah }

slide-10
SLIDE 10

TSP X solveTSP{ blah blah blah blah blah }

slide-11
SLIDE 11
slide-12
SLIDE 12

Independent Set

slide-13
SLIDE 13

Independent Set Clique

slide-14
SLIDE 14

Independent Set Clique

Independent Set Clique

slide-15
SLIDE 15

Independent Set Clique

slide-16
SLIDE 16

Independent Set Clique

slide-17
SLIDE 17

Independent Set Clique SolveIndSet { Return Clique( ); }

G

slide-18
SLIDE 18

TSP X solveTSP{ blah blah blah blah blah }

slide-19
SLIDE 19

Did you say NP-complete?

slide-20
SLIDE 20

Did you say NP-complete?

slide-21
SLIDE 21

Travelling Salesman Satisfiability Integer Linear Programming Minimum Vertex Cover

slide-22
SLIDE 22

Minimum Multi-way cut ....

slide-23
SLIDE 23
slide-24
SLIDE 24

Heuristics

slide-25
SLIDE 25

Heuristics

slide-26
SLIDE 26

Formal analysis?

slide-27
SLIDE 27

You have Polynomial Time.

slide-28
SLIDE 28

You have Polynomial Time. WORK BACKWARDS!

slide-29
SLIDE 29

Approximation & Randomized Algorithms

slide-30
SLIDE 30

A no-compromise situation?

slide-31
SLIDE 31

A no-compromise situation?

slide-32
SLIDE 32

A no-compromise situation? Exploit additional structure in the input.

slide-33
SLIDE 33

Parameterized & Exact Analysis

slide-34
SLIDE 34

Parameterized & Exact Analysis

Chromatic ¡Number ¡is ¡easy ¡on ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Graphs. Interval

slide-35
SLIDE 35

Parameterized & Exact Analysis

Chromatic ¡Number ¡is ¡easy ¡on ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Graphs. Planar*

slide-36
SLIDE 36

Parameterized & Exact Analysis

Chromatic ¡Number ¡is ¡easy ¡on ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Graphs. Bipartite

slide-37
SLIDE 37

Good solutions tend to involve a combination of several techniques.

slide-38
SLIDE 38

Vertex Cover

slide-39
SLIDE 39
slide-40
SLIDE 40
slide-41
SLIDE 41
slide-42
SLIDE 42
slide-43
SLIDE 43

Vertex Cover

Every edge has at least one end point in a vertex cover.

slide-44
SLIDE 44

Vertex Cover

Every edge has at least one end point in a vertex cover.

slide-45
SLIDE 45
slide-46
SLIDE 46
slide-47
SLIDE 47
slide-48
SLIDE 48
slide-49
SLIDE 49
slide-50
SLIDE 50
slide-51
SLIDE 51
slide-52
SLIDE 52
slide-53
SLIDE 53
slide-54
SLIDE 54

Is there a Vertex Cover with at most k vertices?

slide-55
SLIDE 55

A vertex with more than k neighbors.

slide-56
SLIDE 56

Throw away all vertices with degree (k+1) or more. (And decrease the budget appropriately.)

slide-57
SLIDE 57

Throw away all vertices with degree (k+1) or more. After all the high-degree vertices are gone... (And decrease the budget appropriately.)

slide-58
SLIDE 58

...any vertex can cover at most k edges.

slide-59
SLIDE 59

...any vertex can cover at most k edges.

Suppose the current budget is (k-x).

slide-60
SLIDE 60

...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)...?

slide-61
SLIDE 61

Lots of edges - no small vertex cover possible. Few edges - brute force becomes feasible.

slide-62
SLIDE 62

Lots of edges - no small vertex cover possible. Few edges - brute force becomes feasible. win/ win situation

slide-63
SLIDE 63
slide-64
SLIDE 64
slide-65
SLIDE 65

Common Sense

slide-66
SLIDE 66

Common Sense Approximate

slide-67
SLIDE 67

Common Sense Approximate Randomize

slide-68
SLIDE 68

Common Sense Approximate Randomize Exploit Input Structure

slide-69
SLIDE 69

Common Sense Approximate Randomize Exploit Input Structure

slide-70
SLIDE 70

http://neeldhara.com/summer2013 Slides and Other Resources