Computability Theory Introduction
- 29Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary focus of computability theory?
What is the primary focus of computability theory?
29 questions
- 1
What is the primary focus of computability theory?
- A
Studying what can be computed in practice within reasonable time
- B
Analyzing the hardware limitations of modern computers
- C
Developing efficient algorithms for real-world problems
- D
Studying what can be computed in principle using algorithms
Correct answer
DStudying what can be computed in principle using algorithms
Explanation
The lecture states that computability theory asks 'what you can compute with an algorithm in principle'.
- A
- 2
Which of the following is an example of an undecidable problem mentioned in the lecture?
- A
Searching for an element in a database
- B
Determining if a program meets a given specification
- C
Sorting a list of numbers
- D
Computing the shortest path in a graph
Correct answer
BDetermining if a program meets a given specification
Explanation
The lecture gives the example of an automatic verifier that checks whether a program meets a specification, stating it is 'in principle impossible'.
- A
- 3
What is the status of computability theory as a research field according to the lecture?
- A
It is focused on quantum computing algorithms
- B
It has been replaced by complexity theory entirely
- C
It is largely closed off as a research subject because major questions were answered
- D
It is still highly active with many open problems
Correct answer
CIt is largely closed off as a research subject because major questions were answered
Explanation
The lecture says computability theory 'pretty much closed off as a research subject these days, mainly because they answered all of their big questions'.
- A
- 4
What is the main question addressed in complexity theory?
- A
What can be computed in practice within a reasonable amount of time?
- B
How to design algorithms that never make errors?
- C
What can be computed in principle?
- D
What is the theoretical minimum memory required for any computation?
Correct answer
AWhat can be computed in practice within a reasonable amount of time?
Explanation
The lecture says complexity theory looks at 'what's computable in practice' and 'things that you can solve in a reasonable amount of time'.
- A
- 5
Which famous problem connects computer science and mathematics, as discussed in the lecture?
- A
The Halting Problem
- B
The P versus NP problem
- C
The Collatz Conjecture
- D
The Riemann Hypothesis
Correct answer
BThe P versus NP problem
Explanation
The lecture mentions 'this very famous problem in the intersection of computer science and mathematics called the P versus NP problem'.
- A
- 6
What prerequisite experience does the lecture emphasize for success in the course?
- A
Extensive programming experience in multiple languages
- B
Substantial experience with mathematical theorems and proofs
- C
Familiarity with advanced calculus and linear algebra
- D
Prior knowledge of operating systems and compilers
Correct answer
BSubstantial experience with mathematical theorems and proofs
Explanation
The lecture states 'I'm expecting people to have had some prior experience, of a substantial nature, with mathematical theorems and proofs'.
- A
- 7
What is a finite automaton?
- A
A simple model representing a computer with a very small and limited amount of memory
- B
A model of computation with unlimited memory and processing power
- C
A programming language for implementing algorithms on real computers
- D
A device that accepts or rejects strings based on context-free grammars
Correct answer
AA simple model representing a computer with a very small and limited amount of memory
Explanation
The lecture introduces finite automata as 'representing a computer that has a very small amount of memory and a very limited and small amount of memory'.
- A
- 8
In a finite automaton state diagram, what do double circles represent?
- A
Non-deterministic states
- B
The starting state
- C
Accepting states
- D
States with transitions to themselves
Correct answer
CAccepting states
Explanation
The lecture says 'there are other specially-designated states called accepting states, and that's going to have to do with how the machine computes. But those are the ones that have these double circles.'
- A
- 9
How does a finite automaton determine whether to accept or reject an input string?
- A
By checking if the input length is even
- B
By counting the number of 1's and comparing to 0's
- C
By following transitions based on each symbol and checking if it ends in an accepting state
- D
By using a stack to store intermediate results
Correct answer
CBy following transitions based on each symbol and checking if it ends in an accepting state
Explanation
The lecture describes the process: start at start state, read symbols, follow transitions, and if you end at an accept state, accept; otherwise reject.
- A
- 10
What is the language of a finite automaton?
- A
The set of all possible input strings over the alphabet
- B
The set of transition symbols used by the machine
- C
The set of strings that the machine accepts
- D
The set of states that are reachable from the start state
Correct answer
CThe set of strings that the machine accepts
Explanation
The lecture says 'the language of a machine is exactly the set of strings that machine accepts'.
- A
- 11
In the example machine M1, which strings are accepted?
- A
All strings that start and end with the same symbol
- B
All strings that have an even number of 1's
- C
All strings that have no consecutive 1's
- D
All strings that contain the substring '11'
Correct answer
DAll strings that contain the substring '11'
Explanation
The lecture states that 'the only strings which are going to take you over to q3 are those strings that have a 11 appearing somewhere along the way, two consecutive 1's.'
- A
- 12
What is the formal definition of a finite automaton?
- A
A 6-tuple including a stack and input tape
- B
A 5-tuple consisting of Q, Σ, δ, q0, and F
- C
A 3-tuple consisting of states, alphabet, and transition function
- D
A 4-tuple consisting of states, transitions, start state, and accept states
Correct answer
BA 5-tuple consisting of Q, Σ, δ, q0, and F
Explanation
The lecture defines a finite automaton as 'a 5-tuple' with components Q, Σ, δ, q0, and F.
- A
- 13
What does the transition function δ specify?
- A
It maps a state and an input symbol to another state
- B
It lists the symbols in the alphabet
- C
It determines the start state of the automaton
- D
It maps a state to an accepting or rejecting output
Correct answer
AIt maps a state and an input symbol to another state
Explanation
The lecture says δ is 'a function which takes two things. ... delta is going to give a state and an alphabet symbol, and it's going to give you back a state.'
- A
- 14
How is the transition function often represented for a finite automaton?
- A
As a list of equations
- B
As a table with states on rows and input symbols on columns
- C
As a circuit diagram
- D
As a graph with weighted edges
Correct answer
BAs a table with states on rows and input symbols on columns
Explanation
The lecture shows the transition function as a table: 'if you have a state and an input alphabet, you can look up in the table where you're supposed to go.'
- A
- 15
What is the empty string?
- A
A string that consists of all zeros
- B
A language containing no strings
- C
A string of length 0
- D
A string of length 1 containing the symbol 'ε'
Correct answer
CA string of length 0
Explanation
The lecture states: 'The empty string is the string of length 0.'
- A
- 16
What is the empty language?
- A
A language with no strings
- B
A language that cannot be recognized by any finite automaton
- C
A language consisting of all strings over the alphabet
- D
A language containing only the empty string
Correct answer
AA language with no strings
Explanation
The lecture says: 'There's the empty language, which is the set with no strings.'
- A
- 17
What does it mean for a language to be regular?
- A
It contains only strings of even length
- B
It can be generated by a context-free grammar
- C
It is infinite in size
- D
There exists some finite automaton that recognizes it
Correct answer
DThere exists some finite automaton that recognizes it
Explanation
The lecture says: 'We say a language is a regular language if there's some finite automaton that recognizes it.'
- A
- 18
Which of the following languages is regular?
- A
The set of strings that are palindromes
- B
The set of strings with an equal number of 0's and 1's
- C
The set of strings with more 0's than 1's
- D
The set of strings that have an even number of 1's
Correct answer
DThe set of strings that have an even number of 1's
Explanation
The lecture gives the language of strings with an even number of 1's as a regular language that can be recognized by a two-state automaton.
- A
- 19
What is the limitation of finite automata regarding languages?
- A
They cannot recognize any infinite language
- B
They cannot handle input alphabets larger than 2 symbols
- C
They cannot recognize languages that are context-sensitive
- D
They cannot recognize languages that require counting unbounded amounts
Correct answer
DThey cannot recognize languages that require counting unbounded amounts
Explanation
The lecture gives the example of the language with equal number of 0's and 1's as not regular, implying that finite automata cannot count arbitrarily.
- A
- 20
What is the union of two languages A and B?
- A
The set of strings that are in both A and B
- B
The set of strings formed by concatenating a string from A with a string from B
- C
The set of strings that are in A or B (or both)
- D
The set of strings that are in A but not in B
Correct answer
CThe set of strings that are in A or B (or both)
Explanation
The lecture says the union of two languages is 'a collection of strings that are in either one or the other.'
- A
- 21
What is the concatenation of two languages A and B?
- A
The set of all strings over the alphabet of A and B
- B
The set of strings formed by taking a string from A and a string from B and sticking them together
- C
The set of strings that appear in both languages
- D
The set of strings that are prefixes of strings in B
Correct answer
BThe set of strings formed by taking a string from A and a string from B and sticking them together
Explanation
The lecture says concatenation: 'you're going to take a string from the first language and another string from the second language and stick them together.'
- A
- 22
What is the star operation applied to a language A?
- A
The complement of A over the same alphabet
- B
The set of all strings that have an odd number of symbols from A
- C
The set of all strings that are formed by concatenating zero or more strings from A
- D
The set of all strings that are in A repeated exactly twice
Correct answer
CThe set of all strings that are formed by concatenating zero or more strings from A
Explanation
The lecture says: 'to get a member of the star language, you're going to take a bunch of strings in the original language, A, you stick them together. Any number of members of A, you stick them together... including zero elements gives the empty string.'
- A
- 23
What does the regular expression Σ11Σ represent?
- A
All strings that end with '11'
- B
All strings that begin with '11'
- C
All strings that contain the substring '11'
- D
All strings of length at least 2
Correct answer
CAll strings that contain the substring '11'
Explanation
The lecture states: 'sigma star 11 sigma star, that is all strings that contain 11.'
- A
- 24
What is the relationship between finite automata and regular expressions?
- A
Regular expressions are more powerful than finite automata
- B
There is no known relationship between them
- C
They are equivalent in power; they describe the same class of languages
- D
Finite automata are more powerful than regular expressions
Correct answer
CThey are equivalent in power; they describe the same class of languages
Explanation
The lecture says: 'Anything you can do with a regular expression, you can also do with a finite automaton and vice versa. They are equivalent in power.'
- A
- 25
What does it mean for a class of languages to be closed under an operation?
- A
The operation cannot be applied to languages outside the class
- B
The class contains all possible languages obtainable by the operation
- C
Applying the operation to languages in the class always yields another language in the class
- D
The operation is defined only for that class
Correct answer
CApplying the operation to languages in the class always yields another language in the class
Explanation
The lecture explains closure: 'when you say a collection of objects is closed under some operation, that means applying that operation to those objects leaves you in the same class of objects.'
- A
- 26
How is the closure of regular languages under union proved?
- A
By constructing a new automaton that runs the two original automata in parallel using a product construction
- B
By converting both automata to nondeterministic finite automata
- C
By using regular expressions to represent the union directly
- D
By simulating two automata sequentially on the same input
Correct answer
ABy constructing a new automaton that runs the two original automata in parallel using a product construction
Explanation
The lecture describes the product construction: 'M is going to keep track of which state that M1 is in and which state M2 is in at any given moment ... and then at the end, you see if either one of those machines is in an accepting state.'
- A
- 27
If M1 has k1 states and M2 has k2 states, how many states does the product automaton for union have?
- A
k1 × k2
- B
k1 + k2
- C
max(k1, k2)
- D
k1^2 + k2^2
Correct answer
Ak1 × k2
Explanation
The lecture gives the answer: 'it is C, the product. Because when you look at the number of pairs of states from M1 and M2, you need all possible pairs. And so it's the number of states in M1 times the number of states in M2.'
- A
- 28
In the product construction for union, when does the product automaton accept?
- A
Only when both component automata are in accepting states
- B
When either component automaton is in an accepting state
- C
When exactly one of the component automata is in an accepting state
- D
When the first component automaton reaches an accepting state
Correct answer
BWhen either component automaton is in an accepting state
Explanation
The lecture says: 'it's going to be if either q or r is an accepting state, we're going to make this into an accepting state too.'
- A
- 29
Why does the naive approach to closure under concatenation (connecting accepting states of M1 to start of M2) fail?
- A
Because the split point of the input may not be the first time M1 accepts; a later split might be needed
- B
Because M2 must run before M1
- C
Because concatenation is not a regular operation
- D
Because finite automata cannot simulate two machines at once
Correct answer
ABecause the split point of the input may not be the first time M1 accepts; a later split might be needed
Explanation
The lecture explains: 'it might be that when M1 has accepted an initial part of w and then it wants M2 to accept the rest, it might fail ... There might have been some other later place to split w.'
- A

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