1 / 6

Lecture 2 Finite Automata

Lecture 2 Finite Automata. Jan Maluszynski , IDA, 200 7 http://www.ida.liu.se/~janma janma @ ida.liu.se. Deterministic Finite Automata. DFA A is defined as ( Q ,  , , q 0 , F ) Q States  Alphabet Transition function  : Q    Q Initial state q 0  Q

sackettj
Download Presentation

Lecture 2 Finite Automata

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 2Finite Automata Jan Maluszynski, IDA, 2007 http://www.ida.liu.se/~janma janma @ ida.liu.se Jan Maluszynski - HT 2007

  2. Deterministic Finite Automata DFA A is defined as (Q, , , q0, F) • Q States • Alphabet • Transition function  : Q    Q • Initial state q0 Q • Final (accept) states: F Q A moves from state to state on input strings: next state unique for given symbol and state A accepts s iff s brings A from q0 to some final state. The language L(A) is the set of accepted strings Jan Maluszynski - HT 2007

  3. Nondeterministic Finite Automata NFA M is defined as (Q, , , q0, F) • Q States • Alphabet • Transition function  : Q   {} P(Q) InqM can move on input c to any of the states in (q,c) • Initial state q0 Q • Final (accept) states: F Q M accepts s iff s can bring M from q0 to some final state. Jan Maluszynski - HT 2007

  4. DFA vs. NFA Finite automata M and N are equivalent iff L(M)=L(N) For every NFA there exists an equivalent DFA. (see the construction pp. 54-58). For every FA there exists a unique DFA (up to renaming of states) with a minimal number of states (the construction not discussed in the book) Jan Maluszynski - HT 2007

  5. Regular languages Definition: A language is regular iff it is accepted by a Finite Automaton Regular languages are closed under • Union • Kleene Star • Concatenation • Intersection Jan Maluszynski - HT 2007

  6. Proving closure properties • Construct NFA’s for basic automata • Construct combinations of NFA’s for • Concatenation • Union • Kleene star pp.59-63 • Construct product of DFA’s for proving closure under intersection. p.45 Jan Maluszynski - HT 2007

More Related