You are on page 1of 12

Recursive &

Recursively
Enumerable
Languages

By Mirza Qurat-ul-ain Zamzam (1087)


& Maria Hanif (1078)
Recursively Enumerable L (R.E)
• A language is called Recursively Enumerable if there
is a Turing Machine that accepts on any input within
the language.
• A language is recursive enumerable if there exists a
Turing machine that accepts every string in the
language and rejects if it is not in the language and
may enter in an infinite loop.
R.E Languages
• There are three possibilities of TM of
R.E language:
Halt and accept the input string ‘w’
{final state}
Halt and reject the input string ‘w’
{non-final state}
Never halt {infinite loop}
R.E Languages
 If w belongs to ‘L’ then
TM will accept the w.
 If w does not belongs to
‘L’ then TM will:
Reject the w. or
Enters infinite loop.
Recursive Languages (REC)
• A language is Recursive if there is a
Turing machine than can always reply
"yes" or "no" if a given string is part of
this language.
• REC languages are also called as Turing
decidable languages.
REC Languages
• There are two possibilities of TM of REC
language:
 Halt and accept the input string ‘w’
{final state}
 Halt and reject the input string ‘w’
{non-final state}
• The TM of REC language is also known as
Total TM.
REC Languages
 If w belongs to ‘L’
then TM will accept
the w.
 If w does not belongs
to ‘L’ then TM will
reject the w.
Relationship between
REC and R.E Languages
• REC languages are
subset of R.E
languages.
• All REC languages are
R.E languages but all
R.E languages may not
be REC languages.
• On the basis of R.E and REC
languages, a language is
categorized into three
categories:
Decidable
Partially decidable
Un decidable
Continued
• A language ‘L’ is called decidable if it is a REC
language.
• A language ‘L’ is called partially decidable if it
is a R.E language.
• A language ‘L’ is called un decidable if it may
sometime be partially decidable.
THANK
YOU

You might also like