Finite Model Theory Lecture 6

Slides:



Advertisements
Similar presentations
Complexity Theory Lecture 6
Advertisements

COMPLEXITY THEORY CSci 5403 LECTURE XVI: COUNTING PROBLEMS AND RANDOMIZED REDUCTIONS.
Lecture 24 MAS 714 Hartmut Klauck
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
Complexity 12-1 Complexity Andrei Bulatov Non-Deterministic Space.
Computability and Complexity 19-1 Computability and Complexity Andrei Bulatov Non-Deterministic Space.
1 Finite Model Theory Lecture 10 Second Order Logic.
CS151 Complexity Theory Lecture 5 April 13, 2004.
On the Hardness of Graph Isomorphism Jacobo Tor á n SIAM J. Comput. Vol 33, p , Presenter: Qingwu Yang April, 2006.
CS151 Complexity Theory Lecture 12 May 6, CS151 Lecture 122 Outline The Polynomial-Time Hierarachy (PH) Complete problems for classes in PH, PSPACE.
Computability and Complexity 32-1 Computability and Complexity Andrei Bulatov Boolean Circuits.
Submitted by : Estrella Eisenberg Yair Kaufman Ohad Lipsky Riva Gonen Shalom.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
Computability and Complexity 10-1 Computability and Complexity Andrei Bulatov Gödel’s Incompleteness Theorem.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 22 Instructor: Paul Beame.
Umans Complexity Theory Lectures Lecture 2c: EXP Complete Problem: Padding and succinctness.
February 20, 2015CS21 Lecture 191 CS21 Decidability and Tractability Lecture 19 February 20, 2015.
1 Slides by Michael Lewin & Robert Sayegh. Adapted from Oded Goldreich’s course lecture notes by Vered Rosen and Alon Rosen.
Abstract State Machines and Computationally Complete Query Languages Andreas Blass,U Michigan Yuri Gurevich,Microsoft Research & U Michigan Jan Van den.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
Theory of Computing Lecture 17 MAS 714 Hartmut Klauck.
NP Complexity By Mussie Araya. What is NP Complexity? Formal Definition: NP is the set of decision problems solvable in polynomial time by a non- deterministic.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
1 P P := the class of decision problems (languages) decided by a Turing machine so that for some polynomial p and all x, the machine terminates after at.
NP-completeness Section 7.4 Giorgi Japaridze Theory of Computability.
Lecture 7: Foundations of Query Languages Tuesday, January 23, 2001.
1 Finite Model Theory Lecture 1: Overview and Background.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
1 CSE544 Monday April 26, Announcements Project Milestone –Due today Next paper: On the Unusual Effectiveness of Logic in Computer Science –Need.
“One ring to rule them all” Analogy (sort of) Lord of The Rings Computational Complexity “One problem to solve them all” “my preciousss…”
1 Finite Model Theory Lecture 14 Proof of the Pebble Games Theorem.
1 CSE 326: Data Structures: Graphs Lecture 24: Friday, March 7 th, 2003.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
1 SAT SAT: Given a Boolean function in CNF representation, is there a way to assign truth values to the variables so that the function evaluates to true?
Lecture 9: Query Complexity Tuesday, January 30, 2001.
1 Finite Model Theory Lecture 9 Logics and Complexity Classes (cont’d)
P & NP.
Umans Complexity Theory Lectures
Quick Course Overview Quick review of logic and computational problems
From Classical Proof Theory to P vs. NP
Umans Complexity Theory Lectures
L is in NP means: There is a language L’ in P and a polynomial p so that L1 ≤ L2 means: For some polynomial time computable map r :  x: x  L1 iff.
Lecture 2-2 NP Class.
Finite Model Theory Lecture 8
Theory of Computability
Circuit Lower Bounds A combinatorial approach to P vs NP
Umans Complexity Theory Lectures
CS21 Decidability and Tractability
Intro to Theory of Computation
Lecture 24 NP-Complete Problems
CSE838 Lecture notes copy right: Moon Jung Chung
Finite Model Theory Lecture 15
Finite Model Theory Lecture 11
Finite Model Theory Lecture 2
Lecture 10: Query Complexity
CSC 4170 Theory of Computation The class NP Section 7.3.
Theory of Computability
Umans Complexity Theory Lectures
Finite Model Theory Lecture 4
CS21 Decidability and Tractability
Finite Model Theory Lecture 7
Switching Lemmas and Proof Complexity
CS151 Complexity Theory Lecture 5 April 16, 2019.
CS151 Complexity Theory Lecture 4 April 12, 2019.
CSE544 Wednesday, March 29, 2006.
Intro to Theory of Computation
CS151 Complexity Theory Lecture 4 April 8, 2004.
Lecture 23 NP-Hard Problems
Presentation transcript:

Finite Model Theory Lecture 6 Complexity of FO

Outline Data Complexity Query Complexity and Combined Complexity

Complexities 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}

Data Complexity For every f, the complexity of {A | A ² f} is in PTIME [Why ?] However, it is much lower than PTIME (next)

Data Complexity 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

AC0 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

AC0 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 8 w 2 {0,1}*: w 2 L iff Cn(w) = true, where n=|w|

FO and AC0 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 ?]

FO and AC0 Theorem FO(All) µ non-uniform AC0 Proof sketch in class (hint: it’s simple…)

PARITY 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…

Parity 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 ?]

Discussion EVEN is not expressible in FO But EVEN is expressible in FO(<, +) PARITY is not expressible in FO(<, +, exp, …, any-relation-on-N, ….) !

Uniform AC0 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)

Combined Complexity Theorem The combined complexity is in PSPACE [proof: in classs] Note: proof in book is wrong.

Combined Complexity Recursive function: function Eval(f) if f = 9 x.y then for all a 2 A do if Eval(y[a/x]) = true then return true return false if f = 8 x.y then for all a 2 A do if Eval(y[a/x]) = false then return false return true if f = y1 Æ y2 then … if f = R(a1, …, ak) then …

Query Complexity Theorem There exists a structure A s.t. the query complexity {f | A ² f} is PSPACE complete

Query Complexity 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 ?]

Query Complexity A = (A, UA), s.t. A = {0,1}, UA = {1} 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 ?]