3,057 views
1 votes
1 votes
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

2 Answers

1 votes
1 votes

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

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

Related questions

2 votes
2 votes
2 answers
2
Prateek Raghuvanshi asked Jun 4, 2018
679 views
$L_1$ =${a^nb^nc^n|n\geq 2}$$L_2$=${a^nb^mc^k|n,m,k\geq 0}$$L_3$=$L_1.(L_2)^*$ ,then $L_3$ isRegularCFLCslNone
2 votes
2 votes
2 answers
3
Anurag_s asked Aug 15, 2015
3,281 views
Let Σ= {a}, assume language, L= { a^(2012.K) / K 0}, what is minimum number of states needed in a DFA to recognize L
1 votes
1 votes
1 answer
4