CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following sets:
S1: Set of all recursively enumerable languages over the alphabet {0,1}.
S2: Set of all syntactically valid C programs.
S3: Set of all languages over the alphabet {0,1}.
S4: Set of all non-regular language over the alphabet {0,1}
Which of the above sets are uncountable?

Open in App
Solution

S1: The set LRE is known to be countably infinite since it corresponds with set of turing machines.
S2: Since syntactically valid C programs surely run on Turing machines, this set is also a subset of set of Turing machines, which is countable.
S3: Set of all languages =2 which is known to be uncountable. countably infinite
2 is uncountable.
S4: Set of all non-regular languages includes set LNOT RE which is uncountable infinite and hence is uncountable.
So, S3 and S4 are uncountable.

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Watch in App
Join BYJU'S Learning Program
CrossIcon