Oracle machine
In complexity theory and computability theory, an oracle machine is an abstract machine that can query a black box called an oracle, which is able to give an answer to any instance of a certain problem in a single operation.[src] The problem can be of any complexity class, or it can even be an undecidable problem such as the halting problem.[src] If another problem is reducible to in polynomial time, then the oracle machine (with the -oracle) can solve in polynomial time; one can say that is in the relativized complexity class .[src] Other relativized complexity classes such as can be defined analogously.[src]
In complexity theory and computability theory, an oracle machine is an abstract machine that can query a black box called an oracle, which is able to give an answer to any instance of a certain problem in a single operation.[src] The problem can be of any complexity class, or it can even be an undecidable problem such as the halting problem.[src] If another problem is reducible to in polynomial time, then the oracle machine (with the -oracle) can solve in polynomial time; one can say that is in the relativized complexity class .[src] Other relativized complexity classes such as can be defined analogously.[src] ==Complexity classes of oracle machines== The complexity class of decision problems solvable by an algorithm in class A with an oracle for a language L is called A L .[src] For example, P SAT is the class of problems solvable in polynomial time by a deterministic Turing machine with an oracle for the Boolean satisfiability problem.[src] The notation A B can be extended to a set of languages B (or a complexity class B), by using the following definition: A^B = \bigcup_{L \in B} A^L When a language L is complete for some class B, then A L =A B provided that machines in A can execute reductions used in the completeness definition of class B.[src] In particular, since SAT is NP-complete with respect to polynomial time reductions, P SAT =P NP .[src] However, if A = DLOGTIME, then A SAT may not equal A NP .[src] (The definition of A^B given above is not completely standard.[src] In some contexts, such as the proof of the time and space hierarchy theorems, it is more useful to assume that the abstract machine defining class A only has access to a single oracle for one language.[src] In this context, A^B is not defined if the complexity class B does not have any complete problems with respect to the reductions available to A .) It is understood that NP ⊆ P NP , but the question of whether NP NP , P NP , NP, and P are equal remains tentative at best.[src] It is believed they are different, and this leads to the definition of the polynomial hierarchy.[src] Oracle machines are useful for investigating the relationship between complexity classes P and NP, by considering the relationship between P A and NP A for an oracle A.[src] In particular, it has been shown there exist languages A and B such that P A =NP A and P B ≠NP B .[src] The fact the P = NP question relativizes both ways is taken as evidence that answering this question is difficult, because any proof technique that relativizes (i.e., is unaffected by the addition of an oracle) will not answer the P = NP question.[src] Most proof techniques relativize.[src] One may consider the case where an oracle is chosen randomly from among all possible oracles (an infinite set).[src] It has been shown in this case, that with probability 1, P A ≠NP A .[src] When a question is true for almost all oracles, it is said to be true for a random oracle.[src] This choice of terminology is justified by the fact that random oracles support a statement with probability 0 or 1 only.[src] (This follows from Kolmogorov's zero–one law.) This is only weak evidence that P≠NP, since a statement may be true for a random oracle but false for ordinary Turing machines; for example, IP A ≠PSPACE A for a random oracle A but IP = PSPACE.[src] ==Oracles and halting problems== A machine with an oracle for the halting problem can determine whether particular Turing machines will halt on particular inputs, but it cannot determine, in general, whether oracle machines like itself (i.e.[src] equipped with an oracle for the halting problem) will halt.[src] This creates a hierarchy of machines, each with a more powerful halting oracle and an even harder halting problem.[src] This hierarchy of machines can be used to define the arithmetical hierarchy.[src] ==Applications to cryptography== In cryptography, oracles are used to make arguments for the security of cryptographic protocols where a hash function is used.[src] A security reduction (proof of security) for the protocol is given in the case where, instead of a hash function, a random oracle answers each query randomly but consistently; the oracle is assumed to be available to all parties including the attacker, as the hash function is.[src] Such a proof shows that unless the attacker solves the hard problem at the heart of the security reduction, they must make use of some interesting property of the hash function to break the protocol; they cannot treat the hash function as a black box (i.e., as a random oracle).[src] ==See also== Black box group Turing reduction Interactive proof system Matroid oracle Demand oracle Padding oracle attack ==References== ===Footnotes=== ===Sources===[src]
34 sentences · 34 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Oracle machine." encyclopegia.org, 2026, https://encyclopegia.org/wiki/oracle-machine. Accessed 26 November 2026.
Chicago
"Oracle machine." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/oracle-machine.
APA
encyclopegia.org. (2026). Oracle machine. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/oracle-machine
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON