We study the effect of query order on computational power, and show that P BH j [1]:BH k [1] -the languages computable via a polynomial-time machine given one query to the jth level of the boolean hierarchy followed by one query to the kth level of the boolean hierarchy-equals R p j+2k−1-tt (NP) if j is even and k is odd, and equals R p j+2k-tt (NP) otherwise. Thus, unless the polynomial hierarchy collapses, it holds that for each 1 ≤ j ≤ k:We extend our analysis to apply to more general query classes.
IntroductionThis paper studies the importance of query order. Everyone knows that it makes more sense to first look up in your on-line datebook the date of the yearly computer science conference and then phone your travel agent to get tickets, as opposed to first phoning your travel agent (without knowing the date) and then consulting your on-line datebook to find the date. In real life, order matters.This paper seeks to determine-for the first time to the best of our knowledge-whether one's everyday-life intuition that order matters carries over to complexity theory.In particular, for classes C 1 and C 2 from the boolean hierarchy [10,11], we ask whether one question to C 1 followed by one question to C 2 is more powerful than one question to C 2 followed by one question to C 1 . That is, we seek the relative powers of the classes P C 1 [1]:C 2 [1] and P C 2 [1]:C 1 [1] . As is standard [26], for any constant m we say A is m-truth-table reducible to B (A ≤ p m-tt B) if there is a polynomial-time computable function that, on each input x, computes both