in Theory of Computation
3,045 views
1 vote
1 vote
If L be a language recognizable by a finite automata, then language from {L}={w such that w is prefix of v where v belongs to L},is a

a. Regular Language

b. Context Free language

c. Context Sensitive Language

d. Recursive Enumerable Language
in Theory of Computation
3.0k views

1 comment

a) regular language

regular languages are closed under prefix operation..
2
2

2 Answers

1 vote
1 vote

Prefix of a langauge are finite. Therefore, {L} will be regular language. Option (A)

1 comment

Wrong. Prefix language of any infinite language will be infinite.
0
0
0 votes
0 votes
Take the DFA and convert all the states as accepting ones for accepting all prefixes.

If you want only the proper prefixes convert all the states to accepting ones, then exclude  the initial state and the final states, but then include the states that are one transition away from any other final state.
edited by
by

4 Comments

 

Proper prefixes are the prefixes excluding the string and ϵ. 

But for the language?

0
0
Well, prefixes for the strings in the language, right? The language formed by the prefixes of the strings in the original language.
0
0
Thats for “prefix”, not “proper prefix”. Anyway you can check that definition and the answer you have given once more.
0
0

Related questions