Theory of Computation
- 80Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What mathematical question motivated Turing to invent the Turing machine in 1936?
Whether mathematical reasoning could be automated.
Or swipe the card
80 cards
What mathematical question motivated Turing to invent the Turing machine in 1936?
Whether mathematical reasoning could be automated.
What did the Turing machine provide for the first time?
A precise definition of computation.
Why did defining computation become especially important at the time of Turing's work?
It was necessary to prove that some computations are impossible.
What principle of universality did Turing demonstrate?
A very simple machine can perform many different computations when given the appropriate instructions or input.
How is universality related to software and learning?
A universal machine can learn or perform new tasks by receiving an appropriate program or bit stream.
What major limitation of computation did Turing prove?
Some precisely stated computational problems are unsolvable.
What is the halting problem?
The problem of determining whether an arbitrary program will eventually halt or run forever.
Why can no general program decide whether every program is correct?
Program correctness would require solving undecidable questions such as whether programs halt.
What broader effect did undecidability have on computer science?
Computer science became aware of its fundamental limitations from its beginning.
What did von Neumann contribute roughly a decade after Turing's work?
He helped define and build the modern computer, strongly influenced by Turing's ideas.
What major engineering problems did early computer scientists solve?
Operating systems, compilers, databases, machine learning, chip layout, graphics, networks, and interfaces.
How did the Internet change the focus of computer science?
It shifted attention from studying computers as isolated machines to studying the Internet and its applications.
What is Moore's law as described in the lecture?
Computer capability historically doubled approximately every year and a half.
Why was Moore's law described as a social rather than purely physical phenomenon?
Its continuation depended on coordinated pressure among science, business, competition, and society.
What two forces were identified as major engines of information technology?
Moore's law and fast algorithms.
Why are fast algorithms necessary for Moore's law to produce practical benefits?
Hardware speed increases are useful only when efficient algorithms can exploit them.
What does the notation O(n3) mean in the context of matrix multiplication?
The running time grows proportionally to a constant multiple of n3, ignoring lower-order terms and exact constants.
What is the classical operation count for multiplying two n×n matrices?
It uses 2n3−n2 operations, which is O(n3).
What question is repeatedly asked in algorithm design?
Can a given computation be performed faster?
What important result did Volker Strassen obtain for matrix multiplication?
He developed an algorithm that multiplies matrices faster than the classical O(n3) method.
How did Strassen's method reduce the cost of multiplying 2×2 matrices?
It used seven multiplications instead of the classical eight, although it used more additions.
How does recursive matrix multiplication use Strassen's 2×2 method?
A large matrix is viewed as a 2×2 matrix whose entries are submatrices, and the faster procedure is applied recursively.
What happened to matrix multiplication algorithms after Strassen's result?
More than a dozen improvements were found, although progress later slowed around the best known bounds.
What lower-bound problem did the lecturer initially study for matrix multiplication?
Proving an n2logn lower bound.
What are randomized algorithms?
Algorithms that deliberately use random choices during computation.
How can randomization protect an algorithm from bad inputs?
Random choices make it difficult for an adversary to consistently provide inputs that cause poor performance.
What is one role of sampling in randomized computation?
Sampling helps distinguish between competing hypotheses.
How can randomness be used to test whether a large number N is prime?
Choose random values A and test whether they satisfy the relevant modular condition predicted by Fermat's theorem.
What modular condition follows from Fermat's theorem for a prime N?
For suitable A less than N, ANmodN=A.
Why can repeated random primality tests provide high confidence?
If N is composite, many randomly chosen values are likely to reveal a violation of the prime-number condition.
What error probability was used to illustrate acceptable probabilistic reliability?
2−100.
Can the randomized primality-testing approach be replaced by a deterministic algorithm?
Yes, but the deterministic method described is much slower, using roughly B8 steps instead of B2 steps.
What is the Erdős–Rényi random graph model?
A graph model in which each possible edge is included independently with a fixed probability.
How is an Erdős–Rényi random graph generated?
Consider every pair of nodes and independently flip a biased coin to decide whether the edge is present.
What structural properties can often be predicted for a sufficiently dense random graph?
Connectivity, multiple disjoint paths, a small diameter, a predictable number of triangles, and expansion.
What does it mean for a graph to be an expander?
Disconnecting a portion of the graph requires removing many nodes or edges.
What is the surprising relationship between primality testing and factoring?
Primality can be tested efficiently, whereas finding the factors of a composite number is believed to be hard.
Why is the difference between primality testing and factoring important for cryptography?
Modern cryptography relies on factoring being computationally difficult even though primality testing is easy.
What is known about the best general factoring algorithms described in the lecture?
The fastest known algorithm is exponential in the number of bits.
What is the difference between a polynomial-time problem and an exponential-time problem?
A polynomial-time problem has running time bounded by a polynomial in input size, while an exponential-time problem may require time growing exponentially with input size.
What is the computational status of ordinary two-way matching?
It can be solved in polynomial time.
Why is three-way matching harder than matching two types of objects?
Matching three mutually constrained groups, such as boys, girls, and pets, is an NP-complete problem.
What is the complexity of finding the shortest paths connecting people in a social network?
The relevant distances can be found in linear time.
Why is finding a large clique in a social network difficult?
Determining whether a specified number of people are all mutually connected is computationally hard.
What is the set cover problem?
Choosing as few given sets or words as possible so that their union covers every required element, such as the alphabet.
What is a reduction in theoretical computer science?
A transformation showing how an algorithm for one problem could be used to solve another problem.
How can reductions relate number partitioning to three-way matching?
A solution to number partitioning could be used to solve three-way matching after encoding each triple as a sparse zero-one vector.
What does it mean for problems to be equivalent under reductions?
An efficient solution to any one of them would provide efficient solutions to the others.
What is class P?
The class of problems solvable in polynomial time.
What is class NP?
The class of problems whose candidate solutions can be found or verified through exhaustive search over exponentially many possibilities.
What does NP-complete mean?
A problem is NP-complete if it is among the hardest problems in NP, so every problem in NP can be reduced to it.
What is the P versus NP question?
Whether every problem whose solutions can be efficiently verified can also be solved in polynomial time.
Who established the first NP-complete problem, and which problem was it?
Stephen Cook showed in 1971 that Boolean satisfiability, or SAT, is NP-complete.
How is a new problem typically proved to be NP-complete?
By reducing a known NP-complete problem to the new problem.
What should researchers do with an NP-complete problem in practice?
They can seek approximation algorithms, heuristics, restricted instances, or other useful approaches.
What does NP-completeness imply about the likelihood of discovering a simple exact algorithm?
It suggests that a universally efficient exact algorithm is unlikely unless P=NP.
What theorem addresses the approximability of NP problems?
The PCP theorem.
How can approximation change the difficulty of a problem?
Some problems that are hard to solve exactly may still allow useful approximate solutions, while others remain hard even to approximate.
What is online learning?
Learning in which a decision is made repeatedly, feedback is received after each decision, and future decisions use the accumulated outcomes.
What is the expert's problem in online learning?
Choose among several experts over many rounds so that total performance approaches that of the best expert in hindsight.
What does it mean for outcomes in the expert problem to be adversarial?
The outcomes may be chosen without a prior probability distribution and may be designed to reduce the learner's performance.
What guarantee does the online-learning strategy seek?
Performance close to that of the best expert over the entire sequence of rounds.
What is the multiplicative weights algorithm?
An online-learning method that assigns weights to experts and repeatedly increases the relative weight of experts that perform better.
How does multiplicative weights initialize the experts' probabilities in the six-expert example?
Each expert begins with probability 1/6.
How are probabilities updated in the multiplicative weights method?
Better-performing experts receive multiplicatively larger weights, after which all weights are divided by a normalizing constant.
What is the usual exponential form of the multiplicative weights update?
Weights are commonly multiplied by a factor involving eϵ raised according to the outcome; for small ϵ, this is approximated by 1+ϵ times the outcome.
What performance guarantee does multiplicative weights provide?
Its expected performance is within approximately Tlogn of the best expert after T rounds.
What does the multiplicative-weights guarantee imply in the financial-expert example?
After thousands of days, the learner may fall only a few cents per day behind the best expert.
What is AdaBoost's relationship to multiplicative weights?
AdaBoost is an artificial-intelligence application of the multiplicative-weights idea.
What kinds of problems can multiplicative weights help solve beyond expert selection?
Convex programming, network congestion, portfolio selection, and other problems involving repeated decisions.
What is the distinction between supervised and unsupervised learning?
Supervised learning uses labeled feedback, whereas unsupervised learning seeks structure without labeled outcomes.
Why is worst-case complexity not always a complete description of practical difficulty?
A problem may have difficult worst-case instances but be easy across most of its parameter space or in typical applications.
How does the lecture characterize NP-completeness as a practical tool?
It is primarily a theoretical tool for sorting problems and identifying which instances or formulations deserve attention.
What is the broader goal of theoretical computer science when choosing problems?
To identify the right algorithmic question for the computational resources and constraints of a domain.
Why might a new complexity theory be needed for applications such as deep learning?
Worst-case complexity may not adequately reflect the structure and behavior of realistic problems.
What is average-case complexity intended to capture?
The computational difficulty of problems under typical or specified distributions of inputs rather than the single worst input.
Why can computational hardness still be useful even when typical instances are easy?
It helps identify which instances or problem features could cause difficulty and guides the search for better formulations.
How does theoretical computer science contribute to other sciences?
It provides mathematical models, algorithms, complexity analyses, and formal questions that can be applied to fields such as economics, evolution, biology, and neuroscience.
What is the relationship between computation and evolution highlighted in the lecture?
Computational ideas such as universality, algorithms, and learning can provide ways to analyze evolutionary processes.
What is the central methodological lesson of studying computation for neuroscience?
Formal computational models can clarify what processes are possible, efficient, learnable, or fundamentally limited.

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