Finite Automata

5.0(1)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

34 Terms

1
New cards

automaton/automata

a mathematical model of a computing device

2
New cards

languages

sets of strings

3
New cards

strings

finite sequences of characters

4
New cards

characters

individual symbols

5
New cards

alphabets

sets of characters

6
New cards

modeling memory & algorithm

machines that receive input, input provided sequentially, input causes the device to change configuration, we read off an answer

7
New cards

finite automata

has a finite number of states and memory, needs a start state, each state is linked by transitions - has accepting states that say YES and rejecting states that say NO to the input

8
New cards

alphabet (Σ = {…})

finite, nonempty set of characters/symbols

9
New cards

a string over alphabet (Σ)

a finite sequence of characters from the alphabet Σ

10
New cards

empty string (ε)

no characters

11
New cards

language over Σ

a set (L) of strings over Σ, including ε (said as “L is a language over Σ when L ⊆ Σ*”)

12
New cards

Σ*

the set of all strings of letters in Σ

13
New cards

language of A (ℒ(A)}

the set of strings over Σ that A accepts: ℒ(A) = { w ∈ Σ* | A accepts w }

14
New cards

DFA

Deterministic Finite Automaton: A DFA is defined relative to some alphabet Σ. For each state, there is EXACTLY ONE transition defined for each symbol in Σ (Deterministic). There is a unique start state. There are zero or more accepting states.

15
New cards

regular language

A language L when there exists a DFA D such that ( ℒ(D)) = L. (If L is a language and ( ℒ(D)) = L, we say that D recognizes the language L)

16
New cards

complement of a language (L bar)

Given a language L ⊆ Σ*, a complement is the language of all strings in Σ* that aren't in original language L. | L = Σ* - L

17
New cards

NFA

Nondeterministic Finite Automaton - there may be any number of transitions defined for each symbol in Σ, plus any number of ε-transitions. Unique start state. Zero or more accepting states. EXTRA: nondeterministic machines are magical where they can guess choices that lead to an accepting state

18
New cards

model of computation is deterministic

when there is exactly one choice that can make

19
New cards

model of computation is nondeterministic

if the computing machine has a finite number of choices available to make at each point, possibly including zero.

20
New cards

ε-transition

doesn’t consume any input! “free lunch”

21
New cards

NFA vs DFA

an NFA is a DFA that can be in many different states. at each point, when the NFA follows a transition, it tries all options at the same time. it accepts if any of the states are accepting at the end. if not, rejects. ANY LANGUAGE ACCEPTED BY A DFA CAN BE ACCEPTED BY AN NFA. EVERY DFA IS AN NFA!! if you can build an NFA, you can build a DFA for it.

22
New cards

subset construction

the procedure to turn an NFA into a DFA for a language L

23
New cards

Union L1 and L2

Theorem: If L₁ and L₂ are regular, so is L₁ ∪ L₂.

24
New cards

Intersection L1 and L2

Theorem: If L₁ and L₂ are regular, so is L₁ ∩ L₂.

25
New cards
26
New cards
27
New cards
28
New cards
29
New cards
30
New cards
31
New cards
32
New cards
33
New cards
34
New cards