Automata and complexity theory

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

1/76

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:21 PM on 6/15/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

77 Terms

1
New cards

In formal language theory, what are the two criteria for a set of symbols to be considered an alphabet ($\Sigma$)?

It must be finite and non-empty.

2
New cards

What is the result of raising any alphabet to the power of zero ($\Sigma^0$)?

The set containing only the empty string ${\lambda}$ (or ${\epsilon}$).

3
New cards

The set of all possible non-empty strings formed from an alphabet is known as the _____.

Positive Closure (or Kleene Plus)

4
New cards

What is the mathematical definition of the Kleene Plus ($\Sigma^+$)?

$\Sigma^+ = \Sigma^1 \cup \Sigma^2 \cup \Sigma^3 \dots$

5
New cards

Term: Kleene Closure (Kleene Star)

Definition: The set of all possible strings of any discrete length, from zero to infinity, generated using symbols in $\Sigma$.

6
New cards

How is the Kleene Star ($\Sigma^*$) mathematically related to the Kleene Plus ($\Sigma^+$)?

$\Sigma^* = \Sigma^0 \cup \Sigma^+$

7
New cards

Which class of languages requires zero auxiliary memory and only tracks repeating patterns or static counts?

Regular Languages

8
New cards

Name the weakest machines capable of recognising Regular Languages.

Deterministic Finite Automata (DFA) or Nondeterministic Finite Automata (NFA).

9
New cards

What memory structure distinguishes a Pushdown Automaton (PDA) from a Finite Automaton?

A single infinite Last-In, First-Out (LIFO) Stack.

10
New cards

The language $L = {a^n b^n \mid n \ge 0}$ belongs to which language category?

Context-Free Languages (CFL).

11
New cards

Why is a stack sufficient to recognise the language of even-length palindromes $L = {ww^R \mid w \in {a, b}^*}$?

The second half of the string matches the reverse of the first half, fitting the LIFO structure.

12
New cards

Which automaton is used to recognise Context-Sensitive Languages (CSL)?

Linear Bounded Automaton (LBA).

13
New cards

What is the physical tape restriction of a Linear Bounded Automaton?

The tape length is strictly limited to the size of the input string.

14
New cards

The language $L = {a^n b^n c^n \mid n \ge 0}$ cannot be recognised by a PDA because it involves _____ dependent variables.

Three

15
New cards

What is the term for the most powerful abstract computational model that recognises Recursively Enumerable Languages?

Turing Machine.

16
New cards

Which language class contains the Halting Problem?

Recursively Enumerable Languages.

17
New cards

How does the computational power of a multi-tape Turing Machine compare to a standard single-tape Turing Machine?

They have identical computational power and recognise the same languages.

18
New cards

What is the primary utility of a Multi-tape Turing Machine over a single-tape model?

It drastically reduces execution time overhead for certain tasks.

19
New cards

Matching the copy language $L = {ww}$ takes $O(n^2)$ time on a single-tape TM, but how much time on a multi-tape TM?

$O(n)$

20
New cards

In a Multi-dimensional Turing Machine, in which directions can the read-write head move?

Up, Down, Left, or Right.

21
New cards

How is a Nondeterministic Turing Machine (NTM) simulated by a deterministic TM?

By using a breadth-first search tree of all possible execution paths.

22
New cards

Concept: Universal Turing Machine (UTM)

Definition: An abstract machine that takes an encoded TM description and an input string to simulate that TM's execution.

23
New cards

What defines an 'Off-line' Turing Machine?

It separates data from working memory using a read-only input tape and a separate read-write storage tape.

24
New cards

A language class is 'closed' under an operation if performing that operation on members of the class results in _____.

A language that remains within the same class.

25
New cards

Are Context-Free Languages closed under intersection?

No.

26
New cards

Are Context-Free Languages closed under complementation?

No.

27
New cards

What is the result of intersecting a Context-Free Language with a Regular Language?

The result is guaranteed to be a Context-Free Language.

28
New cards

Recursively Enumerable languages are NOT closed under which specific logical operation?

Complement.

29
New cards

If a language $L$ and its complement $\bar{L}$ are both recursively enumerable, what does $L$ become?

A Recursive (decidable) language.

30
New cards

While computability theory focuses on whether a problem is solvable, _____ theory focuses on the resources required.

Complexity

31
New cards

How many components (tuples) define a DFA or NFA?

Five (5-tuple).

32
New cards

In the DFA 5-tuple $M = (Q, \Sigma, \delta, q_0, F)$, what does $Q$ represent?

A finite, non-empty set of internal states.

33
New cards

What is the formal transition function definition for a DFA?

$\delta : Q \times \Sigma \to Q$

34
New cards

How does the transition function for an NFA ($\delta : Q \times (\Sigma \cup {\epsilon}) \to P(Q)$) differ from a DFA?

It maps to the power set of states, allowing for multiple, zero, or epsilon transitions.

35
New cards

How many components define a Pushdown Automaton (PDA)?

Seven (7-tuple).

36
New cards

In a PDA's 7-tuple, what is the meaning of the symbol $\Gamma$ (Gamma)?

The stack alphabet (symbols allowed to be pushed onto the stack).

37
New cards

What does $Z_0$ represent in the PDA 7-tuple definition?

The designated start stack symbol (bottom-of-stack anchor).

38
New cards

In the PDA transition function $\delta : Q \times (\Sigma \cup {\epsilon}) \times \Gamma \to P(Q \times \Gamma^)$, what does the $\Gamma^$ output represent?

The string of symbols that replaces the top character of the stack.

39
New cards

How many components define a Linear Bounded Automaton (LBA)?

Eight (8-tuple).

40
New cards

In an LBA definition, what is the purpose of the symbols $\kappa$ (Cent) and $\$$?

They act as boundary markers for the left and right ends of the input tape.

41
New cards

What is the formal definition of the tape alphabet $\Gamma$ in an LBA or TM relative to the input alphabet $\Sigma$?

$\Sigma \subset \Gamma$ (the tape alphabet includes input symbols and additional workspace symbols).

42
New cards

The standard single-tape Turing Machine is formally defined as a _____-tuple.

Seven (7-tuple).

43
New cards

In the Turing Machine 7-tuple, what does the symbol $B$ represent?

The blank symbol that fills the infinite expanse of the tape.

44
New cards

The Turing Machine transition function $\delta : Q \times \Gamma \to Q \times \Gamma \times {L, R}$ dictates three actions: update state, write symbol, and _____.

Shift the tape head one step Left or Right.

45
New cards

Which language category is closed under Union, Concatenation, and Kleene Star, but NOT Intersection or Complement?

Context-Free Languages (CFL).

46
New cards

Under which operation are Regular, CFL, CSL, and RE languages all consistently closed?

Union (or Concatenation, or Kleene Star).

47
New cards

Which language class is only recognised by a machine with a LIFO memory structure?

Context-Free Languages (CFL).

48
New cards

True or False: Nondeterminism increases the language-recognition power of a Pushdown Automaton.

True (implied by the transition function mapping to a power set).

49
New cards

True or False: Nondeterminism increases the language-recognition power of a Turing Machine.

False.

50
New cards

Concept: Finite Automata

Definition: The simplest machines with zero auxiliary memory, tracking patterns via a fixed number of states.

51
New cards

What is the 'Profile' of a DFA's transition complexity?

It reads a symbol and changes state.

52
New cards

What is the 'Profile' of a PDA's transition complexity?

It reads a symbol, pops from the stack, changes state, and pushes to the stack.

53
New cards

What is the 'Profile' of a TM's transition complexity?

It reads a cell, overwrites the cell, and moves the head Left or Right.

54
New cards

Which machine uses 'Linear Bounded' space for its tape?

Linear Bounded Automaton (LBA).

55
New cards

In the LBA tuple, what is the relation between the input alphabet and the tape alphabet?

$\Sigma \subset \Gamma$.

56
New cards

Which specific machine is the theoretical blueprint for modern programmable computers?

Universal Turing Machine (UTM).

57
New cards

Context-Sensitive Languages handle three or more dependent variables or _____ matching structures.

Out-of-order

58
New cards

Why does the intersection of $L_1 = {a^n b^n c^m}$ and $L_2 = {a^m b^n c^n}$ prove CFL intersection failure?

The intersection is $a^n b^n c^n$, which requires tracking three dependent variables and is not context-free.

59
New cards

Is the blank symbol $B$ allowed to be part of the input alphabet $\Sigma$ in a Turing Machine?

No ($B \in \Gamma$ but $B \notin \Sigma$).

60
New cards

Which machine handles 'nested tracking' or 'matching pairs'?

Pushdown Automaton (PDA).

61
New cards

What is the highest level of the language hierarchy mentioned, described by unrestricted grammars?

Recursively Enumerable Languages.

62
New cards

What is the transition function output for an LBA?

$Q \times \Gamma \times {L, R}$.

63
New cards

Which language class is recognised by a Turing Machine with a restricted tape length?

Context-Sensitive Languages (CSL).

64
New cards

What is the purpose of the 'State Register' in a basic Turing Machine?

To track the current internal control state of the machine.

65
New cards

In a Multi-head TM, when does the machine make a state transition?

After reading the symbols under all $k$ heads simultaneously.

66
New cards

What does the symbol $F$ represent in all the defined automata tuples?

The set of final or accepting states ($F \subseteq Q$).

67
New cards

What does $q_0$ represent in all the defined automata tuples?

The designated start state ($q_0 \in Q$).

68
New cards

Are Recursively Enumerable languages closed under Intersection?

Yes.

69
New cards

Are Context-Sensitive Languages closed under Complement?

Yes.

70
New cards

Which language class is described as 'any language that can be described by a step-by-step algorithm'?

Recursively Enumerable Languages.

71
New cards

What determines the length of the strings generated from an alphabet in formal language theory?

Raising the alphabet to a mathematical power.

72
New cards

In the context of PDAs, what does 'LIFO' stand for?

Last-In, First-Out.

73
New cards

Which machine type allows for branching into parallel execution paths?

Nondeterministic Turing Machine (NTM).

74
New cards

Which closure property is true for all four language classes (Regular, CFL, CSL, RE)?

Union (or Concatenation, or Kleene Star).

75
New cards

The transition function $\delta$ is often called the _____ of the machine.

Brain

76
New cards

In a TM, what symbol fills the tape before and after the input string?

The blank symbol ($B$).

77
New cards