Descriptive Complexity
|
|
- Arron Cook
- 5 years ago
- Views:
Transcription
1 Descriptive Complexity and Nested Words 1/46 Descriptive Complexity and Nested Words Neil Immerman immerman I decided to start with a survey of Descriptive Complexity, and end with a survey of Nested Words. Please ask questions during my talk because two-way communication is more fun and allows much more understanding!
2 Descriptive Complexity Descriptive Complexity and Nested Words 1/46
3 Descriptive Complexity and Nested Words 1/46 Descriptive Complexity Input q 1 q 2 q n Computation Output a 1 a 2 a i a n k
4 Descriptive Complexity and Nested Words 1/46 Descriptive Complexity Input q 1 q 2 q n Computation Output a 1 a 2 a i a n k
5 Descriptive Complexity and Nested Words 1/46 Descriptive Complexity Input q 1 q 2 q n Computation Output a
6 Descriptive Complexity and Nested Words 1/46 Descriptive Complexity Input q 1 q 2 q n Computation Output a How much computation is needed to check if input has property S?
7 Descriptive Complexity and Nested Words 1/46 Descriptive Complexity Input q 1 q 2 q n Computation Output a How much computation is needed to check if input has property S? How rich a language do we need to express property S?
8 Descriptive Complexity and Nested Words 2/46 Encode Input as Finite Logical Structure Graph G = ({v 1,...,v n },E,s,t) s t Binary A w = ({p 1,...,p 8 },S) String S = {p 2,p 5,p 7,p 8 } w = Vocabularies: τ g = (E 2,s,t), τ s = (S 1 )
9 Descriptive Complexity and Nested Words 3/46 First-Order Logic input symbols: from τ variables: x,y,z,... boolean connectives:,, quantifiers:, numeric symbols: =,, +,, 0, max α x y(e(x,y)) L(τ g ) β x y(x y S(x)) L(τ s ) β S(0) L(τ s )
10 Descriptive Complexity and Nested Words 4/46 Second-Order Logic = first-order logic + quantifiable relational variables Φ 3 color R 1 Y 1 B 1 xy ((R(x) Y (x) B(x)) (E(x,y) ( (R(x) R(y)) (Y (x) Y (y)) (B(x) B(y))))) s d t b a c f g e
11 Descriptive Complexity and Nested Words 4/46 Second-Order Logic Fagin s Theorem: NP = SO Φ 3 color R 1 Y 1 B 1 xy ((R(x) Y (x) B(x)) (E(x,y) ( (R(x) R(y)) (Y (x) Y (y)) (B(x) B(y))))) s d t b a c f g e
12 Descriptive Complexity and Nested Words 5/46 Addition is First-Order Q + : STRUC[τ AB ] STRUC[τ s ] A a 1 a 2... a n 1 a n B + b 1 b 2... b n 1 b n S s 1 s 2... s n 1 s n ( C(i) ( j > i) A(j) B(j) ) ( k.j > k > i)(a(k) B(k)) Q + (i) A(i) B(i) C(i)
13 Descriptive Complexity and Nested Words 6/46 Parallel Machines CRAM[t(n)] = CRCW-PRAM-TIME[t(n)]-HARD[n O(1) ] P r P 1 Global P 2 Memory P 3 P 4 synchronous, concurrent read and write n O(1) processors and memory P 5
14 Descriptive Complexity and Nested Words 6/46 Parallel Machines CRAM[t(n)] = CRCW-PRAM-TIME[t(n)]-HARD[n O(1) ] P r P 1 Global P 2 Memory P 3 P 4 Quantifiers are parallel: If array A[x] : x = 1,...,r in memory, x(a(x)) write(1); proc p i : if (A[i] = 0) then P 5
15 Descriptive Complexity and Nested Words 6/46 Parallel Machines CRAM[t(n)] = CRCW-PRAM-TIME[t(n)]-HARD[n O(1) ] P r P Global Memory P 2 P P 4 Quantifiers are parallel: If array A[x] : x = 1,...,r in memory, x(a(x)) write(1); proc p i : if (A[i] = 0) then P 5
16 Descriptive Complexity and Nested Words 6/46 Parallel Machines CRAM[t(n)] = CRCW-PRAM-TIME[t(n)]-HARD[n O(1) ] P r P Global Memory P 2 P P 4 Quantifiers are parallel: If array A[x] : x = 1,...,r in memory, x(a(x)) write(1); proc p i : if (A[i] = 0) then P 5
17 Descriptive Complexity and Nested Words 7/46 Inductive Definitions E (x,y) x = y E(x,y) z(e (x,z) E (z,y)) s t
18 Descriptive Complexity and Nested Words 7/46 Inductive Definitions E (x,y) x = y E(x,y) z(e (x,z) E (z,y)) ϕ tc (R,x,y) x = y E(x,y) z(r(x,z) R(z,y)) A REACH A = (LFPϕ tc )(s,t) s t
19 Descriptive Complexity and Nested Words 7/46 Inductive Definitions E (x,y) x = y E(x,y) z(e (x,z) E (z,y)) ϕ tc (R,x,y) x = y E(x,y) z(r(x,z) R(z,y)) A REACH A = (LFPϕ tc )(s,t) Thus, REACH IND[log n]. s t
20 Descriptive Complexity and Nested Words 7/46 Inductive Definitions E (x,y) x = y E(x,y) z(e (x,z) E (z,y)) ϕ tc (R,x,y) x = y E(x,y) z(r(x,z) R(z,y)) A REACH A = (LFPϕ tc )(s,t) Thus, REACH IND[log n]. s t Next, we ll show that REACH FO[log n].
21 ϕ tc (R,x,y) x = y E(x,y) ( z)(r(x,z) R(z,y)) Descriptive Complexity and Nested Words 8/46 1. Dummy universal quantification for base case: ϕ tc (R,x,y) ( z.m 1 )( z)(r(x,z) R(z,y)) M 1 (x = y E(x,y))
22 ϕ tc (R,x,y) x = y E(x,y) ( z)(r(x,z) R(z,y)) Descriptive Complexity and Nested Words 8/46 1. Dummy universal quantification for base case: ϕ tc (R,x,y) ( z.m 1 )( z)(r(x,z) R(z,y)) M 1 (x = y E(x,y)) 2. Using, replace two occurrences of R with one: ϕ tc (R,x,y) ( z.m 1 )( z)( uv.m 2 )R(u,v) M 2 (u = x v = z) (u = z v = y)
23 ϕ tc (R,x,y) x = y E(x,y) ( z)(r(x,z) R(z,y)) Descriptive Complexity and Nested Words 8/46 1. Dummy universal quantification for base case: ϕ tc (R,x,y) ( z.m 1 )( z)(r(x,z) R(z,y)) M 1 (x = y E(x,y)) 2. Using, replace two occurrences of R with one: ϕ tc (R,x,y) ( z.m 1 )( z)( uv.m 2 )R(u,v) M 2 (u = x v = z) (u = z v = y) 3. Requantify x and y. M 3 (x = u y = v) ϕ tc (R,x,y) ( z.m 1 )( z)( uv.m 2 )( xy.m 3 )R(x,y)
24 Descriptive Complexity and Nested Words 9/46 Define the quantifier block: QB tc ( z.m 1 )( z)( uv.m 2 )( xy.m 3 ) Operator ϕ tc is equivalent to QB tc : ϕ tc (R,x,y) [QB tc ]R(x,y) Thus, for any r, ϕ r tc ( ) [QB tc] r (false) Thus, for any structure A STRUC[τ g ], A REACH A = (LFPϕ tc )(s,t) A = ([QB tc ] 1+log A false)(s,t)
25 Descriptive Complexity and Nested Words 10/46 CRAM[t(n)] = concurrent parallel random access machine; polynomial hardware, parallel time O(t(n)) IND[t(n)] = first-order, depth t(n) inductive definitions FO[t(n)] = t(n) repetitions of a block of restricted quantifiers: QB = [(Q 1 x 1.M 1 ) (Q k x k.m k )]; M i quantifier-free ϕ n = [QB][QB] [QB] M }{{} 0 t(n)
26 Descriptive Complexity and Nested Words 11/46 parallel time = inductive depth = quantifier-block iteration Thm: For all constructible, polynomially bounded t(n), CRAM[t(n)] = IND[t(n)] = FO[t(n)] Thm: For all t(n), even beyond polynomial, CRAM[t(n)] = FO[t(n)]
27 Descriptive Complexity and Nested Words 12/46 Thm: For v = 1, 2,..., DSPACE[n v ] = VAR[v + 1] Number of variables corresponds to amount of hardware. Since variables range over a universe of size n, a constant number of variables can specify a polynomial number of gates: A bounded number of variables corresponds to polynomially much hardware.
28 co r.e. complete co r.e. Arithmetic Hierarchy r.e. r.e. complete Recursive Primitive Recursive EXPTIME co NP complete PSPACE Polynomial Time Hierarchy co NP NP NP co NP NP complete P "truly feasible" NC log(cfl) NSPACE[log n] DSPACE[log n] Regular FO Descriptive Complexity and Nested Words 13/46 AC 0
29 co r.e. complete Arithmetic Hierarchy co r.e. r.e. complete Recursive r.e. Primitive Recursive co NP complete EXPTIME PSPACE Polynomial Time Hierarchy co NP NP NP co NP NP complete P "truly feasible" NC FO NC log(cfl) NSPACE[log n] DSPACE[log n] Regular Logarithmic Time Hierarchy 2 SAC Descriptive Complexity and Nested Words 14/46 1 NC AC 0 1 ThC 0
30 co r.e. complete Arithmetic Hierarchy co r.e. r.e. complete Recursive r.e. Primitive Recursive EXPTIME PSPACE co NP complete Polynomial Time Hierarchy co NP NP NP co NP SO E NP complete P FO(LFP) "truly feasible" NC FO FO(TC) NC log(cfl) NSPACE[log n] DSPACE[log n] Regular Logarithmic Time Hierarchy 2 SAC Descriptive Complexity and Nested Words 15/46 1 NC AC 0 1 ThC 0
31 co r.e. complete Arithmetic Hierarchy co r.e. r.e. complete Recursive r.e. Primitive Recursive EXPTIME O(1) n FO[2 ] PSPACE FO(PFP) co NP complete Polynomial Time Hierarchy co NP NP NP co NP SO E NP complete O(1) FO[n ] P FO(LFP) "truly feasible" O(1) FO[(log n) ] NC FO(TC) FO(DTC) FO(M) FO NC log(cfl) NSPACE[log n] DSPACE[log n] Regular Logarithmic Time Hierarchy 2 SAC Descriptive Complexity and Nested Words 16/46 1 NC AC 0 1 ThC 0
32 co r.e. complete Arithmetic Hierarchy co r.e. r.e. complete Recursive r.e. Primitive Recursive EXPTIME O(1) n FO[2 ] PSPACE FO(PFP) co NP complete SO A co NP Polynomial Time Hierarchy SO NP co NP NP SO E NP complete O(1) FO[n ] "truly feasible" P FO(LFP) SO Horn O(1) FO[(log n) ] NC FO(TC) FO(DTC) FO(M) FO NC log(cfl) NSPACE[log n] DSPACE[log n] Regular Logarithmic Time Hierarchy 2 SAC Descriptive Complexity and Nested Words 17/46 1 SO Krom NC AC 0 1 ThC 0
33 co r.e. complete Arithmetic Hierarchy co r.e. r.e. complete Recursive r.e. Primitive Recursive O(1) n FO[2 ] co NP complete SO O(1) n SO[2 ] A O(1) SO[n ] co NP EXPTIME PSPACE SO FO(PFP) Polynomial Time Hierarchy NP co NP SO(LFP) NP SO SO(TC) E NP complete O(1) FO[n ] "truly feasible" P FO(LFP) SO Horn O(1) FO[(log n) ] NC FO(TC) FO(DTC) FO(M) FO NC log(cfl) NSPACE[log n] DSPACE[log n] Regular Logarithmic Time Hierarchy 2 SAC Descriptive Complexity and Nested Words 18/46 1 SO Krom NC AC 0 1 ThC 0
34 co r.e. complete FO A (N) co r.e. Arithmetic Hierarchy FO(N) Recursive r.e. FO E r.e. complete (N) Primitive Recursive n O(1) O(1) FO[2 ] SO[n ] FO(PFP) SO(TC) co NP complete SO n O(1) SO[2 ] A co NP Polynomial Time Hierarchy NP EXPTIME PSPACE SO co NP SO(LFP) NP SO E NP complete O(1) FO[n ] "truly feasible" P FO(LFP) SO Horn O(1) FO[(log n) ] NC FO(TC) NC 2 log(cfl) NSPACE[log n] FO(DTC) DSPACE[log n] Regular FO(M) FO Logarithmic Time Hierarchy SAC Descriptive Complexity and Nested Words 19/46 1 SO Krom NC AC 1 ThC 0 0
35 Descriptive Complexity and Nested Words 20/46 We Need an Ordering on the Universe G = (V,E); V = {0, 1,...,n 1}; 0 < 1 < < n 1 An unordered graph makes sense mathematically, but you can t store such an object in a computer as far as I know. If you remove the ordering then the first-order descriptive characterizations fail: EVEN requires Ω(n) variables without ordering. Thus, EVEN FO(wo )[2 no(1) ]; (FO[2 no(1) ] = PSPACE) Fagin (SO = NP) didn t run into this problem because in SO you can guess an ordering (unless we are dealing with SO (monadic)).
36 Descriptive Complexity and Nested Words 21/46 Ehrenfeucht-Fraïssé Games Delilah: hide any differences between the two structures Two-person combinatorial game for characterizing what is expressible in a given quantifier depth. Fundamental Thm: D has a winning strategy on the m-move, k-pebble game on A, B iff A and B agree on all formulas using k variables and quantifier depth m. A k m B A k m B Samson: show a difference
37 Descriptive Complexity and Nested Words 22/46 dist(x,y) 2 k FO 3 k FO k 1 move 0 x y k 2 2 k 1 2 k k 2 2 k 2 k + 1 x y
38 Descriptive Complexity and Nested Words 22/46 dist(x,y) 2 k FO 3 k FO k 1 move 1 z(dist(x,z) 2 k 1 dist(z,y) 2 k 1 ) x z y k 2 2 k 1 2 k k 2 2 k 2 k + 1 x y
39 Descriptive Complexity and Nested Words 22/46 dist(x,y) 2 k FO 3 k FO k 1 move 1 z(dist(x,z) 2 k 1 dist(z,y) 2 k 1 ) x z y k 2 2 k 1 2 k k 2 2 k 2 k + 1 x z y
40 Descriptive Complexity and Nested Words 22/46 dist(x,y) 2 k FO 3 k FO k 1 move 2 x(dist(z,x) 2 k 2 dist(x,y) 2 k 2 ) z x y k 2 2 k 1 2 k k 2 2 k 2 k + 1 z y
41 Descriptive Complexity and Nested Words 22/46 dist(x,y) 2 k FO 3 k FO k 1 move 2 x(dist(z,x) 2 k 2 dist(x,y) 2 k 2 ) z x y k 2 2 k 1 2 k k 2 2 k 2 k + 1 z x y
42 Descriptive Complexity and Nested Words 22/46 dist(x,y) 2 k FO 3 k FO k 1 move k-1: Delilah wins dist(x,y) 2 1 x y k 2 2 k 1 2 k 2 k + 1 x y
43 Descriptive Complexity and Nested Words 22/46 dist(x,y) 2 k FO 3 k FO k 1 move k: Samson wins E(x,z) E(z,y) x z y k 2 2 k 1 2 k 2 k + 1 x y
44 Descriptive Complexity and Nested Words 23/46 These games have been used to prove many beautiful lower bounds without the ordering, and thus separate most descriptive classes without ordering. Among others: McColm and Grädel: DTC, TC, LFP Grohe: arity hierarchies for TC and LFP Etessami: lower bounds with counting and one-way local orderings Libkin: lower bounds with counting via locality arguments Grohe and Schwentick: locality of order-independent queries
45 Descriptive Complexity and Nested Words 24/46 One Historical Thread Fagin: REACH SO (monadic) and thus since REACH SO (monadic), SO (monadic) is not closed under complementation. de Rougemont: remains true with successor Schwentick: remains true with ordering! Doesn t give us a complexity lower bound, cf., Lynch: NTIME[n k ] SO (+)(arity k)
46 Descriptive Complexity and Nested Words 25/46 Ehrenfeucht-Fraïssé games: lower bounds on depth. With ordering, depth 2 + log n suffices to express any graph property for graphs on n vertices. Let G = (V,E) # i (x) exists a path of length i from 0 to x depth(log n) ϕ G i,j E i,j E x,y(# i (x) # j (y) E(x,y)) x,y(# i (x) # j (y) E(x,y)) For S an arbitrary set of graphs on n vertices: ϕ S G S ϕ G ; depth(ϕ S ) = 2 + log n
47 Descriptive Complexity and Nested Words 26/46 Newish Size Lower Bound Game Adler & I defined these games and proved a pair of optimal succinctness result for temporal logics. Karchmer and Wigderson used similar communication complexity games to prove lower bound on monotone circuits for REACH. Idea: unlike Ehrenfeucht-Fraïssé games, we play on a pair of sets of structures, A,B. We determine the size of the smallest sentence true of all of A and none of B. More recent lower bounds by Grohe and Schweikardt
48 Descriptive Complexity and Nested Words 26/46 Newish Size Lower Bound Game Adler & I defined these games and proved a pair of optimal succinctness result for temporal logics. Karchmer and Wigderson used similar communication complexity games to prove lower bound on monotone circuits for REACH. Idea: unlike Ehrenfeucht-Fraïssé games, we play on a pair of sets of structures, A,B. We determine the size of the smallest sentence true of all of A and none of B. More recent lower bounds by Grohe and Schweikardt Not surprisingly, these games are much harder to play than Ehrenfeucht-Fraïssé games...
49 Descriptive Complexity and Nested Words 27/46 Size versus Number of Variables on Line Graphs dist(x,y) 1 x = y E(x,y) dist(x,y) 2k z(dist(x,z) k dist(z,y) k) dist(x,y) n FO 3 log n ; SIZE(n)
50 Descriptive Complexity and Nested Words 27/46 Size versus Number of Variables on Line Graphs dist(x,y) 1 x = y E(x,y) dist(x,y) 2k z(dist(x,z) k dist(z,y) k) dist(x,y) n FO 3 log n ; SIZE(n) dist u (x,y) 1 x = y E(x,y) E(y,x) dist u (x,y) 2k z w((w = x w = y) dist u (z,w) k) dist u (x,y) n FO 4 log n; SIZE(O(log n))
51 Descriptive Complexity and Nested Words 27/46 Size versus Number of Variables on Line Graphs dist(x,y) 1 x = y E(x,y) dist(x,y) 2k z(dist(x,z) k dist(z,y) k) dist(x,y) n FO 3 log n ; SIZE(n) dist u (x,y) 1 x = y E(x,y) E(y,x) dist u (x,y) 2k z w((w = x w = y) dist u (z,w) k) dist u (x,y) n FO 4 log n; SIZE(O(log n)) Grohe-Schweikardt: FO 2 and FO 3 are polynomially SIZE-related Exponential Size gap between FO 3 and FO 4 Gap between FO k and FO k+1 is open for k > 3
52 Descriptive Complexity and Nested Words 28/46 FO 2 on Words: [Philipp Weis & I] FO on words reduces to FO 3 on words FO 2 on words was well studied, except alternation hierarchy was open
53 Descriptive Complexity and Nested Words 28/46 FO 2 on Words: [Philipp Weis & I] FO on words reduces to FO 3 on words FO 2 on words was well studied, except alternation hierarchy was open b a c d b b a c d Rankers
54 Descriptive Complexity and Nested Words 28/46 FO 2 on Words: [Philipp Weis & I] FO on words reduces to FO 3 on words FO 2 on words was well studied, except alternation hierarchy was open Rankers b a c d b b a c d a 1 ranker
55 Descriptive Complexity and Nested Words 28/46 FO 2 on Words: [Philipp Weis & I] FO on words reduces to FO 3 on words FO 2 on words was well studied, except alternation hierarchy was open Rankers b a c d b b a c d a b 2 ranker
56 Descriptive Complexity and Nested Words 28/46 FO 2 on Words: [Philipp Weis & I] FO on words reduces to FO 3 on words FO 2 on words was well studied, except alternation hierarchy was open Rankers b a c d b b a c d a b c 3 ranker
57 Descriptive Complexity and Nested Words 28/46 FO 2 on Words: [Philipp Weis & I] FO on words reduces to FO 3 on words FO 2 on words was well studied, except alternation hierarchy was open Rankers b a c d b b a c d a b c d 4 ranker
58 Descriptive Complexity and Nested Words 28/46 FO 2 on Words: [Philipp Weis & I] FO on words reduces to FO 3 on words FO 2 on words was well studied, except alternation hierarchy was open Rankers b a c d b b a c d a b c 3 ranker Thm: FO 2 m which m-rankers exist, and, relative order with smaller rankers.
59 Descriptive Complexity and Nested Words 28/46 FO 2 on Words: [Philipp Weis & I] FO on words reduces to FO 3 on words FO 2 on words was well studied, except alternation hierarchy was open Rankers b a c d b b a c d a b c 2, 3 ranker Thm: FO 2 m which m-rankers exist, and, relative order with smaller rankers. Thm: FO 2 k,m which k,m-rankers exist, and, relative order with smaller rankers.
60 Descriptive Complexity and Nested Words 28/46 FO 2 on Words: [Philipp Weis & I] FO on words reduces to FO 3 on words FO 2 on words was well studied, except alternation hierarchy was open Rankers b a c d b b a c d a b c 2, 3 ranker Thm: FO 2 m which m-rankers exist, and, relative order with smaller rankers. Thm: FO 2 k,m which k,m-rankers exist, and, relative order with smaller rankers. Thm: FO 2 has a strict alternation hierarchy.
61 Descriptive Complexity and Nested Words 29/46 Ultimately, want to understand the VAR-SIZE trade-off in many settings. Currently, Philipp Weis and I would be happy to settle what Grohe and Schweikardt left open, then to move on to words, and other simple graphs, 2 and 3 variables...
62 Descriptive Complexity and Nested Words 29/46 Ultimately, want to understand the VAR-SIZE trade-off in many settings. Currently, Philipp Weis and I would be happy to settle what Grohe and Schweikardt left open, then to move on to words, and other simple graphs, 2 and 3 variables... Would one day like to understand the following: PSPACE = FO[2 no(1) ] = SO[n O(1) ] NC 1 FO[log n/ log log n] NC 1 L NL sac 1 AC 1 = FO[log n]
63 co r.e. complete FO A (N) co r.e. Arithmetic Hierarchy FO(N) Recursive r.e. FO E r.e. complete (N) Primitive Recursive n O(1) O(1) FO[2 ] SO[n ] FO(PFP) SO(TC) co NP complete SO n O(1) SO[2 ] A co NP Polynomial Time Hierarchy NP EXPTIME PSPACE SO co NP SO(LFP) NP SO E NP complete O(1) FO[n ] "truly feasible" P FO(LFP) SO Horn O(1) FO[(log n) ] NC FO(TC) NC 2 log(cfl) NSPACE[log n] FO(DTC) DSPACE[log n] Regular FO(M) FO Logarithmic Time Hierarchy SAC Descriptive Complexity and Nested Words 30/46 1 SO Krom NC AC 1 ThC 0 0
64 Descriptive Complexity and Nested Words 31/46 Nested Words & Descriptive Complexity Neil Immerman immerman I ll survey work by Alur, Madhusudan, Kumar, Viswanathan, Arenas, Barceló, Etessami, and Libkin [LICS 2007].
65 Descriptive Complexity and Nested Words 32/46 Nested Words
66 Descriptive Complexity and Nested Words 32/46 Nested Words words on some alphabet, Σ well-nested edges Three kinds of nodes: call, return, and internal
67 Descriptive Complexity and Nested Words 32/46 Nested Words words on some alphabet, Σ well-nested edges Three kinds of nodes: call, return, and internal Applications: calls and returns: model checking recursive programs parse trees: linguistics XML
68 Descriptive Complexity and Nested Words 32/46 Nested Words words on some alphabet, Σ well-nested edges Three kinds of nodes: call, return, and internal Applications: calls and returns: model checking recursive programs parse trees: linguistics XML CFL s for the price of regular languages
69 Descriptive Complexity and Nested Words 33/46 Nested Word Automata: NWA An NWA, (Q, Σ,δ,s,F), is just like a finite automaton except, at return nodes, the new state depends on both previous states q q q q q q q q q q q q For example, q 4 = δ r (q 1,q 3, 0)
70 Descriptive Complexity and Nested Words 34/46 Example of a Regular Nested Language The balanced parentheses languages of nested words, in which the nesting edges go from each open parenthesis to its mate, are regular. [ ( a ) ( a ) ] [ ] a
71 Descriptive Complexity and Nested Words 35/46 Regular Nested Languages Closed under,,, concatenation, complementation. For every n-state nondeterministic NWA, there is an equivalent deterministic NWA with at most 2 n2 states. EMPTY-NWA, minimal deterministic NWA, union intersection, language containment for deterministic NWA are all polynomial time. Language containment given nondeterministic NWA s is exptime complete. Compare this with CFL s where containment is undecidable.
72 (u,i) v = insert v after letter i in u. Descriptive Complexity and Nested Words 36/46
73 Descriptive Complexity and Nested Words 36/46 (u,i) v = insert v after letter i in u. h e r e g o e s n e w
74 Descriptive Complexity and Nested Words 36/46 (u,i) v = insert v after letter i in u. h e r e g o e s n e w = h e r e n e w g o e s
75 Descriptive Complexity and Nested Words 37/46 Myhill Nerode Theorem for Nested Words x L y iff u,i ( (u,i) x L (u,i) y L )
76 Descriptive Complexity and Nested Words 37/46 Myhill Nerode Theorem for Nested Words x L y iff u,i ( (u,i) x L (u,i) y L ) Thm: [Alur, Kumar, Madhusudan, and Viswanathan] The nested word language, L, is regular iff L has finitely many equivalence classes.
77 Descriptive Complexity and Nested Words 38/46 Notation µ(i, j): i is a call node, and j is its matching return r(i) = j c(j) = i a i m j z
78 Descriptive Complexity and Nested Words 38/46 Notation µ(i, j): i is a call node, and j is its matching return r(i) = j c(j) = i a i m j z C(x) is the innermost call that x is within, e.g., C(i) = C(j) = a; C(m) = i
79 Descriptive Complexity and Nested Words 38/46 Notation µ(i, j): i is a call node, and j is its matching return r(i) = j c(j) = i a i m j z C(x) is the innermost call that x is within, e.g., C(i) = C(j) = a; C(m) = i R(x) is the innermost return that x is within, e.g., R(i) = R(j) = z; R(m) = j
80 Descriptive Complexity and Nested Words 39/46 Monadic Second-Order Logic, (MSO µ ) ϕ := Q a (x) x X x y µ(x,y) ϕ ϕ ϕ x(ϕ) X(ϕ)
81 Descriptive Complexity and Nested Words 39/46 Monadic Second-Order Logic, (MSO µ ) ϕ := Q a (x) x X x y µ(x,y) ϕ ϕ ϕ x(ϕ) X(ϕ) Thm: [Alur and Madhusudan] MSO µ = Regular Nested Languages
82 Descriptive Complexity and Nested Words 39/46 Monadic Second-Order Logic, (MSO µ ) ϕ := Q a (x) x X x y µ(x,y) ϕ ϕ ϕ x(ϕ) X(ϕ) Thm: [Alur and Madhusudan] MSO µ = Regular Nested Languages Proof: Similar to proof that MSO = Regular.
83 Descriptive Complexity and Nested Words 39/46 Monadic Second-Order Logic, (MSO µ ) ϕ := Q a (x) x X x y µ(x,y) ϕ ϕ ϕ x(ϕ) X(ϕ) Thm: [Alur and Madhusudan] MSO µ = Regular Nested Languages Proof: Similar to proof that MSO = Regular. MSO Regular: new case is µ(c, r). An NWA can check that the call related to r was c.
84 Descriptive Complexity and Nested Words 39/46 Monadic Second-Order Logic, (MSO µ ) ϕ := Q a (x) x X x y µ(x,y) ϕ ϕ ϕ x(ϕ) X(ϕ) Thm: [Alur and Madhusudan] MSO µ = Regular Nested Languages Proof: Similar to proof that MSO = Regular. MSO Regular: new case is µ(c, r). An NWA can check that the call related to r was c. Regular MSO: as usual, in MSO we guess the accepting run of the automaton. New case: we use µ to check that the return transitions are correct.
85 Descriptive Complexity and Nested Words 40/46 Next Operators: Temporal Logic for Nested Words (w,i) = ϕ (w,i + 1) = ϕ ( ) (w,i) = µ ϕ j µ(i,j) (w,j) = ϕ Past Operators: (w,j) = ϕ (w,j 1) = ϕ ( ) (w,j) = µ ϕ i µ(i,j) (w,i) = ϕ Since and Until Operators for several kinds of paths: (w,i) = αuβ path i = i 0 < i 1 < < i k (w,i k ) = β j < k(w,i j ) = α (w,i) = αsβ path i = i 0 > i 1 > > i k (w,i k ) = β j < k(w,i j ) = α
86 Descriptive Complexity and Nested Words 41/46 4 Kinds of Paths The sequence, i = i 0 < i 1 < < i k = j is a linear path if i p+1 = i p
87 Descriptive Complexity and Nested Words 41/46 4 Kinds of Paths The sequence, i = i 0 < i 1 < < i k = j is a linear path if i p+1 = i p + 1 a call path if i p = C(i p+1 ) 1 5 6
88 Descriptive Complexity and Nested Words 41/46 4 Kinds of Paths The sequence, i = i 0 < i 1 < < i k = j is a linear path if i p+1 = i p + 1 a call path if i p = C(i p+1 ) { r(i p ) if i p is a call an abstract path if i p+1 = i p + 1 otherwise
89 Descriptive Complexity and Nested Words 41/46 4 Kinds of Paths The sequence, i = i 0 < i 1 < < i k = j is a linear path if i p+1 = i p + 1 a call path if i p = C(i p+1 ) { r(i p ) if i p is a call an abstract path if i p+1 = i p + 1 otherwise a summary path if { i p+1 = r(i p ) i p + 1 if i p is a call and r(i p ) j otherwise
90 Descriptive Complexity and Nested Words 42/46 4 Resulting Kinds of Until and Since Operators linear paths: U, S call paths: U c, S c abstract paths: U a, S a summary paths: U σ, S σ (w,i) = αuβ path i = i 0 < i 1 < < i k (w,i k ) = β j < k(w,i j ) = α (w,i) = αsβ path i = i 0 > i 1 > > i k (w,i k ) = β j < k(w,i j ) = α
91 Descriptive Complexity and Nested Words 43/46 Nested Word Temporal Logic: NWTL ϕ := a ϕ ϕ ϕ ϕ µ ϕ ϕ µ ϕ ϕu σ ϕ ϕs σ ϕ
92 Descriptive Complexity and Nested Words 43/46 Nested Word Temporal Logic: NWTL ϕ := a ϕ ϕ ϕ ϕ µ ϕ ϕ µ ϕ ϕu σ ϕ ϕs σ ϕ Thm: [LICS 07] NWTL is exactly as expressive as FO over finite, and over infinite, nested words.
93 Descriptive Complexity and Nested Words 43/46 Nested Word Temporal Logic: NWTL ϕ := a ϕ ϕ ϕ ϕ µ ϕ ϕ µ ϕ ϕu σ ϕ ϕs σ ϕ Thm: [LICS 07] NWTL is exactly as expressive as FO over finite, and over infinite, nested words. Proof: NWTL FO: translate each ϕ NWTL to τ(ϕ) FO 3 s.t., (w,i) = ϕ (w,i/x) = τ(ϕ).
94 Descriptive Complexity and Nested Words 43/46 Nested Word Temporal Logic: NWTL ϕ := a ϕ ϕ ϕ ϕ µ ϕ ϕ µ ϕ ϕu σ ϕ ϕs σ ϕ Thm: [LICS 07] NWTL is exactly as expressive as FO over finite, and over infinite, nested words. Proof: NWTL FO: translate each ϕ NWTL to τ(ϕ) FO 3 s.t., (w,i) = ϕ (w,i/x) = τ(ϕ). Cor: Every formula in FO on nested words is equivalent to a formula in FO 3, i.e., using at most three variables, x,y,z.
95 Descriptive Complexity and Nested Words 43/46 Nested Word Temporal Logic: NWTL ϕ := a ϕ ϕ ϕ ϕ µ ϕ ϕ µ ϕ ϕu σ ϕ ϕs σ ϕ Thm: [LICS 07] NWTL is exactly as expressive as FO over finite, and over infinite, nested words. Proof: NWTL FO: translate each ϕ NWTL to τ(ϕ) FO 3 s.t., (w,i) = ϕ (w,i/x) = τ(ϕ). FO NWTL: using FO-completeness of a temporal logic on trees [Marx]. Cor: Every formula in FO on nested words is equivalent to a formula in FO 3, i.e., using at most three variables, x,y,z.
96 Descriptive Complexity and Nested Words 44/46 Model Checking Thm: Satisfiability of NWTL is EXPTIME complete.
97 Descriptive Complexity and Nested Words 44/46 Model Checking Thm: Satisfiability of NWTL is EXPTIME complete. Proof: [Sketch] lower bound: Previously known from Caret Paper [AEM].
98 Descriptive Complexity and Nested Words 44/46 Model Checking Thm: Satisfiability of NWTL is EXPTIME complete. Proof: [Sketch] lower bound: Previously known from Caret Paper [AEM]. upper bound: Transform formula ϕ to a nested-word automaton of size 2 O( ϕ ) and test emptiness. Cor: Model checking NWTL specifications wrt boolean programs or nested-word automata is EXPTIME complete.
99 Descriptive Complexity and Nested Words 45/46 Work To Be Done on Nested Words Fill out more of the theory of nested words. Use for model checking recursive programs. Use for developing better query languages and algorithms for XML. Use in Linguistics.
100 co r.e. complete FO A (N) co r.e. Arithmetic Hierarchy FO(N) Recursive r.e. FO E r.e. complete (N) Primitive Recursive n O(1) O(1) FO[2 ] SO[n ] FO(PFP) SO(TC) co NP complete SO n O(1) SO[2 ] A co NP Polynomial Time Hierarchy NP EXPTIME PSPACE SO co NP SO(LFP) NP SO E NP complete O(1) FO[n ] "truly feasible" P FO(LFP) SO Horn O(1) FO[(log n) ] NC FO(TC) NC 2 log(cfl) NSPACE[log n] FO(DTC) DSPACE[log n] Regular FO(M) FO Logarithmic Time Hierarchy SAC Descriptive Complexity and Nested Words 46/46 1 SO Krom NC AC 1 ThC 0 0
P versus NP: Approaches, Rebuttals, and Does It Matter?
versus N: Approaches, Rebuttals, and Does It Matter? www.cs.umass.edu/ immerman Spike of attention to vs. N problem, Aug. 2010 Deolalikar claimed that he had tamed the wildness of algorithms and shown
More informationLecture 9: PSPACE. PSPACE = DSPACE[n O(1) ] = NSPACE[n O(1) ] = ATIME[n O(1) ]
Lecture 9: PSPACE PSPACE = DSPACE[n O(1) ] = NSPACE[n O(1) ] = ATIME[n O(1) ] PSPACE consists of what we could compute with a feasible amount of hardware, but with no time limit. PSPACE is a large and
More informationDefinition: Alternating time and space Game Semantics: State of machine determines who
CMPSCI 601: Recall From Last Time Lecture Definition: Alternating time and space Game Semantics: State of machine determines who controls, White wants it to accept, Black wants it to reject. White wins
More informationDefinition: Alternating time and space Game Semantics: State of machine determines who
CMPSCI 601: Recall From Last Time Lecture 3 Definition: Alternating time and space Game Semantics: State of machine determines who controls, White wants it to accept, Black wants it to reject. White wins
More informationDescriptive Complexity: An overview of the field, key results, techniques, and applications.
Descriptive Complexity: An overview of the field, key results, techniques, and applications. Ryan Flannery http://cs.uc.edu/~flannert 22 May 2009 Abstract In 1974 Ronald Fagin proved that problems in the
More informationCS601 DTIME and DSPACE Lecture 5. Time and Space functions: t,s : N N +
CS61 DTIME and DSPACE Lecture 5 Time and Space functions: t,s : N N + Definition 5.1 A set A U is in DTIME[t(n)] iff there exists a deterministic, multi-tape TM, M, and a constantc, such that, 1. A = L(M)
More informationPolynomial Time Computation. Topics in Logic and Complexity Handout 2. Nondeterministic Polynomial Time. Succinct Certificates.
1 2 Topics in Logic and Complexity Handout 2 Anuj Dawar MPhil Advanced Computer Science, Lent 2010 Polynomial Time Computation P = TIME(n k ) k=1 The class of languages decidable in polynomial time. The
More informationInfinite and Finite Model Theory Part II
Infinite and Finite Model Theory Part II Anuj Dawar Computer Laboratory University of Cambridge Lent 2002 3/2002 0 Finite Model Theory Finite Model Theory motivated by computational issues; relationship
More informationStructure Theorem and Strict Alternation Hierarchy for FO 2 on Words
Id: FO2_on_words.tex d6eb3e813af0 2010-02-09 14:35-0500 pweis Structure Theorem and Strict Alternation Hierarchy for FO 2 on Words Philipp Weis Neil Immerman Department of Computer Science University of
More informationStructure Theorem and Strict Alternation Hierarchy for FO 2 on Words
Structure Theorem and Strict Alternation Hierarchy for FO 2 on Words Philipp Weis Neil Immerman Department of Computer Science University of Massachusetts, Amherst 140 Governors Drive Amherst, MA 01003,
More informationINAPPROX APPROX PTAS. FPTAS Knapsack P
CMPSCI 61: Recall From Last Time Lecture 22 Clique TSP INAPPROX exists P approx alg for no ε < 1 VertexCover MAX SAT APPROX TSP some but not all ε< 1 PTAS all ε < 1 ETSP FPTAS Knapsack P poly in n, 1/ε
More informationOverview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang
Overview of Topics Finite Model Theory Part 1: Introduction 1 What is finite model theory? 2 Connections to some areas in CS Qing Wang qing.wang@anu.edu.au Database theory Complexity theory 3 Basic definitions
More informationFinite and Algorithmic Model Theory II: Automata-Based Methods
Finite and Algorithmic Model Theory II: Automata-Based Methods Anuj Dawar University of Cambridge Computer Laboratory Simons Institute, 30 August 2016 Review We aim to develop tools for studying the expressive
More informationFirst-Order and Temporal Logics for Nested Words
First-Order and Temporal Logics for Nested Words Rajeev Alur Marcelo Arenas Pablo Barceló University of Pennsylvania Pontificia Universidad Católica de Chile Universidad de Chile Kousha Etessami Neil Immerman
More informationAlgorithmic Model Theory SS 2016
Algorithmic Model Theory SS 2016 Prof. Dr. Erich Grädel and Dr. Wied Pakusa Mathematische Grundlagen der Informatik RWTH Aachen cbnd This work is licensed under: http://creativecommons.org/licenses/by-nc-nd/3.0/de/
More informationFirst-Order and Temporal Logics for Nested Words
University of Pennsylvania ScholarlyCommons Departmental Papers (CIS) Department of Computer & Information Science 11-25-2008 First-Order and Temporal Logics for Nested Words Rajeev Alur University of
More informationLecture 8: Complete Problems for Other Complexity Classes
IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Basic Course on Computational Complexity Lecture 8: Complete Problems for Other Complexity Classes David Mix Barrington and Alexis Maciel
More informationFIRST-ORDER AND TEMPORAL LOGICS FOR NESTED WORDS
FIRST-ORDER AND TEMPORAL LOGICS FOR NESTED WORDS RAJEEV ALUR, MARCELO ARENAS, PABLO BARCELÓ, KOUSHA ETESSAMI, NEIL IMMERMAN, AND LEONID LIBKIN Department of Computer and Information Science, University
More informationAutomata theory. An algorithmic approach. Lecture Notes. Javier Esparza
Automata theory An algorithmic approach Lecture Notes Javier Esparza July 2 22 2 Chapter 9 Automata and Logic A regular expression can be seen as a set of instructions ( a recipe ) for generating the words
More informationPreliminaries. Introduction to EF-games. Inexpressivity results for first-order logic. Normal forms for first-order logic
Introduction to EF-games Inexpressivity results for first-order logic Normal forms for first-order logic Algorithms and complexity for specific classes of structures General complexity bounds Preliminaries
More informationComputational complexity measures how much time and/or memory space is needed as a function of the input size. Let TIME[t(n)] be the set of problems t
Descriptive Complexity: a Logician's Approach to Computation Neil Immerman Computer Science Dept. University of Massachusetts Amherst, MA 01003 immerman@cs.umass.edu Appeared in Notices of the American
More informationFinite Model Theory and Descriptive Complexity
3 Finite Model Theory and Descriptive Complexity Erich Grädel This chapter deals with the relationship between logical definability and computational complexity on finite structures. Particular emphasis
More informationTime Complexity. Definition. Let t : n n be a function. NTIME(t(n)) = {L L is a language decidable by a O(t(n)) deterministic TM}
Time Complexity Definition Let t : n n be a function. TIME(t(n)) = {L L is a language decidable by a O(t(n)) deterministic TM} NTIME(t(n)) = {L L is a language decidable by a O(t(n)) non-deterministic
More informationNotes for Lecture Notes 2
Stanford University CS254: Computational Complexity Notes 2 Luca Trevisan January 11, 2012 Notes for Lecture Notes 2 In this lecture we define NP, we state the P versus NP problem, we prove that its formulation
More informationLecture 2: Connecting the Three Models
IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 2: Connecting the Three Models David Mix Barrington and Alexis Maciel July 18, 2000
More informationAbstract model theory for extensions of modal logic
Abstract model theory for extensions of modal logic Balder ten Cate Stanford, May 13, 2008 Largely based on joint work with Johan van Benthem and Jouko Väänänen Balder ten Cate Abstract model theory for
More informationComplexity: Some examples
Algorithms and Architectures III: Distributed Systems H-P Schwefel, Jens M. Pedersen Mm6 Distributed storage and access (jmp) Mm7 Introduction to security aspects (hps) Mm8 Parallel complexity (hps) Mm9
More informationComplete problems for classes in PH, The Polynomial-Time Hierarchy (PH) oracle is like a subroutine, or function in
Oracle Turing Machines Nondeterministic OTM defined in the same way (transition relation, rather than function) oracle is like a subroutine, or function in your favorite PL but each call counts as single
More information1 Computational Problems
Stanford University CS254: Computational Complexity Handout 2 Luca Trevisan March 31, 2010 Last revised 4/29/2010 In this lecture we define NP, we state the P versus NP problem, we prove that its formulation
More informationFriendly Logics, Fall 2015, Lecture Notes 5
Friendly Logics, Fall 2015, Lecture Notes 5 Val Tannen 1 FO definability In these lecture notes we restrict attention to relational vocabularies i.e., vocabularies consisting only of relation symbols (or
More informationFinal exam study sheet for CS3719 Turing machines and decidability.
Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,
More informationLogics and automata over in nite alphabets
Logics and automata over in nite alphabets Anca Muscholl LIAFA, Univ. Paris 7 & CNRS Joint work with: Miko!aj Bojańczyk (Warsaw, Paris), Claire David (Paris), Thomas Schwentick (Dortmund) and Luc Segou
More informationMonadic Second Order Logic and Automata on Infinite Words: Büchi s Theorem
Monadic Second Order Logic and Automata on Infinite Words: Büchi s Theorem R. Dustin Wehr December 18, 2007 Büchi s theorem establishes the equivalence of the satisfiability relation for monadic second-order
More informationThe expressive power of two-variable least fixed-point logics
The expressive power of two-variable least fixed-point logics Martin Grohe, Stephan Kreutzer, and Nicole Schweikardt Institut für Informatik, Humboldt-Universität, Berlin {grohe,kreutzer,schweika}@informatik.hu-berlin.de
More informationDatabase Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler
Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler
More informationLecturecise 22 Weak monadic second-order theory of one successor (WS1S)
Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) 2013 Reachability in the Heap Many programs manipulate linked data structures (lists, trees). To express many important properties
More informationAbout the relationship between formal logic and complexity classes
About the relationship between formal logic and complexity classes Working paper Comments welcome; my email: armandobcm@yahoo.com Armando B. Matos October 20, 2013 1 Introduction We analyze a particular
More informationThe space complexity of a standard Turing machine. The space complexity of a nondeterministic Turing machine
298 8. Space Complexity The space complexity of a standard Turing machine M = (Q,,,, q 0, accept, reject) on input w is space M (w) = max{ uav : q 0 w M u q av, q Q, u, a, v * } The space complexity of
More informationLogic and Automata I. Wolfgang Thomas. EATCS School, Telc, July 2014
Logic and Automata I EATCS School, Telc, July 2014 The Plan We present automata theory as a tool to make logic effective. Four parts: 1. Some history 2. Automata on infinite words First step: MSO-logic
More informationEhrenfeucht-Fraïssé Games
Chapter 6 Ehrenfeucht-Fraïssé Games We introduce combinatorial games that are useful for determining what can be expressed in various logics. Ehrenfeucht-Fraïssé games offer a semantics for firstorder
More informationFinite Model Theory: First-Order Logic on the Class of Finite Models
1 Finite Model Theory: First-Order Logic on the Class of Finite Models Anuj Dawar University of Cambridge Modnet Tutorial, La Roche, 21 April 2008 2 Finite Model Theory In the 1980s, the term finite model
More informationAn n! Lower Bound On Formula Size
An n! Lower Bound On Formula Size Micah Adler Computer Science Dept. UMass, Amherst, USA http://www.cs.umass.edu/ micah Neil Immerman Computer Science Dept. UMass, Amherst, USA http://www.cs.umass.edu/
More informationThe theory of regular cost functions.
The theory of regular cost functions. Denis Kuperberg PhD under supervision of Thomas Colcombet Hebrew University of Jerusalem ERC Workshop on Quantitative Formal Methods Jerusalem, 10-05-2013 1 / 30 Introduction
More informationComplexity Theory. Knowledge Representation and Reasoning. November 2, 2005
Complexity Theory Knowledge Representation and Reasoning November 2, 2005 (Knowledge Representation and Reasoning) Complexity Theory November 2, 2005 1 / 22 Outline Motivation Reminder: Basic Notions Algorithms
More informationCounter Automata and Classical Logics for Data Words
Counter Automata and Classical Logics for Data Words Amal Dev Manuel amal@imsc.res.in Institute of Mathematical Sciences, Taramani, Chennai, India. January 31, 2012 Data Words Definition (Data Words) A
More informationIntroduction to Tree Logics
1 / 26 Introduction to Tree Logics Pierre Genevès CNRS (slides mostly based on the ones by W. Martens and T. Schwentick) University of Grenoble, 2014 2015 2 / 26 Why Logic? Tree automaton algorithm Logical
More informationAutomata, Logic and Games: Theory and Application
Automata, Logic and Games: Theory and Application 1. Büchi Automata and S1S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong Büchi Automata & S1S 14-19 June
More informationAlgorithmic Model Theory SS 2016
Algorithmic Model Theory SS 2016 Prof. Dr. Erich Grädel and Dr. Wied Pakusa Mathematische Grundlagen der Informatik RWTH Aachen cbnd This work is licensed under: http://creativecommons.org/licenses/by-nc-nd/3.0/de/
More informationPrinciples of Knowledge Representation and Reasoning
Principles of Knowledge Representation and Reasoning Complexity Theory Bernhard Nebel, Malte Helmert and Stefan Wölfl Albert-Ludwigs-Universität Freiburg April 29, 2008 Nebel, Helmert, Wölfl (Uni Freiburg)
More information1 PSPACE-Completeness
CS 6743 Lecture 14 1 Fall 2007 1 PSPACE-Completeness Recall the NP-complete problem SAT: Is a given Boolean formula φ(x 1,..., x n ) satisfiable? The same question can be stated equivalently as: Is the
More informationNotes for Lecture 3... x 4
Stanford University CS254: Computational Complexity Notes 3 Luca Trevisan January 14, 2014 Notes for Lecture 3 In this lecture we introduce the computational model of boolean circuits and prove that polynomial
More informationAdvanced topic: Space complexity
Advanced topic: Space complexity CSCI 3130 Formal Languages and Automata Theory Siu On CHAN Chinese University of Hong Kong Fall 2016 1/28 Review: time complexity We have looked at how long it takes to
More informationLanguages, logics and automata
Languages, logics and automata Anca Muscholl LaBRI, Bordeaux, France EWM summer school, Leiden 2011 1 / 89 Before all that.. Sonia Kowalewskaya Emmy Noether Julia Robinson All this attention has been gratifying
More informationSpace and Nondeterminism
CS 221 Computational Complexity, Lecture 5 Feb 6, 2018 Space and Nondeterminism Instructor: Madhu Sudan 1 Scribe: Yong Wook Kwon Topic Overview Today we ll talk about space and non-determinism. For some
More informationFrom Monadic Second-Order Definable String Transformations to Transducers
From Monadic Second-Order Definable String Transformations to Transducers Rajeev Alur 1 Antoine Durand-Gasselin 2 Ashutosh Trivedi 3 1 University of Pennsylvania 2 LIAFA, Université Paris Diderot 3 Indian
More informationConnectivity. Topics in Logic and Complexity Handout 7. Proof. Proof. Consider the signature (E, <).
1 2 Topics in Logic and Complexity Handout 7 Anuj Dawar MPhil Advanced Computer Science, Lent 2010 Consider the signature (E,
More informationSOLUTION: SOLUTION: SOLUTION:
Convert R and S into nondeterministic finite automata N1 and N2. Given a string s, if we know the states N1 and N2 may reach when s[1...i] has been read, we are able to derive the states N1 and N2 may
More informationFORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY THURSDAY APRIL 3 REVIEW for Midterm TUESDAY April 8 Definition: A Turing Machine is a 7-tuple T = (Q, Σ, Γ, δ, q, q accept, q reject ), where: Q is a
More informationAn n! Lower Bound on Formula Size
An n! Lower Bound on Formula Size MICAH ADLER and NEIL IMMERMAN UMass We introduce a new Ehrenfeucht Fraïssé game for proving lower bounds on the size of first-order formulas. Up until now, such games
More informationOutline. Complexity Theory. Example. Sketch of a log-space TM for palindromes. Log-space computations. Example VU , SS 2018
Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 3. Logarithmic Space Reinhard Pichler Institute of Logic and Computation DBAI Group TU Wien 3. Logarithmic Space 3.1 Computational
More information1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions
CS 6743 Lecture 15 1 Fall 2007 1 Circuit Complexity 1.1 Definitions A Boolean circuit C on n inputs x 1,..., x n is a directed acyclic graph (DAG) with n nodes of in-degree 0 (the inputs x 1,..., x n ),
More informationChapter 4: Computation tree logic
INFOF412 Formal verification of computer systems Chapter 4: Computation tree logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 CTL: a specification
More information3515ICT: Theory of Computation. Regular languages
3515ICT: Theory of Computation Regular languages Notation and concepts concerning alphabets, strings and languages, and identification of languages with problems (H, 1.5). Regular expressions (H, 3.1,
More informationCSCI 1590 Intro to Computational Complexity
CSCI 59 Intro to Computational Complexity Overview of the Course John E. Savage Brown University January 2, 29 John E. Savage (Brown University) CSCI 59 Intro to Computational Complexity January 2, 29
More informationOn the Expressive Power of Monadic Least Fixed Point Logic
On the Expressive Power of Monadic Least Fixed Point Logic Nicole Schweikardt Institut für Informatik, Humboldt-Universität Berlin, Unter den Linden 6, D-10099 Berlin, Germany, Email: schweika@informatik.hu-berlin.de,
More informationCircuits. Lecture 11 Uniform Circuit Complexity
Circuits Lecture 11 Uniform Circuit Complexity 1 Recall 2 Recall Non-uniform complexity 2 Recall Non-uniform complexity P/1 Decidable 2 Recall Non-uniform complexity P/1 Decidable NP P/log NP = P 2 Recall
More informationOn the Expressive Power of Logics on Finite Models
On the Expressive Power of Logics on Finite Models Phokion G. Kolaitis Computer Science Department University of California, Santa Cruz Santa Cruz, CA 95064, USA kolaitis@cs.ucsc.edu August 1, 2003 Partially
More informationΤαουσάκος Θανάσης Αλγόριθμοι και Πολυπλοκότητα II 7 Φεβρουαρίου 2013
Ταουσάκος Θανάσης Αλγόριθμοι και Πολυπλοκότητα II 7 Φεβρουαρίου 2013 Alternation: important generalization of non-determinism Redefining Non-Determinism in terms of configurations: a configuration lead
More informationFoundations of Informatics: a Bridging Course
Foundations of Informatics: a Bridging Course Week 3: Formal Languages and Semantics Thomas Noll Lehrstuhl für Informatik 2 RWTH Aachen University noll@cs.rwth-aachen.de http://www.b-it-center.de/wob/en/view/class211_id948.html
More informationDatabase Theory VU , SS Ehrenfeucht-Fraïssé Games. Reinhard Pichler
Database Theory Database Theory VU 181.140, SS 2018 7. Ehrenfeucht-Fraïssé Games Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Pichler 15
More informationLogarithmic space. Evgenij Thorstensen V18. Evgenij Thorstensen Logarithmic space V18 1 / 18
Logarithmic space Evgenij Thorstensen V18 Evgenij Thorstensen Logarithmic space V18 1 / 18 Journey below Unlike for time, it makes sense to talk about sublinear space. This models computations on input
More informationCS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,
CS 54, Lecture 2: Finite Automata, Closure Properties Nondeterminism, Why so Many Models? Streaming Algorithms 0 42 Deterministic Finite Automata Anatomy of Deterministic Finite Automata transition: for
More informationTheory of Computation p.1/?? Theory of Computation p.2/?? Unknown: Implicitly a Boolean variable: true if a word is
Abstraction of Problems Data: abstracted as a word in a given alphabet. Σ: alphabet, a finite, non-empty set of symbols. Σ : all the words of finite length built up using Σ: Conditions: abstracted as a
More informationComputability and Complexity Theory: An Introduction
Computability and Complexity Theory: An Introduction meena@imsc.res.in http://www.imsc.res.in/ meena IMI-IISc, 20 July 2006 p. 1 Understanding Computation Kinds of questions we seek answers to: Is a given
More informationNotes on Satisfiability-Based Problem Solving. First Order Logic. David Mitchell October 23, 2013
Notes on Satisfiability-Based Problem Solving First Order Logic David Mitchell mitchell@cs.sfu.ca October 23, 2013 Preliminary draft. Please do not distribute. Corrections and suggestions welcome. In this
More informationPPL: A Logic for PTIME Queries on Programs
PPL: A Logic for PTIME Queries on Programs Anders Miltner amiltner@seas.upenn.edu Scott Weinstein weinstein@cis.upenn.edu Val Tannen val@cis.upenn.edu ABSTRACT There is a vast number of PTIME queries on
More informationNotes for Lecture 3... x 4
Stanford University CS254: Computational Complexity Notes 3 Luca Trevisan January 18, 2012 Notes for Lecture 3 In this lecture we introduce the computational model of boolean circuits and prove that polynomial
More informationMTAT Complexity Theory October 13th-14th, Lecture 6
MTAT.07.004 Complexity Theory October 13th-14th, 2011 Lecturer: Peeter Laud Lecture 6 Scribe(s): Riivo Talviste 1 Logarithmic memory Turing machines working in logarithmic space become interesting when
More informationLecture 8. MINDNF = {(φ, k) φ is a CNF expression and DNF expression ψ s.t. ψ k and ψ is equivalent to φ}
6.841 Advanced Complexity Theory February 28, 2005 Lecture 8 Lecturer: Madhu Sudan Scribe: Arnab Bhattacharyya 1 A New Theme In the past few lectures, we have concentrated on non-uniform types of computation
More informationOn the Satisfiability of Two-Variable Logic over Data Words
On the Satisfiability of Two-Variable Logic over Data Words Claire David, Leonid Libkin, and Tony Tan School of Informatics, University of Edinburgh Abstract. Data trees and data words have been studied
More informationWhat we have done so far
What we have done so far DFAs and regular languages NFAs and their equivalence to DFAs Regular expressions. Regular expressions capture exactly regular languages: Construct a NFA from a regular expression.
More informationCS357: CTL Model Checking (two lectures worth) David Dill
CS357: CTL Model Checking (two lectures worth) David Dill 1 CTL CTL = Computation Tree Logic It is a propositional temporal logic temporal logic extended to properties of events over time. CTL is a branching
More informationGAV-sound with conjunctive queries
GAV-sound with conjunctive queries Source and global schema as before: source R 1 (A, B),R 2 (B,C) Global schema: T 1 (A, C), T 2 (B,C) GAV mappings become sound: T 1 {x, y, z R 1 (x,y) R 2 (y,z)} T 2
More informationsatisfiability (sat) Satisfiability unsatisfiability (unsat or sat complement) and validity Any Expression φ Can Be Converted into CNFs and DNFs
Any Expression φ Can Be Converted into CNFs and DNFs φ = x j : This is trivially true. φ = φ 1 and a CNF is sought: Turn φ 1 into a DNF and apply de Morgan s laws to make a CNF for φ. φ = φ 1 and a DNF
More informationA Complexity Theory for Parallel Computation
A Complexity Theory for Parallel Computation The questions: What is the computing power of reasonable parallel computation models? Is it possible to make technology independent statements? Is it possible
More informationFirst-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms
First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO
More informationAlternating nonzero automata
Alternating nonzero automata Application to the satisfiability of CTL [,, P >0, P =1 ] Hugo Gimbert, joint work with Paulin Fournier LaBRI, Université de Bordeaux ANR Stoch-MC 06/07/2017 Control and verification
More informationA short tutorial on order-invariant first-order logic
A short tutorial on order-invariant first-order logic Nicole Schweikardt Goethe-Universität Frankfurt am Main, Germany schweika@informatik.uni-frankfurt.de Abstract. This paper gives a short introduction
More informationT (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is,
Recall A deterministic finite automaton is a five-tuple where S is a finite set of states, M = (S, Σ, T, s 0, F ) Σ is an alphabet the input alphabet, T : S Σ S is the transition function, s 0 S is the
More informationExistential Second-Order Logic and Modal Logic with Quantified Accessibility Relations
Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations preprint Lauri Hella University of Tampere Antti Kuusisto University of Bremen Abstract This article investigates
More informationA.Antonopoulos 18/1/2010
Class DP Basic orems 18/1/2010 Class DP Basic orems 1 Class DP 2 Basic orems Class DP Basic orems TSP Versions 1 TSP (D) 2 EXACT TSP 3 TSP COST 4 TSP (1) P (2) P (3) P (4) DP Class Class DP Basic orems
More informationUmans Complexity Theory Lectures
Umans Complexity Theory Lectures Lecture 12: The Polynomial-Time Hierarchy Oracle Turing Machines Oracle Turing Machine (OTM): Deterministic multitape TM M with special query tape special states q?, q
More informationQuery answering using views
Query answering using views General setting: database relations R 1,...,R n. Several views V 1,...,V k are defined as results of queries over the R i s. We have a query Q over R 1,...,R n. Question: Can
More informationEssential facts about NP-completeness:
CMPSCI611: NP Completeness Lecture 17 Essential facts about NP-completeness: Any NP-complete problem can be solved by a simple, but exponentially slow algorithm. We don t have polynomial-time solutions
More informationCS 455/555: Finite automata
CS 455/555: Finite automata Stefan D. Bruda Winter 2019 AUTOMATA (FINITE OR NOT) Generally any automaton Has a finite-state control Scans the input one symbol at a time Takes an action based on the currently
More informationTHE SUCCINCTNESS OF FIRST-ORDER LOGIC ON LINEAR ORDERS
Logical Methods in Computer Science Vol. 1 (1:6) 2005, pp. 1 25 www.lmcs-online.org Submitted Nov. 4, 2004 Published Jun. 29, 2005 THE SUCCINCTNESS OF FIRST-ORDER LOGIC ON LINEAR ORDERS MARTIN GROHE AND
More information2 P vs. NP and Diagonalization
2 P vs NP and Diagonalization CS 6810 Theory of Computing, Fall 2012 Instructor: David Steurer (sc2392) Date: 08/28/2012 In this lecture, we cover the following topics: 1 3SAT is NP hard; 2 Time hierarchies;
More informationPOLYNOMIAL SPACE QSAT. Games. Polynomial space cont d
T-79.5103 / Autumn 2008 Polynomial Space 1 T-79.5103 / Autumn 2008 Polynomial Space 3 POLYNOMIAL SPACE Polynomial space cont d Polynomial space-bounded computation has a variety of alternative characterizations
More information