Automata-2018

NFA

The exact state to which the machine moves cannot be determined. It is called Non-deterministic Automaton(NFA).

Formal Definition of an NDFA

A=(Q, ∑, δ, s, F)

TRANSITION DIAGRAM

enter image description here

According to the NFA diagram above:

TRANSITION MATRIX

enter image description here

We can create a transition matrix by examining the transition diagram.

→ : this symbol indicates the start state

* : this symbol indicates finish states

YIELD NOTATION

(q, au) ⊢ (δ(q, a), u)

The yield notation is applied sequentially to all the string elements. If there is no element in the string and is in the final state, the string is accepted.

Example:

Look at the transition diagram or transition matris.

Our starting state is ‘a’.

The given string is “1101”.

Lets start!

(a, 1101) ⊢ (d, 101) ⊢ (a, 01) ⊢ (b, 1) ⊢ (c, ε) Accept

‘c’ is final state and all elements of string visited.

So this string is accepted in this automata.

The given string is “010010”.

(a, 010010) ⊢ (b, 10010)⊢ (c, 0010)⊢ (b, 010)⊢ (b, 10)⊢ (c, 0)⊢ (d, ε) Reject

‘d’ is not final state and all elements of string visited.

So this string is reject in this automata.

If do you want to try some strings in this automata please

open the program

enter image description here

This Project is written in Java language. This website, program, examples and images are prepared by Ayşe Sena Feyiz.