Transition function of a NFA

8.1k Views Asked by At

For a DFA, the definition of the transition function for a string is:

$$ \widehat{\delta}:Q\times\Sigma^\star\to Q $$

The first part (before the arrow) defines all combinations of all strings with all states by using the cartesian product. Each one of those combinations can result in change of the state of the machine. This is the part behind the arrow.

I'm having a hard time understanding first part of the transition function for a string for a NFA. My book says the definition is: $$ \widehat{\delta}:2^Q\times\Sigma^\star\to 2^Q $$ I understand the part behind the arrow, which indicates that because we're talking about an NFA, multiple changes of state can be possible given a string. The set of those possibly, multiple states are a subset of Q and thus member of the power set of Q.

2

There are 2 best solutions below

3
On BEST ANSWER

The transition function for a string in case of NFA is $$\hat{\delta}:Q\times \Sigma^*\rightarrow 2^Q$$ which indicates that for a NFA in state $q\in Q$ and an input string $w\in \Sigma^*$, the NFA may transition to more than one state and hence it takes its values on the power set of $Q$.

The extension may also take place on the set of states so that the transition function will be $$\overline\delta:2^Q\times\Sigma^*\rightarrow 2^Q$$ which for some $A\in 2^Q$ evaluates to $$\overline\delta(A, w)=\bigcup_{p\in A}\hat\delta(p, w).$$

1
On

I believe the transition function for NFA will be like this : δ: Q×(Σ⋃{ε})→(Q)={R | R⊆Q} Since the empty string (ε) does not belong to any Alphabet set Therefore the the alphabet of a NFA should be the union of the alphabet and the epsilon