Question 9. Consider the language {a^n b^n : n ≥ 0}.
(i) Is this a regular language? Why or why not?
(ii) Is this a recursively enumerable language? Why or why not?
please upvote and comment for doubts
Question 9. Consider the language {a^n b^n : n ≥ 0}. (i) Is this a regular...
Question 9. Consider the language {a"b" : n >0}. (i) Is this a regular language? Why or why not? (ii) Is this a recursively enumerable language? Why or why not? Question 10. Consider the function defined by f(n) = 2 where n is a positive integer. (i) Can this function be computed by a Turing machine? Why or why not? (ii) Is this function primitive recursive? Why or why not?
Consider the language { a nb n: n ≥ 0 } . (i) Is this a regular language? Why or why not? (ii) Is this a recursively enumerable language? Why or why not?
Automata question Categorize the languages as I. Type 0 or Recursively Enumerable Languages II. Type 1 or CSL III. Type 2 or CFL IV. Type 3 or Regular in accordance to the Chomsky hierarchy (select only one of the answers designating the lowest level - Note that Type 3 is the lowest level and Type 0 is the highest level) over the alphabet {0,1} L = {0n10k |k, n is any integer} i think its type 0.. am i right ?...
Let us consider the following three statements: I. Recursively enumerable languages are those that can be accepted by a Turing machine; II. Recursive languages are those that can be decided by a Turing machine; III. A recursively enumerable language accepted by a Turing machine that halts is recursive. Which of the following holds? a.Only I; b.Only II; c.Only I and II; d.Only II and III; e. All I, II, and III.
1/ Assume that A and B are regular language, then prove that i/ (AUB) a regular language ii/ ( A and B) a regular language iii/ A concatenate B a regular language
Determining whether languages are finite, regular, context free, or recursive 1. (Each part is worth 2 points) Fill in the blanks with one of the following (some choices might not be used): a) finite b) regular but not finite d) context-free but not deterministic context-free e) recursive (that is, decidable) but not context-free f) recursively enumerable (that is, partially decidable) but not recursive g) not recursively enumerable Recall that if M is a Turing machine then "M" (also written as...
Question 7. Let Σ = {a}, and consider the language L = {a^n : n is a prime number} = {a 2 , a3 , a5 , a7 , a11 , . . .}. Is L a regular language? Why or why not? (Hint: L contains a 11 , a 17 , a 23 , a 29, but not a 77 since 77 is divisible by 11. . . )
6.[15 points] Recall the pumping lemma for regular languages: Theorem: For every regular language L, there exists a pumping length p such that, if s€Lwith s 2 p, then we can write s xyz with (i) xy'z E L for each i 2 0, (ii) ly > 0, and (iii) kyl Sp. Prove that A ={a3"b"c?" | n 2 0 } is not a regular language. S= 6.[15 points] Recall the pumping lemma for regular languages: Theorem: For every regular...
Additional 9-14 Prove that the language {a"b" n, k ε N and n S k} is not regular Hint: I go over this proof in the lecture. You can watch it again to make sure you follow it before doing it. 2 Additional 9-15 Prove that the language (a"b n, k E N and n Hint: a little different... 2 k Is not regular 3 Additional 9-16 Prove that the language (w w (a, b and w has an equal...
Prove that the language L = {0^n1^m0^n | m, n greaterthanorequalto 0} is not regular.