Computability Theory Introduction
- 29Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What are the two main halves of the course 'Introduction to the Theory of Computing'?
Computability theory (first half) and complexity theory (second half).
Or swipe the card
29 cards
What are the two main halves of the course 'Introduction to the Theory of Computing'?
Computability theory (first half) and complexity theory (second half).
What is the main question addressed by computability theory?
What can you compute with an algorithm in principle?
Give an example of a problem that is impossible to solve algorithmically, as mentioned in the lecture.
Determining whether a given program meets a specification (automatic verification) is impossible in general.
What is the focus of complexity theory?
What can be solved in practice, i.e., within a reasonable amount of time or space.
What is the P versus NP problem?
It asks whether every problem whose solution can be quickly verified (NP) can also be quickly solved (P).
What is a finite automaton?
A simple mathematical model of a computer with a finite amount of memory, represented by states and transitions.
What are the components of a finite automaton diagram?
States (circles), transitions (arrows with labels), a start state (arrow from nowhere), and accepting states (double circles).
How does a finite automaton compute on an input string?
It starts at the start state, reads symbols one by one, follows transitions accordingly, and after reading all symbols, accepts if it ends in an accepting state; otherwise rejects.
What is the language of a finite automaton M?
The set of all strings that M accepts, denoted L(M).
What does it mean for a finite automaton to recognize a language?
It recognizes language A if L(M)=A; i.e., it accepts exactly the strings in A and rejects all others.
In the example automaton M1 (with states q1, q2, q3), which strings are accepted?
All strings that contain the substring '11' (two consecutive 1's).
What is the formal definition of a finite automaton?
A 5-tuple (Q,Σ,δ,q0,F) where: Q is a finite set of states, Σ is the input alphabet, δ:Q×Σ→Q is the transition function, q0∈Q is the start state, F⊆Q is the set of accept states.
How is the transition function δ represented in a finite automaton?
As a function that takes a state and an input symbol and returns the next state, often given as a table or diagram.
What is the formal definition of acceptance for a finite automaton on input w=w1w2…wn?
There exists a sequence of states r0,r1,…,rn such that: r0=q0, δ(ri−1,wi)=ri for i=1,…,n, and rn∈F.
What is the empty string?
The string of length 0, denoted by ε.
What is a regular language?
A language is regular if there exists some finite automaton that recognizes it.
Is the language of strings with an equal number of 0's and 1's regular?
No, it is not a regular language.
What are the three regular operations on languages?
Union (A∪B), concatenation (A∘B), and star (A∗).
What is the result of concatenating languages A={good,bad} and B={boy,girl}?
{goodboy,goodgirl,badboy,badgirl}
What is A∗ if A contains at least one nonempty string?
An infinite language consisting of all finite concatenations of strings from A, including the empty string.
How is the star operation defined formally?
A∗={w1w2…wk∣k≥0 and each wi∈A}
What is a regular expression?
An expression built from atomic elements (alphabet symbols, ε, ∅) using union, concatenation, and star operations.
What language does the regular expression Σ∗1 describe?
All strings that end with a 1.
What is the relationship between finite automata and regular expressions?
They are equivalent in power; they describe exactly the same class of languages—the regular languages.
What does it mean for a class of languages to be closed under an operation?
If you apply the operation to languages in the class, the result is also in the class.
State the theorem: The class of regular languages is closed under union.
If A1 and A2 are regular languages, then A1∪A2 is also regular.
Describe the product construction used to prove closure under union.
Given DFAs M1=(Q1,Σ,δ1,q1,F1) and M2=(Q2,Σ,δ2,q2,F2), construct M=(Q,Σ,δ,q0,F) where: Q=Q1×Q2, q0=(q1,q2), δ((r1,r2),a)=(δ1(r1,a),δ2(r2,a)), and F=(F1×Q2)∪(Q1×F2).
If M1 has k1 states and M2 has k2 states, how many states does the product automaton for union have?
k1×k2 states.
Why is the naive approach to closure under concatenation (connecting accept states of first DFA to start of second) flawed?
It does not work because the optimal split point of the input may not be where the first DFA first accepts; you might need to wait longer.

Ask anything
We've read this whole study set, so questions about it get the best answers.