If%20a%20sparse,%20NP-Complete%20language%20exists%20=> - PowerPoint PPT Presentation

About This Presentation
Title:

If%20a%20sparse,%20NP-Complete%20language%20exists%20=>

Description:

Given a formula, for each m in [1, pd(pa(|F ... Ca(pa(|F|)) each stage is guaranteed to have at least one satisfiable formula. ... – PowerPoint PPT presentation

Number of Views:12
Avg rating:3.0/5.0
Slides: 16
Provided by: samuel69
Category:

less

Transcript and Presenter's Notes

Title: If%20a%20sparse,%20NP-Complete%20language%20exists%20=>


1
Mahaneys Theorem
a.k.a. Hem/Ogi Theorem 1.7 a.k.a. Bov/Cre Theorem
5.7
If a sparse, NP-Complete language exists gt P NP
Definitions
Let S be a sparse NP-Complete language
Define pl(n) nl l
We know that since S is NP-Complete
The function that reduces, s, is bounded by pa
Define C(n) Sn and Ca(n) Spa(n)
Since S is sparse, C(n) is bounded by pd
2
What did the sparse set say to its
complement? Why do you have to be so dense?
What we would want to happen, or Why this proof
isnt really easy
What if S were in NP?
Since S is NP-Complete,
Since many-one reductions are closed
under complementation,
Thus, S is NP-Complete, S is co-NP-Complete and
Hem/Ogi theorem 1.4 shows that PNP.
If only the proof were as easy as putting
many-one reductions into a presentation
3
Sorry, not quite so easy
However, S is not necessarily in NP
Lets define S in terms of Ca(n)
Sx ?y1, y2,,yCa(x) (y1pa(x) y1?x
y1?S (y2pa(x) y2?x
y2?S (yCa(x)pa(x)
yCa(x)?x yCa(x)?S all the ys
are distinct
S is for losers anyway
Hey, what about me?
Spa(x)
x
y5
y2
y4
y1
y3
4
If only we had a way to have S be an NP language
Unfortunately, we cannot find the value of Ca(x)
Fix this by parameterizing the number of ys
Sltx,mgt ?y1, y2,,ym (y1pa(x)y1?xy1?S
(y2pa(x)y2?x
y2?S
(ympa(x) ym?x ym?S
all the ys are distinct
We will call this the pseudo-complement of S
Note that for any ltx,mgt, ltx,mgt? S iff
  1. m lt Ca(x) or
  2. m Ca(x) and x?S

5
How can this pseudo-complement help?
We can prove that S is in NP by constructing
an algorithm that decides S in non-deterministic
polynomial time.
Heres a modified version of Bov-Cres algorithm
begin input x, m if m gt pd(pa(x)) then
reject guess y1, y2, , ym in set of m-tuples
of distinct words, each of which is of
length, at most, pa(x) for i 1 to m
do if yi x then reject simulate
MS(yi) along all Mss paths starting at i 1
if Ms(yi) is going to accept and i lt m
simulate Ms(yi1) along all Mss paths
if Ms(yi) is going to accept and i m
accept along that path accept end.
Since S is in NP and S is NP-Complete,
by some function ? with bound pg
6
Why is it called recap? We never capped anything
in the first place capitulate \Capit"ulate\,
v. t. To surrender or transfer, as an army or a
fortress, on certain conditions. R.
So far, weve figured out the following a) S
many-one poly-time reduces to S by ? with time
bound pg b) SAT many-one poly-time reduces to S
by s with time bound pa c) The sparseness of S,
C(n), is assured by pd d) Bov-Cre is way too
algorithmic e) It is probably going to snow
today --Hey, we all chose Rochester for some
reason
Next Whats our favorite way to show
PNP? Whats our favorite way to show that SAT
can be decided in polynomial time?
7
Get out the hedge trimmers
We have some formula F We want to know if its in
SAT
F
F(v1true)
F(v1false)
.
.
.
.
.
.
Look familiar?
This tree will get way too bushy for our purposes
though, so we need to come up with a way to prune
it
8
Whats this? A polynomial number of hedge
trimmers? Only a theorist would think of
something like that
Given a formula, for each m in 1, pd(pa(F))
(this is every possible value of m for F)
Create and prune a tree of assignments to
variables just as we did for theorem 1.4 using a
new pruning algorithm. When we get to the end,
check each assignment to see if its satisfiable.
  • What we want to happen
  • The number of leaves to be bounded by a
    polynomial
  • The pruning algorithm to be polynomial time
  • If F is satisfiable, then one of the leaves of
    the tree at the end is satisfiable
  • The snow to wait at least another 3-4 weeks so it
    wont instantly turn into slush and then ice
  • What that will get us
  • A polynomial time algorithm that decides SAT
  • More time to put off getting snow tires for our
    cars

9
This slide is a great example of why I am not a
digital art major
For each stage of the tree D is the set of all
formulas generated by assigning true and false to
the previous stages result D is the set of all
formulas that have not been pruned from D (i.e.
D ? D)
F
.
.
.
.
.
.
.
.
f
.
.
.
.
.
.
.
.
.
.
How do we get to D from D?
for each f in D if D pd(pg(pa(F))) and
for each f in D ?(lts(f), mgt) ?
?(lts(f), mgt) then add f to D
10
When were done Check each (variable-free)
formula in the bottom layer to see if its
satisfiable There are only a polynomial number If
any is satisfiable, were done If for all ms, no
formula in the bottom layer is satisfiable, F is
not satisfiable
Whats next? Mappings A few comparisons Some
polynomial bounds Tree pruning PNP
11
Wait I dont get it How is it so hard to draw
nice trees when you are using presentation
software with the snap-to-grid feature?
Demystification (why the pruning works)
It is important to note that when we have found
the correct m Ca(pa(F)) that f is not
satisfiable iff ?(lts(f), Ca(pa(F))gt)? S
Why, you ask? Recall that SAT reduces to S This f
? SAT iff s(f) ? S Remember S? mCa(pa(F)) and
s(f)?S iff lts(f), Ca(pa(F))gt?S But S reduces to
S too! lts(f), Ca(pa(F))gt?S iff ?(lts(f),
Ca(pa(F))gt)?S
12
If pa(pq(pr(pl(mCn(x))))) pj(pn(p4(pa(nm
1)))), then 2 3 At least something is obvious
in these slides
How does this help? There are a bounded number of
unsatisfiable formulas that are mapped in S.
This is pd (the sparsity of S) composed with pg
(the limit on mappings to S through ?) composed
with pa (the limit on mappings to S through
s) If we have chosen m Ca(pa(F)), and we
have found more than pd(pg(pa(F))) values
then Not all those ?(lts(f), mgt)s are in S so at
least one of the fs is satisfiable Thus, we can
happily prune away all but one over the bound of
these values, leaving a polynomial number while
still guaranteeing one of them is sure to have a
satisfying assignment.
Since m is constant for each tree, pairing s(f)
with m will not make the number of possible
mappings in S bigger. Thus we dont need to
worry about the pairing in S changing the bound.
13
This complicated diagram makes it much easier to
see. Trust me.
SAT
f
f
f
pa(f)
S
r
r
r
pa(f)
S
ltr, mgt
ltr, mgt
ltr, mgt
pg(pa(f))
S
Dont forget that Im sparse!
t
t
t
14
Wait, if I prove PNP, I win a million
dollars In the universe that has a sparse
NP-Complete set, I am rich!
Most of you are saying right now Yes, that is
true, but how do you know if you have an m
Ca(pa(F)) An interesting fact There are a
polynomial number of ms. Does it really matter
what happens to the tree with m ? Ca(pa(F))? As
long as were not wasting too much time pruning
trees the wrong way, the other ms dont create
too much overhead. If F is not satisfiable, well
never get a satisfying assignment if F is
satisfiable, maybe well randomly keep an
assignment with m?Ca(pa(F)) but when m
Ca(pa(F)) each stage is guaranteed to have at
least one satisfiable formula.
15
It all comes down to wait, what were we talking
about?
Wait did we just do what I think we did? Since
for some value m, there is a tree that outputs a
satisfiable formula iff the formula is
satisfiable There are at most a polynomial number
of leaves The pruning function runs in a
polynomial amount of time There are only a
polynomial number of trees We just decided if a
formula is satisfiable in a polynomial amount of
time Thus an NP-Complete language is decidable by
a deterministic polynomial algorithm and P NP
now what?
Write a Comment
User Comments (0)
About PowerShow.com