online advertising
Loading [MathJax]/jax/output/HTML-CSS/jax.js

Wednesday, January 4, 2017

Languages

Problem:

Mixing it up: Let F denote some finite language, R denote some regular language, C denote some context-free language, D denote some decidable language, E denote some
recognizable language, and N denote some non-recognizable language. For each one of the
following statements, prove whether it always holds, sometimes holds, or never holds:


ND is recognizable

Short answer: never

Support I could enumerate ND, I can also enumerate D because D is decidable. Now I can dovetail to enumerate N=(ND)D, therefore I should not be able to enumerate ND.

RE is context free 

Short answer: sometimes

A finite language is recursive enumerable and also context free.
A recursively enumerable language include anbncn, which is not context free.

NF is decidable

Short answer: always

NF is finite, and a finite language is always decidable.

EF is recognizable

Short answer: sometimes

E is a recognizable language, it could be finite. F is finite, so E union F could be finite, and a finite language is regular.

E could be anbn, and F could be the empty language, so EF is anbn and is not regular.

N is non recognizable

Short answer: always

If N is recognizable, we will have a Turing machine that halt on N. We can modify that machine such that whenever it reach a final state, any input will go to a state that just consume the input and do nothing and never halt, that would become a recognizer for N.
Therefore N is not recognizable.

NC is finite

Short answer: never

If NC is finite, then N is finite, but finite language is always recognizable.

No comments :

Post a Comment