8 Determine if in
Input: Sets
, and a number .
Question: do there exist mutually disjoint sets not inInput: Sets
.
Question: do there exist 3 mutually disjoint sets inInput: Sets
, and a number .
Question: do there exist sets such that such that not inInput: a CNF formula
with at most 50 variables.
Question: does there exist an assignment that satisfies inInput: a CNF formula
with at most 50 clauses.
Question: does there exist an assignment that satisfies inInput: a 3CNF formula
with even number of variables.
Question: does there exist an assignment that satisfies and gives for exactly one half of the variables? not inInput: undirected graph
, a number .
Question: does there exist in a clique of size at least or an independent set of size at least ? not in
Resulting regular expression:
(Example) is regular.onsider some DFA for
Since there are only finitely many possibilities for
8.1 Examples
is a TM and are TMs and are TMs and is Regular is not regular is not regular is not regular is a TM and there exists an input on which M halts in less than steps is a TM and co-RE reduce . idea copies M and x to its tape, and runs M on x; it accepts if M halts on x. M is a TM and RE reduce . It erases w, puts M and x on its tape, and runs M on x and accepts if M halts on x. is a TM that accepts all even numbers not RE is a TM and is finite not RE is a TM and is infinite not RE is a TM and is countable R This is the language of all TM’s, since there are no uncountable languages ( finite alphabets and finite-length strings). is a TM and is uncountable R This is the empty set are TM’s and RE. reduce HALT s.t halts on accepts all strings, and in particular it accepts . are TM’s and RE. are TM’s and not RE. s.t is a TM. and halt on all input, and RE using Rice is a TM. and halt on all input, and R is a TM. and is str and there exists a TM, , such that R is a TM. , and there exists an input whose length is less than 100, on which M halts RE is a TM, and at least TM’s of halt on x RE its reduce is a TM and M halts on all palindromes . not RE . on input x works as follows: runs M on w for steps: if M halts on w within steps, reject, otherwise accept.(if is polindrome) is a TM and is empty. not RE on input x: erase x, and run M on w. If M halts on w then accepts. is a TM that halts on all inputs and for some undecidable language . R is a TM and M accepts (at least) two strings of different lengths . RE M is a TM such that both and are infinite . not RE M’ on input x works as follows: if x is of odd length, accept. if x is of even length, run M on w. If M halts, accept. does not halt on accept all odd length str and reject all even. contain even-length strings, is a TM, and is prime. not RE on input x: if x is one of the first three strings (in lexicographic order) of , then accept. Otherwise, run M on w. If M halts on w, and x is the 4 th string in accept; otherwise, reject. and exists s.t for every not RE on input x: it runs M on w; if M halts on w, accepts. and exists s.t for every Recursive (the language of all Turing machines) is TM and exists s.t and Recursive(the language of all Turing machines) and not RE s.t . on input : run M on if M halts, check whether y is of the form where is TM and z is str. if so run on z. if halts, accept . hence (1)if (2) otherwize then M does not accept any string w such that 001 is a prefix of not RE M does not accept any string w s x is a prefix of not RE x is prefix of Recurcive not RE not RE M1 on x: runs M on w; if M halts, M1 accepts.M2 on y: reject. M3 on z: reject. there exist two TM’s M2 and M3 such that Recursive M is a TM that accepts w using at most squares of its tape Recursive Let m be the number of states in M, and k be the size of the alphabet that M uses, and if M uses at most squares of its tape, then there are at most configurations.If M runs on w for more than steps, and does not use more than squares of its tape, then M must be in the one configuration at least twice. runs M on w for at most a + 1 steps.If M accepts w within a steps with using at most squares, halts and acceptsWich one is False for sure
Wich one we dont know if it close under klee star
Let
be computable with circut size we can construct circuit size with only AND,NOT gate for sure. (mybe) is ( always true) completeIf we find that
then
G is an directed graph, and the shortest patch between
CVAL=
STCON=
UHAMPATH=
UHAMCYCLE=
SUBSET-SUM=
(extended rice) Let
2-NFA with same L
to compare languages accepted by both we have to figure out if L(A) is equal to L(B) or not. Thus, you have to find out if L(A)-L(B) and L(B)-L(A) is null set or not. (Reason1)
Part1: To find this out, we construct NFA X from NFA A and NFA B, . If X is empty set then L(A) = L(B) else L(A) != L(B). (Reason2)
Part2: Now, we have to find out an efficient way of proving or disproving X is empty set. When will be X empty as DFA or NFA? Answer: X will be empty when there is no path leading from starting state to any of the final state of X. We can use BFS or DFS for this.
We prove by contradiction that L is undecidable. Assume L was decidable, and let
The trick to proving this language is decidable is to notice that M moves its head left on an input w if and only if it does so within the first
Let
{
1. Let
Since Turing machines can be simulated with only polynomial overhead, if
—
More generally, this shows that even if we know that
with
>We need to prove two directions. First, if
>For the first direction, consider a satisfying assignment for
>For the other direction, take an independent set
>This reduction is polynomial in time because
I’ve looked at many different examples of how this is done, and everything I find online includes everything in the proof except the argument of why this is polynomial. I presume it’s being left out because it’s trivial, but that doesn’t help me when I’m trying to learn how to explain such things.
a.
Max-2-SAT: Given a CNF formula, where every clause in
Replace a singleton clause
We would like to take a convex combination of these rows which is of the form
However, all such convex combinations have
Let
Let
Claim:
Therfore 3SAT