What is an extended transition function?

Extended transition function

An extended transition function δ^\hat δ traces the path of an automaton and determines the final state when an initial state qq and an input string xx are passed through it.

The difference between a simple transition function and the extended transition function is that the former performs a transition of a single character/instance. In contrast, the latter performs the transitions on a complete string.

Steps of the recursive algorithm

A recursive algorithm is used to reach the final state, which is as follows:

  1. Base condition:

  1. Recursion rule:

Here, xΣ and aΣx ∈ \Sigma^* \space and \space a ∈ \Sigma. Also,xx is a string of characters belonging to the set of the input symbols and aa is a single character.

The input string is reduced from the right side, character by character, until the base condition—when all the strings are reduced and we are left with a null character (epsilon)—is reached. Then simple transitions are applied to the broken down string.

A transition table is formed to show each transition in the DFA. If the output is a final state, the given string will be accepted by the DFA.

Example

Suppose a DFA of the following type:

g ENTRY q0 q0 ENTRY->q0 q2 q2 q2->q0 b q1 q1 q2->q1 a q0->q0 b q0->q1 a q1->q2 b q1->q1 a
A sample DFA accepting strings ending with ab

The transition table will be of the following sort:


a

b

-> q0

q1

q0

q1

q1

q2

*q2

q1

q0

Example string 1

Let's take an input string abababab. Its extended transition function will be as follows:

We remove the rightmost characters one by one using the recursion rule:

Here, when the last character is separated, we are left with epsilon by default:

Next, we use the base condition:

We use the transition table to change the states according to the input:

The last transition is as follows:

Since q2 is a final state, the DFA accepts the string abab.

Example string 2

In contrast, if we take a string baabaa, the transition function will be as follows:

We remove the rightmost characters one by one using the recursion rule:

We use the base condition:

We use the transition table to get the following:

Since q1 is not a final state, the DFA doesn't accept the string baabaa.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved