| Some decision properties of Regular Languages | ||
The algorithm is very efficient and it can easily be verified that it takes linear time on the length of the input w If L is given as an NFA , we can first convert it to an equivalent DFA and than use the above algorithm to find the answer. This is not efficient, since the conversion algorithm from NFA to DFA (by using subset constructions) is expensive. Similarly, if L is expressed by using a regular expression, we can first convert it to an NFA and than use the above algorithm. We see that this is also an expensive method. We will consider some more decision problems related to regular languages as given below.
The list is not extensive. We will consider decision algorithm for the above mentioned problem only. | ||