commutative queries
play

Commutative Queries Richard Beigel Richard Chang Yale University - PowerPoint PPT Presentation

Commutative Queries Richard Beigel Richard Chang Yale University & University of Maryland Baltimore County University of Maryland College Park order of access Given access to two oracles, which oracle should be queried first? Does it


  1. Commutative Queries Richard Beigel Richard Chang Yale University & University of Maryland Baltimore County University of Maryland College Park

  2. order of access Given access to two oracles, which oracle should be queried first? Does it matter? • oracles must have different complexity • complete languages of the Polynomial Hierarchy Σ P j and Σ P k , where j < k • allow truth-table queries to each oracle • recognize languages or compute functions

  3. asking hard questions first P Hr -tt; Es -tt = r truth-table queries to H followed by s truth-table queries to E E = easy oracle, Σ P H = hard oracle, Σ P j complete k complete j < k M 1 (x) H??? E?? E?? E?? E?? E?? E?? E?? E??

  4. asking easy questions first P Es -tt; Hr -tt = s truth-table queries to E followed by r truth-table queries to H E = easy oracle, Σ P H = hard oracle, Σ P j complete k complete j < k M 2 (x) E?? H??? H??? H??? H???

  5. asking all questions simultaneously P Es -tt � Hr -tt = s queries to E and r queries to H in parallel E = easy oracle, Σ P H = hard oracle, Σ P j complete k complete j < k M 3 (x) E?? || H???

  6. more notation • Let PF Aa -tt; Bb -tt denote the class of functions recognized by polynomial- time Turing machines that ask a parallel queries to A followed by b parallel queries to B . • Let PF Aa -tt � Bb -tt denote the class of functions recognized by polynomial- time Turing machines that ask a parallel queries to A simultaneous with b parallel queries to B . • Let P Aa -tt; Bb -tt; Cc -tt; Dd -tt be the class of languages accepted by polynomial- time Turing machines that ask a queries to A , b queries to B , c queries to C and d queries to D in that order. PF Aa -tt � Bb -tt is trivially contained in both PF Aa -tt; Bb -tt and P Bb -tt; Aa -tt .

  7. results in this paper • Does not hurt to ask hard questions first P Es -tt; Hr -tt ⊆ P Hr -tt; Es -tt PF Es -tt; Hr -tt ⊆ PF Hr -tt; Es -tt • For language classes, order does not matter P Hr -tt; Es -tt ⊆ P Es -tt; Hr -tt • For function classes, order matters unless PH collapses PF Hr -tt; Es -tt ⊆ PF Es -tt; Hr -tt = ⇒ PH ⊆ Σ P j +1 where j < k , E is Σ P j complete and H is Σ P k -complete

  8. prior & related works • Hemaspaandra, Hempel & Wechsung 1995: Order of queries to 2 complete languages from the Boolean Hierarchy • Agrawal, Beigel & Thierauf 1996: Strengthened results on queries to complete languages from the Boolean Hierarchy. (Obtained independently from [HHW95].) • Gasarch & McNicholl 1997(?): Order of oracle queries in a recursion theoretic setting

  9. delaying easy questions Proof that P Es -tt; Hr -tt ⊆ P Hr -tt; Es -tt : M 1 (x) M 2 (x) H??? E?? H??? H??? H??? H??? E?? E?? E?? E?? E?? E?? E?? E?? • M 2 ’s i th query H : Is M 1 ’s i th query to H answered YES? • queries to E are the same • in fact, P Es -tt; Hr -tt ⊆ P Hr -tt � Es -tt • proof for function classes identical

  10. delaying hard questions Proof that P Hr -tt; Es -tt ⊆ P Es -tt; Hr -tt : M 1 (x) M 2 (x) H??? E?? H??? H??? H??? H??? E?? E?? E?? E?? E?? E?? E?? E?? • Problem: Don’t know which queries to E to ask • Solution: Use the first set of queries to E • Count the number of mind changes to the true path.

  11. mind changes: part 1 M 1 (x) H??? E?? E?? E?? E?? E?? E?? E?? E?? Path i to Path j forms a mind change if: • Z i = queries to H on Path i assumed to be answered YES. • Z j = queries to H on Path j assumed to be answered YES. • Z i ⊆ Z j ⊆ H . • M 1 ( x ) accepts on Path i and rejects on Path j or vice versa.

  12. mind changes: part 2 Finishing the mind change proof: • paths beyond true path are not involved in mind changes • maximum number of mind changes m ranges from 0 to r − 1 • m can be computed using r truth-table queries to H • Whether M 1 ( x ) accepts on Path 0 can be computed using s queries to E • m is odd: M 1 ( x ) accepts on true path iff M 1 ( x ) rejects on Path 0 • m is even: M 1 ( x ) accepts on true path iff M 1 ( x ) accepts on Path 0 We really proved that P Hr -tt; Es -tt = P Es -tt � Hr -tt .

  13. hierarchies How are the two classes P Ha -tt; Eb -tt and P Hc -tt; Ed -tt related? • In the mind change proof, the s queries to E were used to determine whether M 1 ( x ) accepts or rejects on Path 0. This can be replaced by a single query to H . H ( r + 1)-tt . • For all polynomial bounded s , P Hr -tt; Es -tt ⊆ P • Nested hierarchy: P Hr -tt � P Hr -tt � E 1-tt � P Hr -tt � E 2-tt � · · · � P Hr + 1-tt , unless the Polynomial Hierarchy collapses.

  14. extensions: many rounds of queries What happens if you have many rounds of truth-table queries to E and H ? • Easy queries can still be delayed: P Ha -tt; Eb -tt; Hc -tt; Ed -tt ⊆ P Ha -tt; Hc -tt; Eb -tt; Ed -tt . • Rounds of queries to the same oracle can be combined: P Ha -tt; Hc -tt; Eb -tt; Ed -tt ⊆ P Hr -tt; Es -tt where r = ( a + 1)( c + 1) and s = ( b + 1)( d + 1). • Plus: P Hr -tt � Es -tt ⊆ P Ha -tt; Eb -tt; Hc -tt; Ed -tt . • Therefore, P Ha -tt; Eb -tt; Hc -tt; Ed -tt = P Hr -tt � Es -tt . Complexity of language classes characterized by the number of queries. The order of the queries does not matter for language classes.

  15. function classes For function classes, the order of oracle queries is critical. • We can still delay easy questions (same proof as language classes): PF Es -tt; Hr -tt ⊆ PF Hr -tt; Es -tt • We cannot delay hard questions unless PH collapses: PF Hr -tt; Es -tt ⊆ PF Es -tt; Hr -tt = ⇒ PH ⊆ Σ P j +1 (Recall: j < k , E is Σ P j complete and H is Σ P k complete.) • Proof uses the latest hard/easy argument [Buhrman & Fortnow, 1996] and tree pruning techniques [Beigel, Kummer & Stephan, 1995]

  16. a simple case Let E be NP-complete, H be NP NP -complete. Use 1 query to each oracle. Candidate function in PF H 1-tt; E 1-tt but not in PF E 1-tt; H 1-tt .   00 if x �∈ H and y �∈ E     = H ( x ) E ( y ) if x �∈ H    01 if x �∈ H and y ∈ E     f ( x, y, z ) =   10 if x ∈ H and z �∈ E      = H ( x ) E ( z ) if x ∈ H    11 if x ∈ H and z ∈ E   • H ( x ), E ( y ) and E ( z ) are characteristic functions • H ( x ) E ( y ) means concatenation • f ( x, y, z ) is easily computable in PF H 1-tt; E 1-tt ⇒ H ⊆ NP NP = • Prove f ( x, y, z ) ∈ PF E 1-tt; H 1-tt = ⇒ PH ⊆ NP NP .

  17. a hard/easy argument A PF H 1-tt; E 1-tt machine and a PF E 1-tt; H 1-tt machine which compute f ( x, y, z ) M 1 (x,y,z) M 2 (x,y,z) x ∈ H? q 1 ∈ E? n y n y y ∈ E? z ∈ E? q 2 ∈ H? q 3 ∈ H? 00 01 10 11 11 00 01 10 • Both machines compute f ( x, y, z ) correctly • Construct an NP NP machine for H which is coNP NP complete • Use NP oracle to answer all queries to E • Let OUT 1 and OUT 2 be the possible outputs of M 1 and M 2 after queries to E are answered (some paths are eliminated) • Example: y �∈ E , z �∈ E and q 1 �∈ E OUT 1 = { 00 , 10 } OUT 2 = { 00 , 11 }

  18. easy case x is easy if there exists y and z , | y | = | z | ≤ | x | k , such that OUT 1 � = OUT 2 M 1 (x,y,z) M 2 (x,y,z) x ∈ H? q 1 ∈ E? n y n y y ∈ E? z ∈ E? q 2 ∈ H? q 3 ∈ H? 11 00 01 10 00 01 10 11 If y �∈ E , z �∈ E and q 1 �∈ E , then OUT 1 ∩ OUT 2 = { 00 } = ⇒ H ( x ) = 0 If x is easy, this NP NP algorithm recognizes H • Guess y and z with length ≤ | x | k • Compute OUT 1 and OUT 2 by simulating M 1 ( x, y, z ) and M 2 ( x, y, z ) using the NP oracle to answer all queries to E • If OUT 1 = OUT 2 , reject • Otherwise, f ( x, y, z ) = OUT 1 ∩ OUT 2 and the first bit of f ( x, y, z ) is H ( x )

  19. hard case x is hard if for all y and z , | y | = | z | ≤ | x | k , OUT 1 = OUT 2 M 1 (x,y,z) M 2 (x,y,z) x ∈ H? q 1 ∈ E? n y n y y ∈ E? z ∈ E? q 2 ∈ H? q 3 ∈ H? 11 00 01 10 00 01 10 11 If y �∈ E , z ∈ E and q 1 �∈ E , OUT 1 = OUT 2 = { 00 , 11 } = ⇒ E ( y ) E ( z ) = 01 • with 1 query to E , the outcome of two queries were determined. • with 0 queries to E , we still have E ( y ) E ( z ) ∈ { 01 , 10 } • 2 out of 4 possibilities for E ( y ) E ( z ) eliminated using 0 queries! • this is enough to prove that SAT ∈ P.

  20. self-reduction tree for SAT F F 0 F 1 F 00 F 01 F 10 F 11 F 000 F 001 F 010 F 011 F 100 F 101 F 110 F 111 • F w 0 = F w with first variable replaced by FALSE • F w 1 = F w with first variable replaced by TRUE • F w ∈ SAT ⇐ ⇒ ( F w 0 ∈ SAT) ∨ ( F w 1 ∈ SAT) • use Beigel-Kummer-Stephan (BKS) tree pruning procedure: Given 4 formulas, find 1 to drop “safely”

  21. BKS tree pruning Given Q = { F 1 , F 2 , F 3 , F 4 } , find i ∈ { 1 , 2 , 3 , 4 } such that Q ∩ SAT � = ∅ ⇐ ⇒ ( Q − F i ) ∩ SAT � = ∅ (I.e., F i is not the only element of Q in SAT.) Since E is NP-complete, we can construct y and z such that y ∈ E ⇐ ⇒ ( F 3 ∈ SAT) ∨ ( F 4 ∈ SAT) z ∈ E ⇐ ⇒ ( F 2 ∈ SAT) ∨ ( F 4 ∈ SAT) • Q ∩ SAT = { F 1 } = ⇒ E ( y ) E ( z ) = 00. if E ( y ) E ( z ) � = 00, drop F 1 . • Q ∩ SAT = { F 2 } = ⇒ E ( y ) E ( z ) = 01. if E ( y ) E ( z ) � = 01, drop F 2 . • Q ∩ SAT = { F 3 } = ⇒ E ( y ) E ( z ) = 10. if E ( y ) E ( z ) � = 10, drop F 3 . • Q ∩ SAT = { F 4 } = ⇒ E ( y ) E ( z ) = 11. if E ( y ) E ( z ) � = 11, drop F 4 .

Recommend


More recommend