Finite Automata - basic computational model: limited amount of - - PowerPoint PPT Presentation

finite automata
SMART_READER_LITE
LIVE PREVIEW

Finite Automata - basic computational model: limited amount of - - PowerPoint PPT Presentation

[Section 1.1] Finite Automata - basic computational model: limited amount of memory - example: controller for an automatic door [Section 1.1] Finite Automata Formal definition: A finite automaton (FA) is a 5-tuple (Q, , ,q 0 ,F), where -


slide-1
SLIDE 1

Finite Automata

[Section 1.1]

  • basic computational model: limited amount of memory
  • example: controller for an automatic door
slide-2
SLIDE 2

Finite Automata

[Section 1.1]

Formal definition: A finite automaton (FA) is a 5-tuple (Q,Σ,δ,q0,F), where

  • Q is a finite set of states
  • Σ is a (finite) alphabet
  • δ:QxΣ  Q is the transition function
  • q0 ∈ Q is the start state
  • F ⊆ Q is the set of accept states

Pictorial representation: state diagram

slide-3
SLIDE 3

Finite Automata

[Section 1.1]

Formal definition: A finite automaton (FA) is a 5-tuple (Q,Σ,δ,q0,F), where

  • Q is a finite set of states
  • Σ is a (finite) alphabet
  • δ:QxΣ  Q is the transition function
  • q0 ∈ Q is the start state
  • F ⊆ Q is the set of accept states

Pictorial representation: state diagram

slide-4
SLIDE 4

Finite Automata

[Section 1.1]

Another (more abstract) example:

  • accept all strings over {0,1} that start with 1 and end with 0
slide-5
SLIDE 5

FA: computation & language

[Section 1.1]

Let M=(Q,Σ,δ,q0,F) be a FA. The language of M (accepted / recognized by M) is L(M). Formally: need the definition of computation: M accepts w=w1w2…wn if there exist states r0,r1,…,rn in Q such that

  • r0 = ?
  • δ
  • rn

A language is regular if there exists a FA that recognizes it.

slide-6
SLIDE 6

Designing FAs

[Section 1.1]

Examples – languages over {0,1} consisting of strings:

  • with odd number of 1’s
  • that contain 001 as a substring
  • that are even length and do not contain 00 as a substring

A language that cannot be accepted by a FA?

slide-7
SLIDE 7

Designing FAs

[Section 1.1]

A language that cannot be accepted by a FA?

slide-8
SLIDE 8

Regular operations

[Section 1.1]

Let A and B be languages. The following three language

  • perations are called the regular operations:
  • union: A ∪ B
  • concatenation: A.B
  • star: A*

The natural numbers are closed under multiplication but not division. What about the class of regular languages ?

slide-9
SLIDE 9

Regular languages are closed under …

[Section 1.1]

Thm 1.25: The class of regular languages is closed under the union operation.

slide-10
SLIDE 10

Regular languages are closed under …

[Section 1.1]

Thm 1.25: The class of regular languages is closed under the union operation.

slide-11
SLIDE 11

Regular languages are closed under …

[Section 1.1]

Thm 1.26: The class of regular languages is closed under the concatenation operation.