Finite Languages & Automata

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/32

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:02 PM on 4/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

33 Terms

1
New cards

Sequence

A potentially infinite, ordered list of objects, separated by commas.

Example: 4, 2, 3, 4

2
New cards

Tuple

A finite sequence surrounded by parentheses.

Example: (4, 2, 3, 4)

3
New cards

String (or Word)

A finite sequence of characters from a given alphabet.

4
New cards

Alphabet

A non-empty set of symbols/letters, denoted Σ or Γ

5
New cards

Substring

A sequence of symbols appearing contiguously within a string.

6
New cards

Concatenation

Operation joining 2 strings together - xy.

7
New cards

KIeene Star

Operation, generating all possible finite strings with a given alphabet.

8
New cards

Deterministic Finite Automaton (DFA)

A 5-tuple (Q, Σ, δ, q0, F)

  • Q = Set of states

  • Σ = Alphabet

  • δ = Transition function

    • δ: Q x Σ → Q

  • q0 = Start state

  • F = Set of accepting states.

9
New cards

DFA Acceptance Conditions

Let M = (Q, Σ, δ, q0, F) be a deterministic finite automaton and let w = w1 ... wn be a string where wi ∈ Σ. The automaton M accepts w if a sequence of states r0, ... , rn ∈ Q exists such that:

  1. r0 = q0 (sequence begins at the start state)

  2. δ(ri, wi+1) = ri+1 for 0 <= i < n (each symbol transitions to the next state)

  3. rn ∈ F (accepts at the end)

10
New cards

Automaton recognises a language

For automaton M and language A, if A = {w | M accepts w}, i.e. if A = L(M).

11
New cards

Regular Language

A language recognised by a DFA, NFA, or Regular Expression.

12
New cards

Formal Definition of Computation of Automata

For a given automaton M, and input string w, the sequence of states that M transitions through while processing w, starting from the start state and ending at an accepting state.

13
New cards

Nondeterministic Finite Automaton (NFA)

A 5-tuple (Q, Σ, δ, q0, F)

  • Q = Set of states

  • Σ = Alphabet

  • δ = Transition function

    • δ: Q x Σε → P(Q)

  • q0 = Start state

  • F = Set of accepting states.

14
New cards

Power Set Construction Method (NFA to DFA)

Draw power set of states

DFA start = NFA start + epsilon transitions

For each element in each state, write where each one can go, e.g. ‘q0 can go to q1 or q2 via 0, nowhere via 1’.

After writing each possible transition, group them up to form transitions

15
New cards

Language Operations

Complement

Union

Intersection

Concatenation

Kleene Star

16
New cards

Complement of Language A

{w | w ∉ A}

17
New cards

Union of Languages A and B

{w | w ∈ A or w ∈ B}

18
New cards

Intersection of Languages A and B

{w | w ∈ A and w ∈ B}

19
New cards

Concatenation of Languages A and B

{xy | x ∈ A and y ∈ B}

20
New cards

Kleene Star of Language A

{x1×2 … ×k | k >= 0 and xi ∈ A}

e.g.

if A = {a, b},

A* = {ε, a, b, aa, ab, ba, bb, aaa, …}

21
New cards

Closure Definition (for a language class)

A language class is closed with respect to a k-ary operation if when applying the operation to k languages, the resulting language is also in the class.

22
New cards

Method to prove closure

Decide what to construct based on language class

  • Regular → DFA/NFA

  • Context-Free → Pushdown Automaton

Construct tuple using the given languages.

23
New cards

Product Automaton

An automaton in which the set of states is the Cartesian Product of the constituent automata.

24
New cards

Regular Expression

  • a, where a ∈ Σ

  • ε (empty)

  • R1 ∪ R2

  • R1 . R2

  • R*

25
New cards

Regular Expressions and Regular Languages

A language is regular if and only if a regular expression describes it.

26
New cards

Generalised Nondeterministic Finite Automaton (GNFA)

NFA that allows transitions with regular expressions.

A 5-tuple where the transition function is defined as

δ : (Q\ {qaccept) × (Q \ {qstart}) → R})

So transitions are regular expressions, not allowed into start state or out of accept state.

27
New cards

Converting DFA to Regular Expression method

  • Add a new start and accept state.

  • Transfer starting and ending transitions, e.g.

    • qstart -ε→ q0

    • qstart -∅→ qnot_start

    • q1 -ε→ qend

  • Collapse each state until only one transition remains using, for every other transition:

    • (input)(loop) ∗ (output) ∪ (across)

28
New cards

Pumping Lemma (Regular Languages)

If A is a regular language, any string, s, of at least pumping length, p, from A, can be split into s = xyz, where:

  • For i >= 0, xyiz ∈ A

  • |y| > 0

  • |xy| > p

29
New cards

Context-free Grammar

A 4-tuple (V, Σ, R, S), where:

  • V is the set of variables

  • Σ is the set of terminals

  • R is the set of rules, each rule being a variable mapping to variables and/or terminals

  • S is the start variable

30
New cards

Context-free Language

A language that is generated by a context-free grammar.

The set of strings eventually derived from the start variable.

31
New cards

Chomsky Normal Form (CNF)

A form for a context-free grammar where all rules are of the form A → BC or A → a, except B and C are not the start variable, and S → ε is permitted.

32
New cards

Pushdown Automaton (PDA)

A 6-tuple (Q, Σ, Γ, δ, q0, F), where:

  • Q is a finite set of states

  • Σ is the input alphabet

  • Γ is the stack alphabet

  • δ: Q x Σ x Γϵ → P(Q × Γϵ) is the transition function

  • q0 is the start state

  • F is the set of accepting states.

33
New cards

Pumping Lemma (Context-free Languages)

If A is a context-free language, any string, s, of at least pumping length, p, from A, can be split into s = uvxyz, where:

  • For i >= 0, uvixyiz ∈ A

  • |vy| > 0

  • |vxy| <= p