Computability Theory Introduction
- 36Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What are the two main halves of the course Introduction to the Theory of Computing?
36 questions
- 1
What are the two main halves of the course Introduction to the Theory of Computing?
Model answer
Computability theory, which studies what can be computed in principle, and complexity theory, which studies what can be computed in practice within reasonable resources.
Explanation
The course is divided into two halves: first computability theory (decidable problems) and then complexity theory (efficient solvability).
- 2
Give one example of a problem that is impossible to solve with an algorithm, as mentioned in the lecture.
Model answer
An automatic verifier that checks whether a program meets a given specification is impossible in general. (Alternatively, determining mathematical truth.)
Explanation
The lecture states that both automatic program verification and deciding mathematical truth are undecidable problems.
- 3
What is the focus of complexity theory?
Model answer
Complexity theory examines what problems can be solved in a reasonable amount of time, i.e., efficiently in practice.
Explanation
While computability theory asks what can be solved in principle, complexity theory asks what can be solved with limited resources like time and space.
- 4
What is the factoring problem and why is it significant?
Model answer
The factoring problem asks whether a large integer can be factored into its prime factors quickly. It is significant because its difficulty underlies the RSA cryptosystem, and it is unknown whether a fast algorithm exists.
Explanation
The lecture mentions factoring as a classic example of a problem whose complexity is unknown, with connections to cryptography.
- 5
What is the P versus NP problem?
Model answer
P vs NP is a major open problem that asks whether every problem whose solution can be verified quickly (NP) can also be solved quickly (P).
Explanation
The lecture introduces P vs NP as a central question in complexity theory that the course will discuss extensively.
- 6
Name two measures of complexity discussed in the course.
Model answer
Time and space (memory).
Explanation
The lecture mentions time and space as the main resource measures for computation.
- 7
What additional models of computation are mentioned in the complexity theory part?
Model answer
Probabilistic and interactive computation.
Explanation
The lecture lists these as models that will be introduced in the second half of the course.
- 8
Define a finite automaton as a 5-tuple. List its five components.
Model answer
A finite automaton is a 5-tuple (Q,Σ,δ,q0,F) where Q is a finite set of states, Σ is a finite alphabet, δ:Q×Σ→Q is the transition function, q0∈Q is the start state, and F⊆Q is the set of accept states.
Explanation
This formal definition captures all the necessary components of a deterministic finite automaton (DFA).
- 9
In a state diagram for a finite automaton, what do the circles, arrows, the arrow coming from nowhere, and double circles represent?
Model answer
Circles represent states, arrows represent transitions, the arrow from nowhere indicates the start state, and double circles indicate accept states.
Explanation
These conventions allow a visual representation of the automaton's structure.
- 10
Describe the computation process of a finite automaton on an input string.
Model answer
The automaton begins in the start state, reads symbols of the input one by one, and for each symbol transitions to a new state according to δ. After processing all symbols, if the current state is an accept state, the input is accepted; otherwise, it is rejected.
Explanation
This process defines how the automaton determines whether to accept or reject an input string.
- 11
What is the language of a finite automaton M?
Model answer
The language L(M) is the set of all strings that M accepts.
Explanation
This is the fundamental concept connecting automata to languages.
- 12
What does it mean to say that a finite automaton M recognizes a language A?
Model answer
It means L(M)=A, i.e., M accepts exactly the strings in A.
Explanation
Recognition is another way of saying that the automaton's language equals the given language.
- 13
In the transition function δ:Q×Σ→Q, what does δ(q,a)=r indicate?
Model answer
It indicates that when the automaton is in state q and reads symbol a, it moves to state r.
Explanation
This is the meaning of the transition function in the automaton's operation.
- 14
What is the role of the start state q0 in a finite automaton?
Model answer
The start state is the state in which the automaton begins its computation before reading any input.
Explanation
All computations start from this designated state.
- 15
Can a finite automaton have multiple accept states?
Model answer
Yes, the set F can contain zero or more accept states.
Explanation
The definition allows any subset of states to be accept states, including none.
- 16
What is the output of a finite automaton for a given input string?
Model answer
It either accepts or rejects the input string.
Explanation
The automaton's decision is binary: accept (if final state is in F) or reject (otherwise).
- 17
What is a regular language?
Model answer
A language is regular if there exists some finite automaton that recognizes it.
Explanation
This definition sets the class of languages that can be described by finite automata.
- 18
Give an example of a regular language from the lecture.
Model answer
The language of strings over {0,1} that contain the substring 11 is regular (recognized by automaton M1).
Explanation
This language is recognized by the automaton shown in the lecture.
- 19
Is the language of strings with an even number of 1's regular? Explain briefly.
Model answer
Yes, it is regular; a two-state automaton tracking parity of 1's can recognize it.
Explanation
The lecture states that it is regular and suggests designing a two-state automaton for it.
- 20
Is the language of strings with an equal number of 0's and 1's regular?
Model answer
No, it is not regular.
Explanation
The lecture explicitly states that this language is not regular, and its proof will come later.
- 21
What is the empty string? How does it differ from the empty language?
Model answer
The empty string ε is a string of length 0. The empty language ∅ is a set containing no strings. They are different types: ε is a string, ∅ is a set.
Explanation
The lecture warns not to confuse these two objects as they are of different types.
- 22
Define the union operation on languages.
Model answer
The union of languages A and B, denoted A∪B, is the set of strings that are in A or in B (or both).
Explanation
Union is one of the three regular operations.
- 23
Define the concatenation operation on languages.
Model answer
The concatenation of A and B, denoted A∘B or AB, is the set of strings of the form xy where x∈A and y∈B.
Explanation
Concatenation combines strings from two languages sequentially.
- 24
Define the star operation on a language A.
Model answer
A∗ is the set of all strings that can be formed by concatenating zero or more strings from A. It includes the empty string ε.
Explanation
The star operation allows any finite number of concatenations, including zero.
- 25
Given A={good,bad} and B={boy,girl}, list the elements of A∪B, A∘B, and A∗.
Model answer
A∪B={good,bad,boy,girl}; A∘B={goodboy,goodgirl,badboy,badgirl}; A∗ includes ε, good, bad, goodgood, goodbad, badgood, badbad, etc. (infinite).
Explanation
These examples illustrate how the operations work on finite languages.
- 26
If A contains a non-empty string, what can be said about A∗?
Model answer
A∗ is infinite. If A=∅ or A={ε}, then A∗={ε}.
Explanation
This follows from the ability to repeatedly concatenate non-empty strings to produce infinitely many distinct strings.
- 27
What are the atomic building blocks of regular expressions?
Model answer
Symbols from the alphabet, the empty string ε, and the empty language ∅.
Explanation
These are the most basic elements from which more complex regular expressions are built.
- 28
What does the regular expression Σ∗ represent?
Model answer
Σ∗ represents the language of all possible strings over the alphabet Σ.
Explanation
The star operation applied to Σ (which is the union of all symbols) gives all finite strings.
- 29
Write a regular expression for the language of strings over {0,1} that end with a 1.
Model answer
(0∪1)∗1 or Σ∗1.
Explanation
This expression says: any string followed by a final 1.
- 30
Write a regular expression for the language of strings that contain the substring 11.
Model answer
(0∪1)∗11(0∪1)∗ or Σ∗11Σ∗.
Explanation
This matches any string that has 11 somewhere.
- 31
State the theorem about regular languages and the union operation.
Model answer
The class of regular languages is closed under union: if A1 and A2 are regular, then A1∪A2 is also regular.
Explanation
This is the first closure property proved in the lecture.
- 32
Describe the product construction used to prove closure under union.
Model answer
Given DFAs M1 and M2, construct a new DFA M whose states are pairs of states from M1 and M2. M simulates both machines in parallel: on input, it transitions both components according to their transition functions. M accepts if either component is in an accept state.
Explanation
This construction allows simultaneous simulation of both automata.
- 33
In the product construction, what are the start state and accept states of the resulting automaton?
Model answer
The start state is the pair of the start states of M1 and M2. The accept states are all pairs where at least one component is an accept state.
Explanation
This ensures the new automaton accepts if either original automaton would accept.
- 34
If M1 has k1 states and M2 has k2 states, how many states does the product automaton have?
Model answer
k1×k2 states.
Explanation
The number of pairs is the product of the sizes.
- 35
Why does the naive approach for closure under concatenation (connecting accept states of M1 to the start of M2) fail?
Model answer
It fails because the correct split point of the input into two parts is unknown in advance; the naive approach commits to the first place M1 accepts, which may not lead to acceptance by M2, while a later split might work.
Explanation
This illustrates the need for nondeterminism or more sophisticated constructions.
- 36
Is the class of regular languages closed under concatenation?
Model answer
Yes, but the proof requires a different technique (nondeterminism) as hinted in the lecture.
Explanation
The lecture states that concatenation closure is true and will be proven later.

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