Lecture: DFA and Regular Languages (Vocabulary)

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/29

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key terms from the lecture notes on DFAs, regular languages, and related concepts.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

30 Terms

1
New cards

Deterministic Finite Automata (DFA)

A finite automaton where, for every state and input symbol, there is exactly one next state; computes a single path for each input and either accepts or rejects.

2
New cards

Finite Automaton

A theoretical machine with finite memory used to recognize patterns; can be deterministic (DFA) or nondeterministic (NFA).

3
New cards

Alphabet (Σ)

A finite set of symbols from which input strings are formed and that appear in the automaton's transitions.

4
New cards

State (Q)

A configuration or condition of the automaton; elements of the finite set of states it can be in.

5
New cards

Start State (q0)

The state in which computation begins for every input string.

6
New cards

Accept State / Final State (F)

State(s) in which, if the machine ends after reading the input, the string is accepted.

7
New cards

Transition Function (δ)

The function that maps a state and an input symbol to the next state: δ: Q × Σ → Q.

8
New cards

Language recognized by a machine L(M)

The set of strings over Σ that M accepts; the language described by the machine.

9
New cards

Regular Language

A language that can be recognized by some finite automaton (or described by a regular expression).

10
New cards

String

A finite sequence of symbols drawn from the alphabet Σ.

11
New cards

epsilon (ε)

The empty string, a string of length zero.

12
New cards

Substring 11

A language A = { w | w contains the substring 11 }; a regular language example.

13
New cards

Even number of 1s language

The language B = { w | w has an even number of 1s }; regular and recognizable by a parity-tracking DFA.

14
New cards

Equal number of 0s and 1s language

The language C = { w | w has an equal number of 0s and 1s }; not regular and not recognizable by any DFA.

15
New cards

5-tuple DFA definition

A DFA is defined as M = (Q, Σ, δ, q0, F), a 5-tuple consisting of states, alphabet, transition function, start state, and accept states.

16
New cards

Universe (Σ*)

'Σ*' is the set of all strings over the alphabet Σ; used as the universal set for operations like complement.

17
New cards

Complement (of a language)

The set of strings over Σ that are not in the language, relative to a fixed universe (often Σ*).

18
New cards

Regular Expressions

A notation for describing regular languages; regular languages are closed under operations like union and concatenation.

19
New cards

Memory in DFA

DFAs have finite memory (finite number of states) and cannot remember arbitrary-length strings or perform unbounded counting.

20
New cards

DFA Design

The process of constructing a DFA by determining what information to remember about the input and how states reflect that information (e.g., parity).

21
New cards

Parity (even/odd)

A property used in DFA design to track evenness or oddness of counts (e.g., number of 1s read so far).

22
New cards

Σ = {0,1}

A common binary alphabet used in many DFA examples.

23
New cards

Accepting a string

Process where, after reading the entire input, the machine ends in an accept state so the string is in the language L(M).

24
New cards

Nonregular Language

A language that cannot be recognized by any DFA; often requires unbounded memory to decide.

25
New cards

M2 (even number of 1s)

A two-state DFA that tracks the parity of the number of 1s read; 1 toggles parity, 0 leaves parity unchanged.

26
New cards

M3 (starts and ends with same symbol)

A DFA with multiple states that recognizes languages like C = { w | w starts and ends with the same symbol }; an example of a regular language.

27
New cards

E2 and E3 (complementation example)

Languages E2 and E3 used to illustrate taking complements relative to a universe; E2 recognizes the complement of E3 with respect to Σ*.

28
New cards

Closure under union

Regular languages are closed under union: the union of two regular languages is regular.

29
New cards

Closure under concatenation

Regular languages are closed under concatenation: the concatenation of two regular languages is regular.

30
New cards

DFA Formal Definition

A DFA is defined as M = (Q, Σ, δ, q0, F); Q is finite, Σ is finite, δ is the transition function, q0 is the start state, F is the set of accept states.