Skip to content

CIS 2620 Notes 2.1

Published: at 02:49 PM

Extended Transition Function

Remember that a transition function is a function that given a state and a symbol, returns to you a new state. An extended transition function δ(s,w)\delta ^*(s, w) is a function that takes a state ss and a string of symbols ww, returns the new state after all those symbols are processed. This is also called a multi-step transition function.

DFA Minimality

What is the minimum number of states a DFA needs to accept a given language? This question is important to defining DFAs. But to answer it, we need a few more definitions.

Distinguishable Strings

Two strings uu and vv are distinguishable with respect to a language AA if there exists a string ww such that only one of u.wu.w and v.wv.w is in AA.

For example, take the language A={ww2=a}A = \{w | w_2 = a\}. In this case, E\mathcal{E} and aa are distinguishable because a.aba.ab belongs to the set but E.ab\mathcal{E}.ab does not(reminder that E\mathcal{E} represents the empty string). However, aa and bb are clearly indistinguishable because there exists no string for which a concatenation will have a different result.

Theorem: if MM accepts AA and strings uu and vv are distinguishable with respect to AA, then δ(q0,u)δ(q0,v)\delta ^\ast (q_0, u) \neq \delta ^\ast (q_0, v).

This property can be easily proved by contradiction.

Lower Bounds for Number of Automata States

Theorem: If S={w1,w2,wk}S = \{w_1, w_2, … w_k\} is a set of all kk pairwise distinguishable strings on AA, then every DFA for AA must have at least kk states.

Taking the previous example of A={ww2=a}A = \{w | w_2 = a\}, you can see that there are four pairwise distinguishable strings. An example of this set is {E,x,xa,xb}\{\mathcal{E}, x, xa, xb\}. Therefore, this state machine would need at least four states.