1. If L is the complement of a language recognized by a non-deterministic finite automaton, then L is _______
a) finite
b) regular but not necessarily finite
c) deterministic context-free but not necessarily regular
d) context-free but not necessarily deterministic context-free
e) recursive (that is, decidable) but not necessarily context-free
f) recursively enumerable (that is, partially decidable) but not necessarily recursive
g) not recursively enumerable
Answer is as follows :
As we have L is complement of language recognized by NFA, we have to create it's DFA first. So it will be finite, context free but it can't be necessary to be deterministic context free., and sometimes it is decidable but not context free and not recursively enumerable because it is hard to work on turing machines.
So accordingly,
options A,D,E and G are correct.
if there is any query or wrong part ask in comments..
1. If L is the complement of a language recognized by a non-deterministic finite automaton, then...
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...
2. Properties of the following: (a) Regular languages (b) Context-free languages (c) Regular expressions (d) Non-deterministic finite automaton (e) Turing-recognizable and Turing-decidable languages (f) A <m B and what we can then determine (g) A <p B and what we can then determine (h) NP-hard and NP-complete.
Construct a deterministic finite-state automaton for the language L = {w ∈ {0, 1} | w starts with but does not end with 010}
Construct a deterministic finite automaton accepting all and only strings in the language represented by the following regular expression: ((aa ∪ bb)c)*
Construct a deterministic finite automaton accepting all and only strings in the language represented by the following regular expression: ((a U c)(b U c))* U = symbol for union in set theory
9. (1 point) Alice claims that a language is decidable if there exists some non-deterministic TM that decides it. Bob claims that a language is decidable if there exists some deterministic TM that decides it. Whose claim is correct? A. Both Alice's and Bob's. B. Only Alice's. C. Only Bob's. D. Neither Alice's nor Bob's. 10. (1 point) Which of the following is true? A. If an enumerator enumerates a language L, then L is decidable. B. If a language...
Design a deterministic finite automaton (DFA) to recognize tokens in the following language: Identifiers start with letter and continue with letters and digits Keywords when, while, where are reserved and recognized in the FSA as individual tokens each. Make sure to start with listing the alphabet, and then tokens (4 tokens)
1. Consider the alphabet {a,b,c}. Construct a finite automaton that accepts the language described by the following regular expression. 6* (ab U bc)(aa)* ccb* Which of the following strings are in the language: bccc, babbcaacc, cbcaaaaccbb, and bbbbaaaaccccbbb (Give reasons for why the string are or are not in the language). 2. Let G be a context free grammar in Chomsky normal form. Let w be a string produced by that grammar with W = n 1. Prove that the...