Turing Machine and Recursive Functions Flashcards
The intersection of two regular languages is regular.
T or F ?
TRUE
The intersection of two recursive languages is recursive.
T or F ?
TRUE
The intersection of two recursively enumerable languages is recursively enumerable.
T or F ?
TRUE
The intersection of two Context free languages is Context-free.
T or F ?
FALSE.
CFL is not closed under intersection.
The set of all recursively enumerable languages is closed under complementation.
T or F ?
FALSE.
The set of all recursively enumerable languages is closed under intersection.
T or F ?
TRUE.
The set of all recursively enumerable languages is a subset of the set of all recursive languages.
T or F ?
FALSE.
recursive is subset of recursively enumerable languages. not vice versa.
The set of all recursively enumerable languages is an uncountable set.
T or F ?
FALSE.
Every Recursively enumerable language have a TM, and set of all TM’s is countable. Therefore, set of all Recursively enumerable languages is countable.
Set of all syntactically valid C programs are countable.
T or F ?
TRUE
Set of all syntactically valid C programs. We can make a one to one equivalence for all valid C programs and all valid TM encodings. Since, the set of all valid TM encodings is countable, it means that the set of all syntactically valid C programs is also countable.
Set of all languages over the alphabet {a,b} is countable.
T or F ?
FALSE
Set of all languages over the alphabet {a,b}. It is (2^∑⋆) which is uncountable as the power set of an infinite set is uncountable.
Set of all non-regular languages over the alphabet {0, 1}.
T or F ?
FALSE.
We know that, set of all languages is uncountable and set of all Regular Languages is countable. So, the set of all non-regular languages should be uncountable as union of two countable sets cannot make an uncountable set.
If a language L and its complement L’ are both recursively enumerable, then L must be recursive.
T or F ?
TRUE
Complement of a context-free language must be recursive.
T or F ?
Complement of a context-free language may or maynot be CFL but since every CFL is CSL, and complement of CSL is always CSL.
So, Complement of a context-free language must be CSL, hence, must be recursive
Turing decidable language mean Recursively Enumerable language and Turing recognizable language mean recursive language.
T or F ?
FALSE
Turing decidable language mean Recursive language and Turing recognizable language mean recursive enumerable language.
Turing machines can be used to recognize all the languages.
T or F ?
TRUE