776 views
1 votes
1 votes

How to decide the complexity of any language?

1 Answer

1 votes
1 votes

Don't know what that complexity is about.

The question says that TM halts on every input i.e it outputs Yes for all strings belonging to L and NO for those that doesn't.

It implies its a halting TM which accepts Recursive language. (Recursive is superset of CFL and CSL).

For Recursively Enumerable languages, TM halts for acceptable strings but doesn't halt always if string doesn't belong to L and goes into infinite looping.

So answer is Recursive language

Related questions

3 votes
3 votes
1 answer
1
0 votes
0 votes
0 answers
2
0 votes
0 votes
0 answers
3
2 votes
2 votes
2 answers
4
Kapil asked Jul 8, 2016
1,431 views
The equality of two regular expression is computed in? Give reasons also..Constant Timepolynomial timelogarithmic Polynomial timeExponential time