Beyond NP - PowerPoint PPT Presentation

About This Presentation
Title:

Beyond NP

Description:

Beyond NP Other complexity classes Phase transitions in P, PSPACE, Structure Backbones, 2+p-SAT, small world topology, Heuristics Constrainedness knife-edge ... – PowerPoint PPT presentation

Number of Views:54
Avg rating:3.0/5.0
Slides: 39
Provided by: IanG63
Category:

less

Transcript and Presenter's Notes

Title: Beyond NP


1
Beyond NP
  • Other complexity classes
  • Phase transitions in P, PSPACE,
  • Structure
  • Backbones, 2p-SAT, small world topology,
  • Heuristics
  • Constrainedness knife-edge, minimize
    constrainedness, ...

2
Before we begin
  • A little history ...

3
Where did this all start?
  • At least as far back as 60s with Erdos Renyi
  • thresholds in random graphs
  • Late 80s
  • pioneering work by Karp, Purdom, Kirkpatrick,
    Huberman, Hogg
  • Flood gates burst
  • Cheeseman, Kanefsky Taylors IJCAI-91 paper

4
Other complexity classes
  • Enough of the history, are phase transitions just
    in NP?
  • Conjecture in Cheeseman et al paper that phase
    transitions distinguish P from NP.

5
Random 2-SAT
  • 2-SAT is P
  • linear time algorithm
  • Random 2-SAT displays classic phase transition
  • c/n lt 1, almost surely SAT
  • c/n gt 1, almost surely UNSAT
  • complexity peaks around c/n1
  • x1 v x2, -x2 v x3, -x1 v x3,

6
Phase transitions in P
  • 2-SAT
  • c/n1
  • Horn SAT
  • transition not sharp
  • Arc-consistency
  • rapid transition in whether problem can be made
    AC
  • peak in (median) checks

7
Phase transitions above NP
  • PSpace
  • QSAT (SAT of QBF)
  • ?x1 ?x2 ?x3 . x1 v x2 -x1 v x3

8
Phase transitions above NP
  • PSpace-complete
  • QSAT (SAT of QBF)
  • stochastic SAT
  • modal SAT
  • PP-complete
  • polynomial-time probabilistic Turing machines
  • counting problems
  • SAT(gt 2n/2)
  • Bailey, Dalmau, Kolaitis IJCAI-2001

9
Exact phase boundaries in NP
  • Random 3-SAT is only known within bounds
  • 3.26 lt c/n lt 4.596
  • Recent result gives an exact NP phase boundary
  • 1-in-k SAT at c/n 2/k(k-1)
  • 2nd order transition (like 2-SAT and unlike
    3-SAT)
  • Are there any NP phase boundaries known exactly?
  • 1st order transitions not a characteristic of NP
    as has been conjectured

10
Structure
  • Can we identify structure in (random) problems
    that makes problems hard?
  • How do we model structural features found in real
    problems?
  • How does such structure affect phase transition
    behaviour?

11
Backbone
  • Variables which take fixed values in all
    solutions
  • alias unit prime implicates
  • Let fk be fraction of variables in backbone
  • in random 3-SAT
  • c/n lt 4.3, fk vanishing (otherwise adding clause
    could make problem unsat)
  • c/n gt 4.3, fk gt 0
  • discontinuity at phase boundary!

12
Backbone
  • Search cost correlated with backbone size
  • if fk non-zero, then can easily assign variable
    wrong value
  • such mistakes costly if at top of search tree
  • One source of thrashing behaviour
  • can tackle with randomization and rapid restarts
  • see
    Carlas section
  • Can we adapt algorithms to offer more robust
    performance guarantees?

13
Backbone
  • Backbones observed in structured problems
  • quasigroup completion problems (QCP)

  • colouring partial Latin squares
  • Backbones also observed in optimization and
    approximation problems
  • coloring, TSP, blocks world planning
  • see
    Slaney, Walsh IJCAI-2001
  • Can we adapt algorithms to identify and exploit
    the backbone structure of a problem?

14
2p-SAT
  • Morph between 2-SAT and 3-SAT
  • fraction p of 3-clauses
  • fraction (1-p) of 2-clauses
  • 2-SAT is polynomial (linear)
  • phase boundary at c/n 1
  • but no backbone discontinuity here!
  • 2p-SAT maps from P to NP
  • pgt0, 2p-SAT is NP-complete

15
2p-SAT phase transition
16
2p-SAT phase transition
c/n
p
17
2p-SAT phase transition
  • Lower bound
  • are the 2-clauses (on their own) UNSAT?
  • n.b. 2-clauses are much more constraining than
    3-clauses
  • p lt 0.4
  • transition occurs at lower bound
  • 3-clauses are not contributing!

18
2p-SAT backbone
  • fk becomes discontinuous for pgt0.4
  • but NP-complete for pgt0 !
  • search cost shifts from linear to exponential at
    p0.4
  • similar behavior seen with local search algorithms

Search cost against n
19
Structure
  • How do we model structural features found in real
    problems?
  • How does such structure affect phase transition
    behaviour?

20
The real world isnt random?
  • Very true!
  • Can we identify structural features common in
    real world problems?
  • Consider graphs met in real world situations
  • social networks
  • electricity grids
  • neural networks
  • ...

21
Real versus Random
  • L, average path length
  • C, clustering coefficient
  • (fraction of neighbours connected to each other,
    cliqueness measure)
  • mu, proximity ratio is C/L normalized by that of
    random graph of same size and density
  • Real graphs tend to be sparse
  • dense random graphs contains lots of (rare?)
    structure
  • Real graphs tend to have short path lengths
  • as do random graphs
  • Real graphs tend to be clustered
  • unlike sparse random graphs

22
Small world graphs
  • Sparse, clustered, short path lengths
  • Six degrees of separation
  • Stanley Milgrams famous 1967 postal experiment
  • recently revived by Watts Strogatz
  • shown applies to
  • actors database
  • US electricity grid
  • neural net of a worm
  • ...

23
An example
  • 1994 exam timetable at Edinburgh University
  • 59 nodes, 594 edges so relatively sparse
  • but contains 10-clique
  • less than 10-10 chance in a random graph
  • assuming same size and density
  • clique totally dominated cost to solve problem

24
Small world graphs
  • To construct an ensemble of small world graphs
  • morph between regular graph (like ring lattice)
    and random graph
  • prob p include edge from ring lattice, 1-p from
    random graph
  • real problems often contain similar structure and
    stochastic components?

25
Small world graphs
  • ring lattice is clustered but has long paths
  • random edges provide shortcuts without destroying
    clustering

26
Small world graphs
27
Small world graphs
28
Colouring small world graphs
29
Small world graphs
  • Other bad news
  • disease spreads more rapidly in a small world
  • Good news
  • cooperation breaks out quicker in iterated
    Prisoners dilemma

30
Other structural features
  • Its not just small world graphs that have been
    studied
  • Large degree graphs
  • Barbasi et als power-law model Walsh, IJCAI
    2001
  • Ultrametric graphs
  • Hoggs tree based model
  • Numbers following Benfords Law
  • 1 is much more common than 9 as a leading digit!
  • prob(leading digiti) log(11/i)
  • such clustering, makes number partitioning much
    easier

31
Heuristics
  • What do we understand about problem hardness at
    the phase boundary?
  • How can this help build better heuristics?

32
Looking inside search
  • Constrainedness knife-edge
  • problems are critically constrained between SAT
    and UNSAT
  • Suggests branching heuristics
  • also insight into branching mistakes

33
Inside SAT phase transition
  • Random 3-SAT, c/n 4.3
  • Davis Putnam algorithm
  • tree search through space of partial assignments
  • unit propagation
  • Clause to variable ratio c/n drops as we search
  • gt problems become less constrained
  • Aside can anyone explain simple scaling?

c/n against depth/n
34
Inside SAT phase transition
  • But (average) clause length, k also drops
  • gt problems become more constrained
  • Which factor, c/n or k wins?
  • Look at kappa which includes both!
  • Aside why is there again such simple scaling?

Clause length, k against depth/n
35
Constrainedness knife-edge
kappa against depth/n
36
Constrainedness knife-edge
  • Seen in other problem domains
  • number partitioning,
  • Seen on real problems
  • exam timetabling (alias graph colouring)
  • Suggests branching heuristic
  • get off the knife-edge as quickly as possible
  • minimize or maximize-kappa heuristics
  • must take into account branching rate, max-kappa
    often therefore not a good move!

37
Minimize constrainedness
  • Many existing heuristics minimize-kappa
  • or proxies for it
  • For instance
  • Karmarkar-Karp heuristic for number partitioning
  • Brelaz heuristic for graph colouring
  • Fail-first heuristic for constraint satisfaction
  • Can be used to design new heuristics
  • removing some of the black art

38
Beyond NP
  • Other complexity classes
  • Phase transitions in P, PSPACE,
  • Structure
  • Backbones, 2p-SAT, small world topology,
  • Heuristics
  • Constrainedness knife-edge, minimize
    constrainedness, ...
Write a Comment
User Comments (0)
About PowerShow.com