Chapter 3: Regular Expression and Regular Languages

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

1/22

flashcard set

Earn XP

Description and Tags

This set of flashcards covers vocabulary and foundational concepts of Regular Expressions and Regular Languages, including operations, grammar types, and the Pumping Lemma.

Last updated 5:58 AM on 5/31/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

Regular Languages

A language for which there exists a finite automata; all languages are either regular or non-regular, but never both.

2
New cards

Non-regular languages

Languages that are not accepted by a finite automata, often because they require string comparisons, such as L = \text{{}a^nb^n,n ≥ 0\text{}}.

3
New cards

Concatenation of Strings

Given strings s=a1ans = a_1 … a_n and t=b1bmt = b_1 … b_m, their concatenation is defined as st=a1anb1bmst = a_1 … a_nb_1 … b_m.

4
New cards

Concatenation of Languages (L1L2L_1L_2)

The set of strings formed by taking any string from L1L_1 and any string from L2L_2, defined as L_1L_2 = \text{{}st: s ∈ L_1, t ∈ L_2\text{}}.

5
New cards

Union of Languages (L1L2L_1 ∪ L_2)

The set of all strings that are contained in either language L1L_1 or language L2L_2.

6
New cards

Star (Kleene closure) of LL

The set of all strings made up of zero or more chunks from LL, denoted as L=L0L1L2L^* = L^0 ∪ L^1 ∪ L^2 ∪ …; it is always infinite and always contains the empty string εε.

7
New cards

Regular operations

The operations comprising union (), concatenation (), and the star operation (*).

8
New cards

Regular Expression (RE)

An algebraic way to describe languages that exactly represents the class of regular languages.

9
New cards

Basis 1 (RE Basis)

If aa is any symbol, then aa is a regular expression and L(a)=aL(a) = \text{{}a\text{}}.

10
New cards

Basis 2 (RE Basis)

εε is a regular expression, and its language is L(ε)=εL(ε) = \text{{}ε\text{}}.

11
New cards

Basis 3 (RE Basis)

is a regular expression, and its language is L()=L(∅) = ∅.

12
New cards

RE Precedence of Operators

The order of precedence is highest for the star operation (*), followed by concatenation, and then union (++, the lowest priority).

13
New cards

Closure properties of Regular languages

The class of regular languages is closed under union, concatenation, star operation, intersection, and complement.

14
New cards

Arden’s Theorem

A theorem used to find the unique solution to the equation R=P+RQR = P + RQ as R=PQR = PQ^*, provided that QQ does not include the empty string εε.

15
New cards

Formal Definition of Grammar (GG)

Defined by a four-tuple (V,T,P,S)(V, T, P, S) where VV is variables, TT is terminals, PP is production rules, and SS is the start symbol.

16
New cards

Right-Linear Grammars (RLG)

A grammar where all productions follow the form AxBA → xB or AxA → x, where xx is a string of terminals and A,BA, B are variables.

17
New cards

Left-Linear Grammars (LLG)

A grammar where all productions follow the form ABxA → Bx or AxA → x, where xx is a string of terminals and A,BA, B are variables.

18
New cards

Regular Grammar

Any grammar that is either right-linear or left-linear.

19
New cards

Chomsky Hierarchy Type 0

Unrestricted grammar.

20
New cards

Chomsky Hierarchy Type 1

Context-sensitive grammar.

21
New cards

Chomsky Hierarchy Type 2

Context-free grammar.

22
New cards

Chomsky Hierarchy Type 3

Regular Grammar.

23
New cards

Pumping Lemma for Regular Languages

A theorem used to prove a language is not regular, stating that for any regular language LL, there is a pumping length PP such that any string SLS ∈ L with SP|S| ≥ P can be split into S=xyzS = xyz where y>0|y| > 0, xyP|xy| ≤ P, and xyizLxy^iz ∈ L for all i0i ≥ 0.