Professional Documents
Culture Documents
REDUC
P
NP
Undecidable:
Decidable:
SUBSET SUM = {<S, t> | S {x1 , , xn} and there is a S S such that y = t, y
exists in S}
NP-Complete Languages:
HAMPATH =
Definitions:
Regular language If we can check every word is in the language with finite memory
Ambiguity If a CFG has two or more leftmost derivations (some languages are inherently so)
Context free language each rule points to a single variable
Push Down Automata (PDA) has a memory stack, recognizes CFGs
* = all possibilities of a given language, i.e. {, 0, 1, 00, 01, 11, }
A is mapping reducible to B when there is a function such that w exists in A only if f(w) exists in
B. If A is undecidable, B is undecidable. If B is Turing recognizable, A is also. If A is not
Turing recognizable, neither is B. EQTMis neither Turing recognizable or co-Turing
recognizable.
Co-Turing recognizable (co-recursively enumerable) the complement of a Turing recognizable
language
Configuration the state, tape contents, and tape head position of a TM
Computation histories the series of configurations leading to an accepting or rejection
Linear Bounded Automaton Turing machine that may only use the original portion of the tape
Context sensitive languages languages accepted by LBAs
Time complexity time require to solve a problem
Space complexity space required to solve a problem
O(n) = asymptotic upper bound, f(n) is O(g(n)) means f(n) <= g(n) after removing constants