edited by
3,636 views
4 votes
4 votes
Let us define an operation $truncate$, which removes the rightmost symbol from any string. For example, $truncate (aaaba)$ is $aaab$. The operation can be extended to languages by
$truncate (L)= $ {$truncate(w):w ∈ L$}
Show how, given a dfa for any regular language L, one can construct a dfa for $truncate (L)$.
From this, prove that if $L$ is a regular language not containing $λ$, then $truncate (L)$ is also regular.
edited by

5 Answers

0 votes
0 votes

The dfa that represents all the strings that could be accepted as per the above statement should be like below:

 

Please verify if I am correct.

Related questions

0 votes
0 votes
2 answers
1