1.
i. Show that P is closed under intersection. (This means that if languages J and L are both in P, then so is J ∩ L.)
ii. Show that JL (the concatenation of J and L) is in P. (Here J and L are in P as in part (i), and JL = { xy | x ∈ J and y ∈ L }. ) Here you should calculate the complexity of your P-time algorithm for JL.
iii. Show that NP is closed under union
1.

iii)
Assume language X and language Y are in NP, we wanted to
show X union Y is in NP
Because X and Y are in NP, there exists non-deterministic Turing
machine X and non-deterministic Turing machine Y that verifies X
and Y, respectively.
Rename the states in Y so that it does not have the same name as in
X.
Build a new non-deterministic Turing machine U as follow:
Create a new start state, for each input symbol, it write the same
symbol back to the tape, and non-deterministically go to the start
state of X or the start state of Y. Take the union of state and
transition function from both X and Y, that is a non-deterministic
Turing machine U.
For any string in X, non-deterministic Turing machine U can take a
non-deterministic jump to the start state of X, and follow the
non-deterministic Turing machine X to finally get accepted.
For any string in Y, non-deterministic Turing machine U can take a
non-deterministic jump to the start state of Y, and follow the
non-deterministic Turing machine Y to finally get accepted.
For any string that is neither in X nor in Y, non-deterministic
jump to either X or Y cannot lead to acceptance.
Therefore we showed the non-deterministic Turing machine U
precisely accept X union Y.
NOTE: As per Chegg policy, I am allowed to answer only 2 questions (including sub-parts) on a single post. Kindly post the remaining questions separately and I will try to answer them. Sorry for the inconvenience caused.
1. i. Show that P is closed under intersection. (This means that if languages J and...
Explain the
answer
QUESTION 8 The classes of languages P and NP are closed under certain operations, and not closed under others, just like classes such as the regular languages or context-free languages have closure properties. Decide whether P and NP are closed under each of the following operations. 1. Union. 2. Intersection. 3. Intersection with a regular language. 4. Concatenation 5. Kleene closure (star). 6. Homomorphism. 7. Inverse homomorphism. Then, select from the list below the true statement. OP...
Closure properties of P and NP. (a) Is P closed under union, intersection, concatenation, complement and star? Just answer ”yes” or ”no” for each operation. (b) Is NP closed under union, intersection, concatenation, complement and star? Just answer ”yes” or "no" for each operation.
(a) Show that P is closed under union and intersection. That is, show that for all A, B E P AUB,AnBEP (b) Show that NP is closed under union and intersection.
Q1: Which of the following claims are true?* 1 point The recognizable languages are closed under union and intersection The decidable lanquages are closed under union and intersection The class of undecidable languages contains the class of recognizable anguages For every language A, at least one of A or A*c is recognizable Other: This is a required question Q2: Which of the following languages are recognizable? (Select all that apply) 1 point EDFA-{ «A> 1 A is a DFA and...
7. (1 point) The collection of recognizable languages is closed under: A. union. B. concatenation. C. star. D. intersection. E. All of the above. Page 3 of 8 8. (1 point) L is decided by a deterministic) TM containing 100 tapes in time t(n) where n denotes the length of an input string. Which one of the following represents the time complexity of an equivalent single tape (deterministic) TM which decides L? A. Oft(n) 100). B. Oſt(n)). C. O(t(n)99). D....
Prove that the class of regular languages is closed under intersection. That is, show that if ? and ? are regular languages, then ? ∩ ? = {? | ? ∈ ? ??? ? ∈ ?} is also regular. Hint:givenaDFA? =(?,Σ,?,?,?)thatrecognizes?andaDFA? =(?,Σ,?,?,?)that11111 22222 recognizes ?, construct a new DFA ? = (?, Σ, ?, ?0, ?) that recognizes ? ∩ ? and justify why your construction is correct.
Automata Question
(3) Show that the family of deterministic context-free languages is not closed under union and intersection.
1. (10 points) Show that the Turing Decidable languages are closed under complementation. If L is Turing Decidable then so is the complement -L. 1. (10 points) Show that the Turing Decidable languages are closed under complementation. If L is Turing Decidable then so is the complement -L.
That about automata theroy
if you do correctly i will %100 thumbs up
1. Show that the set of regular languages is closed under the set difference operation -. (Remember that if A,B are two sets A- B is a set that has all members of A that are not members of B). Thus, you should show that if A, B are two regular languages, then so is (Hint. The set of regular languages is closed under the set union...
Assume L is an array, length (L) returns the number of records in the array, and qsort \((L, \quad i, j)\) sorts the records of \(L\) from \(i\) to \(j\) (leaving the records sorted in L) using the Quicksort algorithm. What is the average-case complexity for the following code fragment?$$ \begin{array}{c} \text { for }(\mathrm{i}=0 ; \text { i<length }(\mathrm{L}) ; \mathrm{i}++) \\ \text { qsort }(\mathrm{L}, 0, \mathrm{i}) ; \end{array} $$You should provide a formula for computing the total...