in Theory of Computation
1,153 views
3 votes
3 votes
Why is ambiguity in regular language is decidable and not decidable in CFL ? Can you give Example?
in Theory of Computation
by
1.2k views

4 Comments

if you have a regular language then there must exist a unambiguas grammar . so we can say ambiguity problem of regular language is decidable.

example

S---> aS/Sa/a   it is regular language and also  ambiguous . but there exist a unambiguous grammar

S-->as/a .

0
0

it is regular language and also  ambiguous . but there exist a unambiguous grammar

but doesn't one unambiguous grammar makes the whole language unambiguous?

0
0
but every regular grammar is either left linear or right linear.

and every right linear grammar and left linear grammar is unambigous.
0
0

1 Answer

0 votes
0 votes

There is no inherent ambiguity in regular languages. 

Every regular language is convertible to an NFA.

An NFA is convertible to a DFA.

A DFA is conertible to a minimal DFA. 

The minimal DFA is unique. 

https://cs.stackexchange.com/questions/63171/how-to-prove-that-minimal-dfa-is-unique

by

Related questions