Turing Machine and Recursive Functions Flashcards

1
Q

The intersection of two regular languages is regular.
T or F ?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The intersection of two recursive languages is recursive.
T or F ?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The intersection of two recursively enumerable languages is recursively enumerable.
T or F ?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The intersection of two Context free languages is Context-free.
T or F ?

A

FALSE.
CFL is not closed under intersection.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The set of all recursively enumerable languages is closed under complementation.
T or F ?

A

FALSE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The set of all recursively enumerable languages is closed under intersection.
T or F ?

A

TRUE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The set of all recursively enumerable languages is a subset of the set of all recursive languages.
T or F ?

A

FALSE.
recursive is subset of recursively enumerable languages. not vice versa.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The set of all recursively enumerable languages is an uncountable set.
T or F ?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Set of all syntactically valid C programs are countable.
T or F ?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Set of all languages over the alphabet {a,b} is countable.
T or F ?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Set of all non-regular languages over the alphabet {0, 1}.
T or F ?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

If a language L and its complement L’ are both recursively enumerable, then L must be recursive.
T or F ?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Complement of a context-free language must be recursive.
T or F ?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Turing decidable language mean Recursively Enumerable language and Turing recognizable language mean recursive language.
T or F ?

A

FALSE
Turing decidable language mean Recursive language and Turing recognizable language mean recursive enumerable language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Turing machines can be used to recognize all the languages.
T or F ?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly