|
|
|
|
Data Complexity |
|
Query Complexity and Combined Complexity |
|
|
|
|
Data Complexity
the complexity of {A | A
² f} for fixed f |
|
Query Complexity
the complexity of {f |
A ² f} for fixed A |
|
Combined complexity
the complexity of {(A,
f) | A ² f} |
|
|
|
|
For every f, the complexity of {A | A ² f} is in
PTIME |
|
|
|
[Why ?] |
|
|
|
However, it is much lower than PTIME (next) |
|
|
|
|
Theorem The data complexity of FO is uniform AC0 |
|
|
|
What is AC0 ? |
|
What is uniform AC0 ? |
|
We will review next, but most importantly: |
|
uniform-AC0 µ LOGSPACE µ PTIME |
|
|
|
|
Fix n ¸ 0. A boolean circuit with n inputs, C,
is a rooted DAG with nodes labeled with labels from:
{Æ,
Ç, :, x1, …, xn} |
|
|
|
size(C)
= number of gates |
|
depth(C)
= length of longest path |
|
|
|
|
Definition A language L µ {0,1}* is
in non-uniform AC0 if there exists d > 0, a polynomial p(n),
and a family of circuits (Cn)n ¸ 0
s.t.:
size(Cn)
· p(n)
depth(Cn)
· d, and |
|
|
|
|
Let All be a vocabulary consisting of all
relations on N
All = P(N) [
P(N2) [ P(N3) [ … |
|
In All we have names for <, +, /, … |
|
|
|
Definition FO(All) = FO over vocabulary All |
|
Interpretation: consider only ordered domains,
assimilate with {0, 1, 2, …, n-1}. Each relation R on N is interpreted as
its restriction to {0, 1, …, n-1}. |
|
|
|
Note: we can express EVEN in FO(All) [why ?] |
|
|
|
|
Theorem FO(All) µ non-uniform AC0 |
|
|
|
|
|
Proof sketch in class (hint: it’s simple…) |
|
|
|
|
Let s = {U}
(a unary table) |
|
|
|
The property PARITY is true on models A where |UA|
is even |
|
|
|
PARITY and EVEN are very related, but… |
|
|
|
|
Theorem [Furst-Saxe-Sipser, Ajtai] PARITY is not
expressible in non-uniform AC0 |
|
|
|
Corollary PARITY is not expressible in FO(All) |
|
|
|
Comment: i.e. there is no formula in FO over
vocabulary {U} [ All that checks if |U| is even. |
|
|
|
Corollary Graph connectivity is not expressible
in FO(All) [why ?] |
|
|
|
|
EVEN is not expressible in FO |
|
|
|
But EVEN is expressible in FO(<, +) |
|
|
|
PARITY is not expressible in
FO(<, +, exp, …, any-relation-on-N, ….) ! |
|
|
|
|
Non-uniform AC0 can express
non-computable properties ! |
|
Need to restrict the association n ! Cn
to something easily computable |
|
Complex definitions in complexity theory
textbooks… |
|
|
|
Better:
define uniform AC0 = FO(+, £) |
|
|
|
Alternatively FO(+, £) = FO(<, BIT) |
|
|
|
|
Theorem The combined complexity is in PSPACE |
|
|
|
[proof: in classs] |
|
|
|
Note: proof in book is wrong. |
|
|
|
|
|
Theorem There exists a structure A s.t. the
query complexity {f | A ² f} is PSPACE complete |
|
|
|
|
|
|
Proof.
Recall the Satisfiability of Quantified Boolean Formulas problem
(QBF): is a QB formula F true ? |
|
|
|
Example:
F = 9 X1 8 X2 8 X3 (X1
Æ X2 Ç : X1 Æ X3)
is it true ? |
|
|
|
Note: boolean satisfiability (the NP-hard
problem) is in QBF [why ?] |
|
|
|
|
Theorem [Stockmeyer] QBF is PSPACE complete |
|
|
|
Return to our proof: reduction from QBF. |
|
|
|
Given QBF formula F, let s = {U}, where U =
unary |
|
A = (A, UA), s.t. A = {0,1}, UA
= {1} |
|
Translate F (a QB formula) to f (an FO formula)
s.t. F is true iff A ² f [how ?] |
|