570 likes | 582 Views
Finite Automata. Finite Automaton. Input. String. Output. Finite Automaton. String. Finite Accepter. Input. String. Output. “Accept” or “Reject”. Finite Automaton. Transition Graph. Abba -Finite Accepter. initial state. final state “accept”. transition. state.
E N D
Finite Automata Costas Busch - RPI
Finite Automaton Input String Output Finite Automaton String Costas Busch - RPI
Finite Accepter Input String Output “Accept” or “Reject” Finite Automaton Costas Busch - RPI
Transition Graph Abba -Finite Accepter initial state final state “accept” transition state Costas Busch - RPI
Initial Configuration Input String Costas Busch - RPI
Reading the Input Costas Busch - RPI
Input finished Output: “accept” Costas Busch - RPI
Rejection Costas Busch - RPI
Input finished Output: “reject” Costas Busch - RPI
Another Rejection Costas Busch - RPI
Output: “reject” Costas Busch - RPI
Another Example Costas Busch - RPI
Input finished Output: “accept” Costas Busch - RPI
Rejection Costas Busch - RPI
Input finished Output: “reject” Costas Busch - RPI
Formalities • Deterministic Finite Accepter (DFA) : set of states : input alphabet : transition function : initial state : set of final states Costas Busch - RPI
Input Alphabet Costas Busch - RPI
Set of States Costas Busch - RPI
Initial State Costas Busch - RPI
Set of Final States Costas Busch - RPI
Transition Function Costas Busch - RPI
Transition Function Costas Busch - RPI
Extended Transition Function Costas Busch - RPI
Observation: There is a walk from to with label Costas Busch - RPI
Example: There is a walk from to with label Costas Busch - RPI
Recursive Definition Costas Busch - RPI
Languages Accepted by DFAs • Take DFA • Definition: • The language contains • all input strings accepted by • = { strings that drive to a final state} Costas Busch - RPI
Example accept Costas Busch - RPI
Another Example accept accept accept Costas Busch - RPI
Formally • For a DFA • Language accepted by : Costas Busch - RPI
Observation • Language rejected by : Costas Busch - RPI