in Theory of Computation
751 views
0 votes
0 votes
in Theory of Computation
751 views

1 Answer

2 votes
2 votes

The Language {a^n b^n, n>=1} consists of the strings = {ab,aabb,aaabbb,aaaabbbb,…...}

If we take L* it would be

= {ab,aabb,aaabbb,aaaabbbb,…..}*

= {e,…..,abab,ababab,….abaabb, aabbab,…… aaabbbaabbab,…….}

= number of a’s read is immediately followed by equal number of b’s read and all strings should start with a and end with b

The transition diagram would be something like this:

Now, as we can draw a DPDA for the Kleene’s Closure of L it is a DCFL.

Note 1: Generally DCFL is not closed under Kleene’s Closure, this Language happens to be closed but it will not happen for all DCFL Languages. On the other hand NCFL is always closed under Kleene’s Closure.

Note 2: Closure property is not for a particular language it’s for a class of language.

edited by

4 Comments

👍
0
0
Please don't delete any comment in between otherwise it will be of no use to future readers.
2
2
Sure, I hid that comment as what I said was wrong so dint want to create any confusion. Cool I have reshown the comment.
1
1