1. Home
  2. Explore
  3. Computer Science
  4. Theory of Computation

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Theory of Computation

  • 70Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Turing Foundations

What two fields were brought into contact in the scientific experience described?

70 questions

  1. 1

    What two fields were brought into contact in the scientific experience described?

    Model answer

    The experience brought together theoretical computer science and neuroscience.

    Explanation

    The speaker emphasized that the course connected theoretical computer science with another fascinating field, neuroscience.

  2. 2

    What does the speaker mean by studying the cultural anthropology of theoretical computer science?

    Model answer

    It means examining the field's language, behavior, history, and underlying ways of thinking as if studying a scientific tribe.

    Explanation

    The speaker presents theoretical computer science through its culture and historical development rather than only its technical results.

  3. 3

    What mathematical challenge motivated Turing to invent the Turing machine?

    Model answer

    Turing wanted to determine whether mathematical reasoning could be automated.

    Explanation

    After Gödel's theorem showed that mathematics could not be complete, the question remained whether the mathematics that could be done could be automated.

  4. 4

    Why was it important for mathematicians to define computation?

    Model answer

    They needed a precise definition of computation in order to prove that some computations were impossible.

    Explanation

    The speaker contrasts showing that computation is possible, which may not require a definition, with proving impossibility, which requires identifying the exact boundaries of computation.

  5. 5

    What is the philosophical lesson of defining computation before proving its limitations?

    Model answer

    To show that something lies outside a domain, one must first precisely characterize and map the domain itself.

    Explanation

    The speaker compares this process to entering and mapping an area in order to demonstrate that the world extends beyond it.

  6. 6

    What does the principle of universality imply about computation?

    Model answer

    A remarkably simple machine can perform many different tasks if it is given the appropriate program or bit stream.

    Explanation

    Universality means that one general-purpose machine can be taught to carry out many other computations through software.

  7. 7

    How does universality relate to learning and software?

    Model answer

    A universal machine can learn to perform different tasks by receiving different programs or bit streams.

    Explanation

    The speaker presents software as the mechanism that enables one machine to carry out many kinds of behavior.

  8. 8

    What major limitation of computation did Turing prove?

    Model answer

    He proved that some precisely stated computational problems are unsolvable by any algorithm.

    Explanation

    This result established that computation has fundamental limits, not merely practical limits caused by slow hardware.

  9. 9

    Why is the halting problem unsolvable?

    Model answer

    There is no program that can correctly determine for every possible program and input whether the program eventually halts or loops forever.

    Explanation

    The halting problem is a simple-to-state mathematical problem for which no universal decision procedure exists.

  10. 10

    What other program properties were described as undecidable consequences of the halting problem?

    Model answer

    No program can universally determine whether another program is correct, prints anything, or is a virus.

    Explanation

    These properties require predicting general program behavior, which is impossible in the same fundamental sense as deciding whether a program halts.

  11. 11

    How did undecidability shape computer science as a discipline?

    Model answer

    Computer science became unusually aware of its own limitations from its beginning.

    Explanation

    Unlike many sciences that recognize limitations later, computer science confronted formal impossibility results early in its development.

  12. 12

    What was von Neumann's contribution to computing?

    Model answer

    Influenced by Turing's ideas, von Neumann helped define the computer and participated in building one.

    Explanation

    His work connected the theoretical conception of computation with the construction of actual computing machines.

  13. 13

    What major areas of engineering did computer science develop during its early computer-focused period?

    Model answer

    It developed operating systems, compilers, databases, machine learning, chip layout, graphics, networks, and user interfaces.

    Explanation

    These areas represented difficult engineering problems that computer scientists progressively made manageable.

  14. 14

    How did the development of operating systems and compilers change over time?

    Model answer

    Projects that initially required many person-years eventually became reasonable projects for courses.

    Explanation

    This illustrates how advances in computer science transformed extremely difficult engineering tasks into more routine ones.

  15. 15

    Why did the Internet change the role of the computer in computer science?

    Model answer

    The Internet shifted attention from studying the computer as an isolated machine to studying the networked world built around it.

    Explanation

    The speaker says that during the later period, people increasingly experienced computers as devices that connected them to the Internet.

  16. 16

    What two forces did the speaker identify as major engines of information technology?

    Model answer

    The two engines were Moore's Law and fast algorithms.

    Explanation

    Hardware improvement alone was not enough; efficient algorithms were needed to convert increased hardware capability into practical gains.

  17. 17

    What does Moore's Law describe in the lecture?

    Model answer

    It describes the historical doubling of computer capability approximately every year and a half.

    Explanation

    The speaker presents Moore's Law as a long-running pattern of rapidly increasing computing performance.

  18. 18

    Why did the speaker characterize Moore's Law as a social phenomenon rather than only a physical one?

    Model answer

    Its continuation depended on coordinated pressure among science, business, and society, not merely on an unavoidable law of nature.

    Explanation

    Prediction, competition, business planning, and social demand reinforced one another and helped sustain the improvement trend.

  19. 19

    Why are fast algorithms necessary for exploiting Moore's Law?

    Model answer

    Faster hardware produces little benefit when an algorithm requires exponential time; efficient algorithms are needed to turn hardware gains into useful applications.

    Explanation

    The speaker argues that dramatic hardware improvements must be coupled with algorithmic efficiency.

  20. 20

    What is the classical running time for multiplying two nnn by nnn matrices?

    Model answer

    The classical method takes order n3n^3n3 operations, more precisely 2n3−n22n^3 - n^22n3−n2 operations in the formulation described.

    Explanation

    There are n2n^2n2 output entries, and computing each entry by the standard method requires a number of operations proportional to nnn.

  21. 21

    What question about matrix multiplication drives algorithmic research?

    Model answer

    Researchers ask whether the product can be computed faster than the classical order-n3n^3n3 method.

    Explanation

    Finding faster algorithms is a recurring central question in theoretical computer science.

  22. 22

    What did Volker Strassen demonstrate about matrix multiplication?

    Model answer

    He showed that matrix multiplication can be performed faster than order n3n^3n3.

    Explanation

    Strassen's result overturned the belief that the classical cubic bound was unavoidable.

  23. 23

    How did Strassen's method achieve a faster matrix multiplication algorithm?

    Model answer

    It recursively applied a 222-by-222 matrix algorithm that used seven multiplications instead of the usual eight, despite using more total operations in the small case.

    Explanation

    The improvement comes from reducing the number of recursive multiplications; this reduction dominates when the method is applied to large matrices.

  24. 24

    What was the significance of Strassen's algorithm for the field of algorithms?

    Model answer

    It challenged a widely held assumption about the limits of matrix multiplication and stimulated many later improvements.

    Explanation

    The result was described as a major shock to algorithm researchers, followed by more than a dozen improvements over the following decades.

  25. 25

    What lower-bound problem did the speaker initially study in his doctoral work?

    Model answer

    He tried to prove an n2log⁡nn^2 \log nn2logn lower bound for matrix multiplication.

    Explanation

    The problem was eventually solved decades later using a proof based on randomness.

  26. 26

    How did randomness contribute to the eventual proof of the matrix multiplication lower bound?

    Model answer

    The proof used the probabilistic method, which establishes a result by showing that a randomly chosen object has the required properties with positive probability.

    Explanation

    The speaker identifies randomness as the reason the later proof was relatively simple.

  27. 27

    What are two important uses of randomization in algorithms?

    Model answer

    Randomization can protect an algorithm from bad or adversarial inputs and can use sampling to distinguish competing hypotheses.

    Explanation

    These two roles are illustrated by randomized sorting and probabilistic primality testing.

  28. 28

    How does randomization protect an algorithm from bad inputs?

    Model answer

    Random choices make it difficult for an adversary to consistently supply inputs that cause poor performance.

    Explanation

    In randomized quicksort, for example, random choices reduce the effect of deliberately unfavorable input arrangements.

  29. 29

    Why can flipping a coin sometimes be the most deliberate algorithmic action?

    Model answer

    A random choice can prevent predictable worst-case behavior and therefore improve the algorithm's reliability against unfavorable inputs.

    Explanation

    Randomness is not necessarily a lack of control; it can be an intentional strategy for defeating an adversary.

  30. 30

    How does randomized primality testing distinguish between competing hypotheses?

    Model answer

    It repeatedly tests whether a number behaves as a prime should under modular exponentiation; a violating test proves compositeness, while repeated successful tests provide high confidence in primality.

    Explanation

    The competing hypotheses are that the number is prime or not prime.

  31. 31

    What modular property of primes supports the primality test described?

    Model answer

    For a prime NNN and a suitable value AAA, Fermat's theorem gives A^N mod N = A.

    Explanation

    A composite number is likely to violate this relation for many tested values of AAA, allowing random sampling to expose compositeness.

  32. 32

    What happens when a tested value AAA falsifies the prime condition?

    Model answer

    The algorithm can immediately conclude that the number is not prime.

    Explanation

    A single witness that violates the necessary condition for primality establishes that the number is composite.

  33. 33

    Why can a randomized primality test be considered reliable after many successful trials?

    Model answer

    For a composite number, most tested values are expected to reveal its compositeness, so repeated failures to find a witness make the error probability extremely small.

    Explanation

    The lecture gives an example error scale of 2−1002^{-100}2−100, which is treated as negligible for practical engineering purposes.

  34. 34

    What is the difference between a randomized algorithm's worst-case input analysis and its probability of success?

    Model answer

    The input may still be worst-case or adversarial, while the algorithm uses random choices and is analyzed by the probability that those choices produce a correct result.

    Explanation

    Randomization changes the success guarantee rather than necessarily eliminating worst-case inputs.

  35. 35

    How is a classical Erdős–Rényi random graph generated?

    Model answer

    For every pair of vertices, an edge is independently included with a fixed probability.

    Explanation

    For example, one may independently flip a coin with probability 1%1\%1% for each possible pair of vertices.

  36. 36

    Why can researchers know many properties of a random graph without seeing a particular graph instance?

    Model answer

    The random graph model provides strong probabilistic predictions about properties such as connectivity, diameter, triangles, and expansion.

    Explanation

    Knowledge of the generating distribution can reveal typical structural properties even without examining one concrete graph.

  37. 37

    What does it mean for a graph to be an expander?

    Model answer

    An expander has strong connectivity: separating a portion of the graph requires removing many vertices or edges relative to the portion separated.

    Explanation

    The speaker describes an expander as a graph from which one cannot cheaply remove a substantial part.

  38. 38

    Why is the contrast between primality testing and factoring important in cryptography?

    Model answer

    Primality can be tested efficiently, whereas finding the factors of a large composite number is believed to be computationally hard.

    Explanation

    Modern cryptography relies on this gap between easy verification of certain properties and difficult recovery of hidden factors.

  39. 39

    What is known about the best general algorithms for factoring large integers?

    Model answer

    The lecture states that the fastest known general factoring algorithm is exponential in the number of bits.

    Explanation

    Despite extensive mathematical effort, no efficient general factoring algorithm is known.

  40. 40

    What is the computational complexity of adding and multiplying numbers compared with partitioning numbers into equal-sum groups?

    Model answer

    Addition and multiplication are efficiently solvable, while determining whether numbers can be partitioned into equal-sum groups is presented as a difficult problem.

    Explanation

    The examples illustrate that mathematically simple operations can differ greatly in algorithmic difficulty.

  41. 41

    What is the complexity of ordinary bipartite matching as described?

    Model answer

    Matching two groups, such as boys and girls, can be solved in polynomial time; the cited algorithm runs in approximately n2.55n^{2.55}n2.55 time.

    Explanation

    The example contrasts ordinary matching with more complicated multiway matching problems.

  42. 42

    Why is three-way matching harder than matching two groups?

    Model answer

    Matching three types of objects simultaneously, such as boys, girls, and pets, creates combinatorial constraints that make the problem computationally hard.

    Explanation

    The lecture presents two-way matching as polynomial-time solvable but three-way matching as a difficult problem.

  43. 43

    Which network question can be answered in linear time?

    Model answer

    Determining whether a person is within a specified number of friendship links of everyone else can be solved in linear time in the network size.

    Explanation

    The difficulty lies more in obtaining access to the social-network data than in running the algorithm.

  44. 44

    Why is finding a large clique in a social network computationally difficult?

    Model answer

    Determining whether a specified number of people are all mutually connected is an intractable combinatorial problem in general.

    Explanation

    The lecture contrasts this clique question with the easier problem of measuring network distances.

  45. 45

    What is the set cover problem?

    Model answer

    Given sets or words that collectively contain required elements, the task is to choose as few as possible while covering the entire target collection, such as the alphabet.

    Explanation

    The problem is difficult because finding the smallest covering collection requires searching among many possible combinations.

  46. 46

    What is a reduction in theoretical computer science?

    Model answer

    A reduction transforms instances of one problem into instances of another so that an algorithm for the second problem would solve the first.

    Explanation

    Reductions are used to compare problem difficulty and establish relationships among apparently different problems.

  47. 47

    How can a hypothetical algorithm for number partitioning help solve three-way matching?

    Model answer

    Each possible boy-girl-pet triple can be represented by a sparse zero-one vector, allowing the matching question to be transformed into a number-partitioning instance.

    Explanation

    This reduction shows how a solver for one problem could be used as a subroutine for another.

  48. 48

    What is class PPP?

    Model answer

    Class PPP contains decision problems solvable in polynomial time.

    Explanation

    Polynomial-time solvability is used as the standard notion of efficient computation in the lecture.

  49. 49

    What is class NPNPNP as described in the lecture?

    Model answer

    It contains problems whose solutions can be found by exhaustive search over an exponentially large set of possibilities, or equivalently whose proposed solutions can be efficiently verified.

    Explanation

    The lecture emphasizes the exhaustive-search perspective while discussing problems such as partitioning and clique.

  50. 50

    What does it mean for a problem to be NP-complete?

    Model answer

    An NP-complete problem is among the hardest problems in NPNPNP, so an efficient algorithm for it would provide efficient algorithms for all problems in NPNPNP through reductions.

    Explanation

    The lecture describes NP-complete problems as mutually reducible representatives of a broad class of apparently exponential problems.

  51. 51

    What do most researchers believe about the relationship between PPP and NPNPNP?

    Model answer

    Most researchers believe that P≠NPP \ne NPP=NP.

    Explanation

    Under this belief, NP-complete problems do not have polynomial-time algorithms and are generally considered intractable.

  52. 52

    How is a new problem typically proved to be NP-complete?

    Model answer

    Researchers show that the problem belongs to NPNPNP and reduce a known NP-complete problem to it.

    Explanation

    The reduction demonstrates that solving the new problem efficiently would solve a known hard problem efficiently.

  53. 53

    Why was SAT historically important in complexity theory?

    Model answer

    In 1971, Stephen Cook proved that Boolean satisfiability, or SAT, is NP-complete, providing the first problem known to have this status.

    Explanation

    SAT established the starting point for proving many other problems NP-complete through reductions.

  54. 54

    What does NP-completeness imply in practice?

    Model answer

    It suggests that a polynomial-time exact algorithm is unlikely, so researchers may instead pursue approximation, heuristics, or restricted versions of the problem.

    Explanation

    NP-completeness does not mean the problem should be abandoned; it changes the expectations and strategies for solving it.

  55. 55

    Why is NP-completeness considered a theoretical tool rather than a complete description of practical difficulty?

    Model answer

    It is based largely on worst-case behavior, while many real instances may be easy, approximable, or structured in ways not captured by worst-case analysis.

    Explanation

    The discussion notes that it can be difficult to find hard instances and that average-case or practical complexity may differ from worst-case complexity.

  56. 56

    What question does the PCP theorem help address?

    Model answer

    The PCP theorem helps classify the extent to which NP problems can be approximated, distinguishing problems that permit good approximations from problems that do not.

    Explanation

    It extends complexity theory beyond exact solvability to the difficulty of obtaining approximate solutions.

  57. 57

    What is the central purpose of theoretical computer science according to the discussion?

    Model answer

    Its purpose is not always to solve a given problem directly, but to identify the right algorithmic question for the resources and structure available in a domain.

    Explanation

    The speaker describes theory as a research methodology for sorting problems and determining which formulations can be answered meaningfully.

  58. 58

    What is supervised learning in the context of the lecture?

    Model answer

    It is a form of learning in which an algorithm uses outcome information or examples to improve its future choices.

    Explanation

    The lecture contrasts supervised learning with unsupervised learning and then introduces an online supervised-learning problem.

  59. 59

    What is the online expert problem?

    Model answer

    Each day, an algorithm chooses one of several experts, observes the resulting gain or loss, and tries over time to perform nearly as well as the best expert in hindsight.

    Explanation

    The example involves choosing among financial-column experts whose daily performance is revealed after each choice.

  60. 60

    What makes the online expert problem distributionless or adversarial?

    Model answer

    The outcomes need not follow a known probability distribution and may be chosen by an adversary who observes the history and tries to reduce the learner's performance.

    Explanation

    The adversary can change the daily outcomes based on previous information but does not retroactively change outcomes after the learner's choice.

  61. 61

    What performance goal does the online learning algorithm seek?

    Model answer

    It seeks to achieve cumulative performance close to that of the best expert over the entire sequence of days.

    Explanation

    The learner does not need to identify the best expert immediately; it must limit its regret relative to that expert.

  62. 62

    How does the multiplicative weights algorithm initialize its expert probabilities?

    Model answer

    It assigns equal probability to every expert; with six experts, each initially receives probability 1/61/61/6.

    Explanation

    Equal initialization avoids favoring any expert before performance information is observed.

  63. 63

    How does the multiplicative weights update rule work?

    Model answer

    It increases the weights of experts who perform better and decreases the relative weights of poorer performers, then normalizes the weights so they sum to one.

    Explanation

    The update is multiplicative, often expressed using a factor such as 1+ϵ1+\epsilon1+ϵ or approximately eϵe^{\epsilon}eϵ for small ϵ\epsilonϵ.

  64. 64

    What guarantee does the multiplicative weights algorithm provide?

    Model answer

    Its expected performance is within approximately log⁡nT\sqrt{\frac{\log n}{T}}Tlogn​​ of the best expert after TTT rounds, where nnn is the number of experts.

    Explanation

    The gap shrinks as the number of rounds increases, allowing the learner to approach the performance of the best expert even under adversarial outcomes.

  65. 65

    Why can the multiplicative weights guarantee make the learner wealthy in the financial example?

    Model answer

    After many rounds, the learner loses only a small amount per day relative to the best expert, so its cumulative performance becomes close to that expert's performance.

    Explanation

    The lecture estimates a gap of only a few cents per day in the example.

  66. 66

    Why is the multiplicative weights algorithm significant beyond the expert problem?

    Model answer

    The same simple method applies to problems such as convex programming, network congestion, game theory, and machine learning.

    Explanation

    In artificial intelligence, a related form is known as AdaBoost, illustrating the algorithm's broad reach.

  67. 67

    How was the multiplicative weights method discovered across different fields?

    Model answer

    It was independently developed or rediscovered in economics, financial mathematics, artificial intelligence, and theoretical computer science under different names.

    Explanation

    Its repeated discovery reflects the method's natural fit for learning and decision-making in changing or hostile environments.

  68. 68

    What broader lesson does the online learning problem provide for neuroscience and other sciences?

    Model answer

    It shows how theoretical computer science can formulate learning under uncertainty and adversarial conditions without assuming a fixed data distribution.

    Explanation

    The speaker presents the expert problem as representative of situations in computer science, game theory, artificial intelligence, and potentially other sciences.

  69. 69

    Why might a new complexity theory be needed for realistic learning systems?

    Model answer

    Worst-case complexity may fail to reflect the structure and typical behavior of real-world problems, including those encountered in deep learning.

    Explanation

    The discussion contrasts traditional worst-case theory with the need for analyses that better capture realistic instances.

  70. 70

    How can complexity theory help explain why some biological or scientific problems are tractable?

    Model answer

    By identifying structural restrictions or special features that make particular instances easy even when the general problem is hard.

    Explanation

    The speaker gives pattern matching and some biological problems as examples where theory can reveal why practical cases are manageable.

1 of 70
Question 1 of 70

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent