48
Where are the hard problems? Patrick Prosser with help from • Peter Cheeseman • Bob Kanefsky • Will Taylor • APES • and many more

Where are the hard problems?

  • Upload
    tacy

  • View
    30

  • Download
    0

Embed Size (px)

DESCRIPTION

Where are the hard problems?. Patrick Prosser with help from Peter Cheeseman Bob Kanefsky Will Taylor APES and many more. Remember Graph Colouring?. Remember 3Col?. 3 Colour me?. 3 Colour me?. Easy?. 3 Colour me?. 3 Colour me?. Easy?. 3 Colour me?. 3 Colour me?. Easy?. - PowerPoint PPT Presentation

Citation preview

Page 1: Where are the hard problems?

Where are the hard problems?

Patrick Prosser with help from• Peter Cheeseman• Bob Kanefsky• Will Taylor• APES• and many more

Page 2: Where are the hard problems?

Remember Graph Colouring?

Remember 3Col?

Page 3: Where are the hard problems?

3 Colour me?

Page 4: Where are the hard problems?

3 Colour me?

Easy?

Page 5: Where are the hard problems?

3 Colour me?

Page 6: Where are the hard problems?

3 Colour me?

Easy?

Page 7: Where are the hard problems?

3 Colour me?

Page 8: Where are the hard problems?

3 Colour me?

Easy?

Page 9: Where are the hard problems?

3 Colour me?

Easy?Does Size Matter?

Page 10: Where are the hard problems?

3 Colour me?

Does size matter?

Page 11: Where are the hard problems?

So, Where are the hard problems?

Page 12: Where are the hard problems?
Page 13: Where are the hard problems?
Page 14: Where are the hard problems?
Page 15: Where are the hard problems?

Wots NP?

Nondeterministic PolynomialProblems that cannot be solved in polynomial (P) time

… as far as we know

NP-Complete (NPC)If a polytime alg can be found for any NPC problemThen it can be adapted for all NPC problems

Page 16: Where are the hard problems?
Page 17: Where are the hard problems?
Page 18: Where are the hard problems?
Page 19: Where are the hard problems?
Page 20: Where are the hard problems?
Page 21: Where are the hard problems?
Page 22: Where are the hard problems?
Page 23: Where are the hard problems?

Wot’s SAT?

Toby?

Page 24: Where are the hard problems?

Propositional Satisfiability

• SAT– does a truth assignment exist that

satisfies a propositional formula?– special type of constraint

satisfaction problem• Variables are Boolean• Constraints are formulae

– NP-complete

• 3-SAT– formulae in clausal form with 3

literals per clause– remains NP-complete

(x1 v x2) & (-x2 v x3 v -x4)

x1/ True, x2/ False, ...

Page 25: Where are the hard problems?

Wots complexity of 3SAT?

Page 26: Where are the hard problems?
Page 27: Where are the hard problems?

Random 3-SAT

• Random 3-SAT– sample uniformly from space

of all possible 3-clauses– n variables, l clauses

• Which are the hard instances?– around l/n = 4.3

What happens with larger problems?

Why are some dots red and others blue?

Page 28: Where are the hard problems?

Random 3-SAT

• Varying problem size, n

• Complexity peak appears to be largely invariant of algorithm– backtracking algorithms

like Davis-Putnam– local search procedures like

GSAT

What’s so special about 4.3?

Page 29: Where are the hard problems?
Page 30: Where are the hard problems?
Page 31: Where are the hard problems?
Page 32: Where are the hard problems?
Page 33: Where are the hard problems?
Page 34: Where are the hard problems?
Page 35: Where are the hard problems?

• CKT were first to report the phenomenon• Were they the first to see it?

Page 36: Where are the hard problems?

Feldman and Golumbic 1990Student Scheduling Problems

Wait a minute! 1990? Real problems?

Page 37: Where are the hard problems?

Gaschnig PhD thesis 19792nd last page

My favourite! Gaschnig’s random 10 queens

Page 38: Where are the hard problems?

Rotate to view!

Gaschnig 1979Log of search effort against constraint tightnessAlgorithm independent phenomena

Page 39: Where are the hard problems?

Gaschnig’s Thesis, page 179

4.4.3 Cost as a Function of L: A sharp Peak at L = ~0.6

Page 40: Where are the hard problems?

• Random CSP’s <n,m,p1,p2>

• n the number of variables• m domain size• p1 the probability of a constraint

•between variables Vi and Vj• p2 probability Vi=x and Vj=y are in conflict

• <20,10,1.0,0> • easy soluble clique

• <20,10,1.0,1.0>• easy insoluble clique

• <20,10,1.0,0.2>• hard, phase transition, clique

• <20,10,0.5,0.37>• Drosophilia

Page 41: Where are the hard problems?

ECAI94, random csp’s

1994, PT for CSP, show it exists, try and locate it (bms also at ECAI94)And lunch with Barbara, Toby, and Ian

Page 42: Where are the hard problems?

Frost and DechterAAAI94

1994 again, Frost and Dechter tabulate, use this for comparison of algs (CKT’s first goal!)

Page 43: Where are the hard problems?

Bessiere AIJ65 1994

1994 again! A problem in P

Page 44: Where are the hard problems?

1 2log ( )Sol

N

Constrainedness

<Sol> is expected number of solutions N is log_2 of the size of the state space

k = 0, all states are solutions, easy, underconstrained

k =

k = 1, critically constrained, 50% solubility, hard

, <Sol> is zero, easy, overconstrained

Applied to: CSP, TSP, 3-SAT, 3-COL, Partition, HC, …?

Page 45: Where are the hard problems?

• 1994– critical ratio of clauses to variables in 3SAT

• 1995– applied techniques from statistical mechanics to analysis

• 1996– Kappa, a theory of constrainedness

• applies in CSP, 3-SAT NumPart, TSP!, ...

– kappa based heuristics– P/NP phase transition (2+p)-SAT

• At p ~0.4

Page 46: Where are the hard problems?

• 1997– Kappa holds in P, achieving arc-consistency– Empirically derive complexity of AC3– Derive existing heuristics for revision ordering in

AC3

• 1998– Expectation of better understanding of behaviour of

algorithms and heuristic– What happens inside search?

Page 47: Where are the hard problems?

• 1999 – Kappa for QSAT

• 2000 – the backbone

• 2001– backbone heuristics

• 2000 and beyond– Physics takes over?

Page 48: Where are the hard problems?

Conclusion?• More to it than just P and NP• we are now learning about the structure of problems• the behaviour of algorithms• using this to solve the problems!