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

  • 62Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Computation Foundations

What mathematical question motivated Turing's invention of the Turing machine in 1936?

62 questions

  1. 1

    What mathematical question motivated Turing's invention of the Turing machine in 1936?

    1. A

      Whether mathematical reasoning could be automated

    2. B

      Whether computers could communicate across networks

    3. C

      Whether physical machines could store unlimited energy

    4. D

      Whether biological neurons could simulate logic gates

    Correct answer
    A

    Whether mathematical reasoning could be automated

    Explanation

    Turing introduced the machine concept to address whether the mathematical procedures being used could be automated.

  2. 2

    What important concept did the Turing machine provide for the first time?

    1. A

      A formal definition of computation

    2. B

      A physical design for modern computers

    3. C

      A programming language for electronic circuits

    4. D

      A statistical model of neural activity

    Correct answer
    A

    A formal definition of computation

    Explanation

    The Turing machine gave mathematics a minimalistic formal conception of what computation is.

  3. 3

    Why was it especially important to define computation when studying its limits?

    1. A

      Proving impossibility requires specifying what counts as computation

    2. B

      A definition is needed only to build physical computers

    3. C

      Undefined computation always requires exponential search

    4. D

      Defining computation automatically makes every problem solvable

    Correct answer
    A

    Proving impossibility requires specifying what counts as computation

    Explanation

    To prove that computation cannot accomplish something, one must first precisely characterize the computational processes being considered.

  4. 4

    What does computational universality imply?

    1. A

      More hardware is always required for each additional task

    2. B

      Random inputs are necessary for every computation

    3. C

      Every machine performs only the task for which it was built

    4. D

      A minimal machine can perform many tasks when given suitable instructions

    Correct answer
    D

    A minimal machine can perform many tasks when given suitable instructions

    Explanation

    Universality means that a single sufficiently capable machine can be taught to perform different tasks by supplying the appropriate program or bit stream.

  5. 5

    What relationship between hardware and software is illustrated by universality?

    1. A

      Different tasks require permanently different machines

    2. B

      Hardware becomes unnecessary when software is sufficiently complex

    3. C

      One machine can perform different tasks through different programs

    4. D

      Software determines the physical speed of every machine

    Correct answer
    C

    One machine can perform different tasks through different programs

    Explanation

    A universal machine can be reused for many purposes by changing the instructions inserted into it.

  6. 6

    Which result of Turing established a fundamental limitation of computation?

    1. A

      Randomized algorithms always outperform deterministic algorithms

    2. B

      Some simply stated mathematical problems are unsolvable

    3. C

      All mathematical problems can be solved efficiently

    4. D

      Every computer program eventually produces an output

    Correct answer
    B

    Some simply stated mathematical problems are unsolvable

    Explanation

    Turing proved that there are computational problems for which no algorithm can always produce a solution.

  7. 7

    What does the halting problem ask about a program?

    1. A

      Whether the program uses more memory than its input

    2. B

      Whether the program can be translated into another language

    3. C

      Whether the program eventually stops or runs forever

    4. D

      Whether the program produces mathematically correct results

    Correct answer
    C

    Whether the program eventually stops or runs forever

    Explanation

    The halting problem asks whether a given program, on a given input, will halt or loop indefinitely.

  8. 8

    Which conclusion follows from the unsolvability of the halting problem?

    1. A

      Programs cannot be used to analyze other programs

    2. B

      No program can ever be tested on any particular input

    3. C

      Every program must contain at least one infinite loop

    4. D

      No program can decide halting for every possible program and input

    Correct answer
    D

    No program can decide halting for every possible program and input

    Explanation

    Because the halting problem is undecidable, no general program can correctly determine halting behavior in all cases.

  9. 9

    Why does the halting problem also limit automatic program analysis?

    1. A

      There can be no universal program that always detects correctness or viruses

    2. B

      Correctness can be decided only by running every program forever

    3. C

      Virus detection is possible only for programs written in machine code

    4. D

      Program analysis is impossible whenever a program has more than one line

    Correct answer
    A

    There can be no universal program that always detects correctness or viruses

    Explanation

    Questions such as whether a program is correct, prints anything, or behaves like a virus can encode undecidable behavior, so no universal decision procedure exists.

  10. 10

    What broader attitude did undecidability give computer science?

    1. A

      An assumption that physical computers are always unreliable

    2. B

      A belief that all useful problems are computationally easy

    3. C

      An early awareness of the field's inherent limitations

    4. D

      A rejection of mathematical reasoning in computer science

    Correct answer
    C

    An early awareness of the field's inherent limitations

    Explanation

    Computer science became unusually conscious of its limits from the beginning because undecidable problems were identified as the field was being founded.

  11. 11

    What was von Neumann's major contribution described in the lecture?

    1. A

      He invented the first randomized sorting algorithm

    2. B

      He established the PCP theorem for approximation

    3. C

      He helped define and build the modern computer

    4. D

      He proved that factoring is harder than primality testing

    Correct answer
    C

    He helped define and build the modern computer

    Explanation

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

  12. 12

    What is the classical operation count for multiplying two n×nn \times nn×n matrices?

    1. A

      It requires order nlog⁡nn \log nnlogn operations

    2. B

      It requires order n3n^3n3 operations

    3. C

      It requires order n2n^2n2 operations

    4. D

      It requires order 2n2^n2n operations

    Correct answer
    B

    It requires order n3n^3n3 operations

    Explanation

    The classical algorithm computes n2n^2n2 output entries, each using order nnn work, for a total of order n3n^3n3 operations.

  13. 13

    Which expression gives the more precise classical operation count mentioned for matrix multiplication?

    1. A

      n3+n2n^3+n^2n3+n2

    2. B

      2n3−n22n^3-n^22n3−n2

    3. C

      n3−2n2n^3-2n^2n3−2n2

    4. D

      2n2−n2n^2-n2n2−n

    Correct answer
    B

    2n3−n22n^3-n^22n3−n2

    Explanation

    The lecture gives the classical count as 2n3−n22n^3-n^22n3−n2, while emphasizing that its asymptotic order is n3n^3n3.

  14. 14

    What did Strassen's matrix multiplication algorithm demonstrate?

    1. A

      Matrix multiplication can be performed asymptotically faster than order n3n^3n3

    2. B

      Matrix multiplication is equivalent to an NP-complete problem

    3. C

      Matrix multiplication requires randomness to produce correct results

    4. D

      Matrix multiplication cannot be improved beyond exactly n3n^3n3 operations

    Correct answer
    A

    Matrix multiplication can be performed asymptotically faster than order n3n^3n3

    Explanation

    Strassen showed that the apparent cubic barrier could be beaten by using a different recursive algorithm.

  15. 15

    What key idea allowed Strassen's recursive method to improve matrix multiplication?

    1. A

      A random method using one multiplication per entry

    2. B

      A 2×22 \times 22×2 method using twelve multiplications

    3. C

      A 1×11 \times 11×1 method using no additions

    4. D

      A 2×22 \times 22×2 method using seven multiplications

    Correct answer
    D

    A 2×22 \times 22×2 method using seven multiplications

    Explanation

    Strassen's method used a 2×22 \times 22×2 multiplication scheme requiring seven multiplications rather than the usual eight, and applied it recursively.

  16. 16

    How does asymptotic notation such as order n3n^3n3 simplify an operation count?

    1. A

      It suppresses constant factors and lower-order terms

    2. B

      It gives the exact number of elementary operations

    3. C

      It applies only when the input size is exactly nnn

    4. D

      It guarantees that the algorithm is practical for all inputs

    Correct answer
    A

    It suppresses constant factors and lower-order terms

    Explanation

    Asymptotic notation focuses on growth rate while hiding constants and lower-order terms.

  17. 17

    Why are fast algorithms essential for benefiting from faster hardware?

    1. A

      Algorithmic efficiency matters only when hardware speed is constant

    2. B

      Fast hardware automatically makes exponential algorithms efficient

    3. C

      Faster hardware eliminates the need to analyze running time

    4. D

      Efficient algorithms convert increased hardware speed into application gains

    Correct answer
    D

    Efficient algorithms convert increased hardware speed into application gains

    Explanation

    A large increase in computer capability provides little benefit if the algorithm's growth rate is so high that it cannot exploit the faster hardware.

  18. 18

    What is one major way randomization protects an algorithm?

    1. A

      It reduces the ability of an adversary to force consistently bad inputs

    2. B

      It converts every exponential algorithm into a linear algorithm

    3. C

      It removes the need to inspect the structure of any input

    4. D

      It guarantees the algorithm always returns the exact optimum

    Correct answer
    A

    It reduces the ability of an adversary to force consistently bad inputs

    Explanation

    Random choices can prevent an adversary from reliably arranging inputs that produce the algorithm's worst behavior.

  19. 19

    How does random sampling help distinguish competing hypotheses?

    1. A

      It replaces hypotheses with an exact description of the data

    2. B

      It proves both hypotheses are true whenever samples agree

    3. C

      It tests whether observed evidence is more consistent with one hypothesis

    4. D

      It guarantees that every sample will contradict one hypothesis

    Correct answer
    C

    It tests whether observed evidence is more consistent with one hypothesis

    Explanation

    Sampling can provide evidence for or against competing explanations, especially when one hypothesis is likely to produce detectable violations.

  20. 20

    How is randomization used in randomized quicksort?

    1. A

      It helps prevent specially arranged inputs from causing poor performance

    2. B

      It makes the output approximate rather than correctly sorted

    3. C

      It sorts entries without comparing any pairs of entries

    4. D

      It guarantees the same sequence of comparisons on every run

    Correct answer
    A

    It helps prevent specially arranged inputs from causing poor performance

    Explanation

    Randomization in quicksort helps protect against adversarial or unusually unfavorable input orderings.

  21. 21

    What is the basic probabilistic strategy for testing whether a large number is prime?

    1. A

      Check whether the number has an even number of decimal digits

    2. B

      Factor the number completely before declaring it prime

    3. C

      Repeatedly test whether randomly selected bases satisfy a modular condition

    4. D

      Compare the number only with the first several prime numbers

    Correct answer
    C

    Repeatedly test whether randomly selected bases satisfy a modular condition

    Explanation

    The randomized test selects values AAA and checks whether they satisfy the modular condition predicted by Fermat's theorem.

  22. 22

    According to Fermat's theorem as used in the primality test, what should happen for a prime NNN and a suitable AAA less than NNN?

    1. A

      AN mod NA^N \bmod NANmodN should equal N−1N-1N−1

    2. B

      AN mod NA^N \bmod NANmodN should equal A+NA+NA+N

    3. C

      AN mod NA^N \bmod NANmodN should equal AAA

    4. D

      AN mod NA^N \bmod NANmodN should equal 000

    Correct answer
    C

    AN mod NA^N \bmod NANmodN should equal AAA

    Explanation

    For a prime NNN and suitable AAA, Fermat's theorem gives AN≡A(modN)A^N \equiv A \pmod NAN≡A(modN).

  23. 23

    What does a base that violates the Fermat condition indicate in the randomized primality test?

    1. A

      The modular computation must have overflowed

    2. B

      The tested number is definitely not prime

    3. C

      The selected base must itself be composite

    4. D

      The tested number is definitely prime

    Correct answer
    B

    The tested number is definitely not prime

    Explanation

    A violation is a certificate that the number is composite, whereas passing the test provides probabilistic rather than immediate certainty.

  24. 24

    Why can repeated randomized primality tests be considered reliable in practice?

    1. A

      Random testing proves primality after one successful trial

    2. B

      The probability of repeated failure can be made extremely small

    3. C

      The test examines every possible factor of the number

    4. D

      Every composite number violates the test for exactly one base

    Correct answer
    B

    The probability of repeated failure can be made extremely small

    Explanation

    Repeated trials reduce the probability of incorrectly accepting a composite number; the lecture illustrates an error probability such as 2−1002^{-100}2−100.

  25. 25

    What is the defining construction rule of an Erdős–Rényi random graph?

    1. A

      A single randomly chosen node is connected to every other node

    2. B

      Each node is connected to exactly the same number of neighbors

    3. C

      Edges are added only between nodes with similar labels

    4. D

      Each possible edge is included independently with a fixed probability

    Correct answer
    D

    Each possible edge is included independently with a fixed probability

    Explanation

    In the described model, every pair of nodes receives an independent random decision about whether an edge exists.

  26. 26

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

    1. A

      The graph has the maximum possible number of edges

    2. B

      Every pair of nodes is connected by exactly one path

    3. C

      The graph contains no cycles of any length

    4. D

      Separating a substantial part of the graph requires removing many nodes or edges

    Correct answer
    D

    Separating a substantial part of the graph requires removing many nodes or edges

    Explanation

    An expander resists being cheaply disconnected: isolating a portion requires paying a substantial boundary cost.

  27. 27

    Why can a random graph's global properties often be predicted without seeing the specific graph?

    1. A

      Random graphs contain no meaningful variation between instances

    2. B

      Its independent construction rule makes typical structural properties mathematically analyzable

    3. C

      All random graphs generated with the same parameters are identical

    4. D

      The construction rule directly lists every path and triangle

    Correct answer
    B

    Its independent construction rule makes typical structural properties mathematically analyzable

    Explanation

    Although individual graphs differ, the probabilistic model allows researchers to predict likely properties such as connectivity, diameter, and numbers of triangles.

  28. 28

    What contrast between primality testing and factoring supports modern cryptography?

    1. A

      Primality can be tested efficiently, while finding factors is believed to be hard

    2. B

      Factoring is efficient, while primality testing is believed to be impossible

    3. C

      Both primality testing and factoring require known exponential algorithms

    4. D

      Neither problem has useful algorithms for large numbers

    Correct answer
    A

    Primality can be tested efficiently, while finding factors is believed to be hard

    Explanation

    The lecture emphasizes the striking dichotomy that determining whether a number is prime is comparatively easy, whereas finding its factors is computationally difficult.

  29. 29

    What is the significance of the difficulty of factoring for cryptography?

    1. A

      Cryptographic security can rely on the practical difficulty of recovering factors

    2. B

      Cryptography becomes unnecessary when primality can be tested

    3. C

      Encryption works only when all numbers are known to be prime

    4. D

      Factoring difficulty guarantees that every cryptographic system is secure

    Correct answer
    A

    Cryptographic security can rely on the practical difficulty of recovering factors

    Explanation

    Modern cryptography uses problems such as factoring as computational tasks that are easy to verify or use but difficult to reverse efficiently.

  30. 30

    What characterizes a polynomial-time problem in the lecture?

    1. A

      It can be solved in time bounded by a polynomial in input size

    2. B

      It has no algorithm but can be approximated randomly

    3. C

      It can be solved only by checking every possible solution

    4. D

      It requires time proportional to an exponential function of input size

    Correct answer
    A

    It can be solved in time bounded by a polynomial in input size

    Explanation

    The class PPP consists of problems solvable in polynomial time.

  31. 31

    What does the class NPNPNP represent in the lecture's description?

    1. A

      Problems whose inputs must be generated randomly

    2. B

      Problems that always require polynomial time to solve

    3. C

      Problems whose solutions can be found by exhaustive search in exponential time

    4. D

      Problems that cannot be solved by any computer

    Correct answer
    C

    Problems whose solutions can be found by exhaustive search in exponential time

    Explanation

    The lecture informally describes NPNPNP as including problems solvable by searching through an exponential number of candidate solutions.

  32. 32

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

    1. A

      It is outside NPNPNP and cannot have efficiently checked solutions

    2. B

      It is equivalent only to the problem of factoring integers

    3. C

      It is solvable in constant time for every input

    4. D

      It is among the hardest problems in NPNPNP under polynomial-time reductions

    Correct answer
    D

    It is among the hardest problems in NPNPNP under polynomial-time reductions

    Explanation

    NP-complete problems are the hardest problems in NPNPNP in the sense that every problem in NPNPNP can be reduced to them.

  33. 33

    What is a reduction used for in complexity theory?

    1. A

      It converts every exponential algorithm into a polynomial one

    2. B

      It transforms instances of one problem into instances of another problem

    3. C

      It estimates the probability that an algorithm makes an error

    4. D

      It removes all difficult inputs from a problem definition

    Correct answer
    B

    It transforms instances of one problem into instances of another problem

    Explanation

    A reduction shows how an algorithm for one problem could be used to solve another by transforming one problem's instances into the other's.

  34. 34

    How can a reduction help prove that a new problem is NP-complete?

    1. A

      By proving that the new problem uses more memory than NPNPNP allows

    2. B

      By reducing a known NP-complete problem to the new problem

    3. C

      By finding a random instance that takes exponential time

    4. D

      By showing that the new problem has no possible solution

    Correct answer
    B

    By reducing a known NP-complete problem to the new problem

    Explanation

    To establish NP-completeness, one reduces an already known NP-complete problem to the problem under study, along with showing the problem belongs to NPNPNP.

  35. 35

    What was the role of SAT in the history of NP-completeness?

    1. A

      Cook showed that SAT can always be solved in constant time

    2. B

      Cook proved that SAT is the only problem in NPNPNP

    3. C

      Cook used SAT to prove that factoring is undecidable

    4. D

      Cook proved in 1971 that Boolean satisfiability is NP-complete

    Correct answer
    D

    Cook proved in 1971 that Boolean satisfiability is NP-complete

    Explanation

    Stephen Cook's 1971 theorem established Boolean satisfiability, or SAT, as the first recognized NP-complete problem.

  36. 36

    Which problem is described as polynomial-time solvable?

    1. A

      Finding a large clique in a social network

    2. B

      Choosing the fewest words that cover the alphabet

    3. C

      Matching boys and girls in a two-sided matching problem

    4. D

      Matching boys, girls, and pets simultaneously

    Correct answer
    C

    Matching boys and girls in a two-sided matching problem

    Explanation

    The two-sided matching problem can be solved in polynomial time, whereas the lecture presents the other examples as hard problems.

  37. 37

    Why does adding a third type of participant make the matching problem much harder?

    1. A

      The number of participants necessarily becomes infinite

    2. B

      Three-way matching requires random numbers to define preferences

    3. C

      Three-way compatibility constraints create an NP-complete structure

    4. D

      Two-sided matching algorithms cannot store three kinds of labels

    Correct answer
    C

    Three-way compatibility constraints create an NP-complete structure

    Explanation

    The lecture contrasts efficiently solvable two-sided matching with three-way matching, which is presented as computationally hard.

  38. 38

    Which statement correctly compares number partitioning and network-distance computation?

    1. A

      Both problems are presented as requiring exhaustive exponential search

    2. B

      Both problems are presented as solvable only with randomized algorithms

    3. C

      Partitioning is linear time, while graph distance is undecidable

    4. D

      Partitioning is presented as hard, while graph distance can be found in linear time

    Correct answer
    D

    Partitioning is presented as hard, while graph distance can be found in linear time

    Explanation

    The lecture describes splitting numbers into equal parts as difficult, while determining whether someone is within a specified social-network distance can be done in linear time.

  39. 39

    Which task is presented as computationally hard?

    1. A

      Determining whether two people are connected by a short path

    2. B

      Matching boys and girls in a two-sided setting

    3. C

      Adding two lists of numerical values

    4. D

      Determining whether a social network contains a clique of sixty people

    Correct answer
    D

    Determining whether a social network contains a clique of sixty people

    Explanation

    The lecture contrasts efficient shortest-path-style distance computation with the difficult task of finding a large fully connected clique.

  40. 40

    What is the set cover problem described in the lecture?

    1. A

      Determining whether every word in a list is mathematically prime

    2. B

      Grouping words so that each group contains the same letters

    3. C

      Selecting as few given words as possible to cover every letter of the alphabet

    4. D

      Finding the shortest path that visits every word in a dictionary

    Correct answer
    C

    Selecting as few given words as possible to cover every letter of the alphabet

    Explanation

    Set cover asks for a small collection of sets—in the example, words whose letters collectively cover the alphabet.

  41. 41

    What is the practical meaning of proving a problem NP-complete?

    1. A

      It guarantees that every practical instance requires exponential time

    2. B

      It shows that no approximate solution can ever be useful

    3. C

      It suggests seeking heuristics, approximations, or special tractable cases

    4. D

      It proves that the problem should never be studied again

    Correct answer
    C

    It suggests seeking heuristics, approximations, or special tractable cases

    Explanation

    NP-completeness indicates that a universally efficient exact algorithm is unlikely, so researchers often explore approximation, heuristics, or restricted instances.

  42. 42

    What does the unresolved PPP versus NPNPNP question ask?

    1. A

      Whether randomness is more powerful than arithmetic

    2. B

      Whether all hard problems are impossible rather than merely inefficient

    3. C

      Whether every computer can simulate a universal Turing machine

    4. D

      Whether every problem whose solutions can be searched or verified efficiently is itself efficiently solvable

    Correct answer
    D

    Whether every problem whose solutions can be searched or verified efficiently is itself efficiently solvable

    Explanation

    The central question is whether P=NPP=NPP=NP, meaning whether the broad class of efficiently verifiable or searchable problems collapses to the efficiently solvable class.

  43. 43

    How does the lecture characterize the role of NP-completeness in scientific practice?

    1. A

      It is a theoretical tool for identifying promising questions and tractable cases

    2. B

      It is a method for guaranteeing optimal solutions to hard problems

    3. C

      It is a practical claim that every real instance is hopeless

    4. D

      It is a replacement for experiments in all scientific fields

    Correct answer
    A

    It is a theoretical tool for identifying promising questions and tractable cases

    Explanation

    The speaker presents intractability as a way to sort problems and instances, identify limits, and guide the search for better questions.

  44. 44

    What does the PCP theorem contribute to the study of hard problems?

    1. A

      It helps classify whether certain problems can be approximated effectively

    2. B

      It proves that every NP-complete problem has an exact linear-time algorithm

    3. C

      It defines the physical architecture of a modern computer

    4. D

      It establishes that random graphs model the brain exactly

    Correct answer
    A

    It helps classify whether certain problems can be approximated effectively

    Explanation

    The lecture describes the PCP theorem as addressing approximability, distinguishing problems such as splitting from problems such as clique.

  45. 45

    What is the distinction between supervised and unsupervised learning mentioned in the lecture?

    1. A

      Supervised learning uses labeled guidance, whereas unsupervised learning does not

    2. B

      Supervised learning is computationally hard, whereas unsupervised learning is always easy

    3. C

      Supervised learning always uses randomness, whereas unsupervised learning never does

    4. D

      Supervised learning concerns graphs, whereas unsupervised learning concerns only matrices

    Correct answer
    A

    Supervised learning uses labeled guidance, whereas unsupervised learning does not

    Explanation

    The lecture distinguishes the speaker's discussion of supervised learning from another discussion focused on unsupervised learning; supervised learning conventionally involves labeled examples.

  46. 46

    What is the setup of the online expert learning problem?

    1. A

      Each day, choose one expert and compare its outcome with the other experts' outcomes

    2. B

      Choose one fixed expert once and ignore all later outcomes

    3. C

      Assign every expert a permanent ranking before any data arrive

    4. D

      Observe the correct investment in advance and imitate it exactly

    Correct answer
    A

    Each day, choose one expert and compare its outcome with the other experts' outcomes

    Explanation

    The learner repeatedly chooses one of several experts, observes the day's outcomes, and uses the history to guide later choices.

  47. 47

    What makes the expert-learning environment adversarial?

    1. A

      The sequence of outcomes may be chosen to reduce the learner's performance

    2. B

      The outcomes are sampled independently from a known probability distribution

    3. C

      The learner is allowed to alter the experts' predictions

    4. D

      The experts are required to reveal their future advice

    Correct answer
    A

    The sequence of outcomes may be chosen to reduce the learner's performance

    Explanation

    An adversarial setting need not have a prior distribution; outcomes can be selected, even with knowledge of the learner's behavior, to make learning difficult.

  48. 48

    What performance goal is sought in the online expert problem?

    1. A

      To outperform every expert on every individual day

    2. B

      To guarantee a positive payoff regardless of all outcomes

    3. C

      To perform nearly as well as the best expert in hindsight

    4. D

      To identify the best expert before observing any outcomes

    Correct answer
    C

    To perform nearly as well as the best expert in hindsight

    Explanation

    The goal is low regret: after many rounds, the learner's cumulative performance should be close to that of the best expert selected retrospectively.

  49. 49

    How does the multiplicative weights algorithm initialize the six experts?

    1. A

      It assigns each expert probability 1/21/21/2

    2. B

      It assigns each expert probability 1/61/61/6

    3. C

      It assigns one expert probability 111 and the others probability 000

    4. D

      It assigns probabilities proportional to the experts' names

    Correct answer
    B

    It assigns each expert probability 1/61/61/6

    Explanation

    The algorithm begins with equal probability for all six experts, so each receives 1/61/61/6.

  50. 50

    How does multiplicative weights update the experts' probabilities?

    1. A

      It permanently eliminates every expert who performs poorly once

    2. B

      It increases the weights of better-performing experts and renormalizes them

    3. C

      It increases all weights by the same fixed additive amount

    4. D

      It assigns equal probability again after every round

    Correct answer
    B

    It increases the weights of better-performing experts and renormalizes them

    Explanation

    The algorithm boosts experts that perform better, reduces the relative influence of poorer performers, and divides by a normalizing constant so the weights form probabilities.

  51. 51

    What guarantee does multiplicative weights provide in the expert problem?

    1. A

      Its expected performance approaches the best expert with average gap on the order of log⁡nT\sqrt{\frac{\log n}{T}}Tlogn​​

    2. B

      Its guarantee depends only on the number of experts and not on the number of rounds

    3. C

      Its performance equals the best expert exactly after the first round

    4. D

      Its average gap from the best expert grows on the order of T2T^2T2

    Correct answer
    A

    Its expected performance approaches the best expert with average gap on the order of log⁡nT\sqrt{\frac{\log n}{T}}Tlogn​​

    Explanation

    The lecture states a bound of roughly log⁡nT\sqrt{\frac{\log n}{T}}Tlogn​​ for the expected average difference from the best expert after TTT rounds.

  52. 52

    What does the regret guarantee imply as the number of rounds increases?

    1. A

      The learner must identify which expert is best before the process ends

    2. B

      The learner's performance becomes independent of all observed outcomes

    3. C

      The learner eventually performs worse than every expert

    4. D

      The learner's average performance becomes increasingly close to that of the best expert

    Correct answer
    D

    The learner's average performance becomes increasingly close to that of the best expert

    Explanation

    Because log⁡nT\sqrt{\frac{\log n}{T}}Tlogn​​ decreases as TTT grows, the average performance gap shrinks over time.

  53. 53

    Which application is associated with multiplicative weights in artificial intelligence?

    1. A

      AdaBoost

    2. B

      Quicksort

    3. C

      Fermat testing

    4. D

      Set cover

    Correct answer
    A

    AdaBoost

    Explanation

    The lecture identifies AdaBoost as an AI application of the multiplicative-weights idea.

  54. 54

    Why is multiplicative weights considered an especially influential algorithmic idea?

    1. A

      It solves every NP-complete problem in polynomial time

    2. B

      A simple update rule applies across economics, game theory, AI, and optimization

    3. C

      It works only when all experts behave identically

    4. D

      It requires a known probability distribution for every environment

    Correct answer
    B

    A simple update rule applies across economics, game theory, AI, and optimization

    Explanation

    The same basic procedure has appeared in several fields and has been applied to problems including convex programming and network congestion.

  55. 55

    What two developments are identified as major engines of information technology?

    1. A

      Cryptography and unsupervised learning

    2. B

      Random graphs and biological evolution

    3. C

      Operating systems and mathematical incompleteness

    4. D

      Moore's Law and fast algorithms

    Correct answer
    D

    Moore's Law and fast algorithms

    Explanation

    The lecture identifies continuing hardware improvement through Moore's Law and algorithmic efficiency as complementary drivers.

  56. 56

    What trend is described by Moore's Law in the lecture?

    1. A

      Computer storage decreased by half every year and a half

    2. B

      Computer capability increased by exactly one unit every decade

    3. C

      Algorithmic running time doubled whenever hardware improved

    4. D

      Computer capability approximately doubled every year and a half for many decades

    Correct answer
    D

    Computer capability approximately doubled every year and a half for many decades

    Explanation

    Moore's Law is described as the approximate doubling of computer capability every eighteen months over a long period.

  57. 57

    Why does the lecture describe Moore's Law as partly a social phenomenon?

    1. A

      The trend was caused entirely by random variation in manufacturing

    2. B

      The trend resulted solely from an immutable law of physics

    3. C

      The trend occurred because software automatically doubles in size

    4. D

      Prediction, competition, business plans, and societal demand reinforced the trend

    Correct answer
    D

    Prediction, competition, business plans, and societal demand reinforced the trend

    Explanation

    The speaker characterizes Moore's Law as a self-reinforcing interaction among science, business competition, and society.

  58. 58

    Why would Moore's Law provide little benefit without fast algorithms?

    1. A

      Exponential algorithms always produce incorrect answers

    2. B

      Fast hardware cannot execute mathematical operations

    3. C

      Exponential-time algorithms can consume the hardware gains too quickly

    4. D

      Algorithms determine whether transistors physically exist

    Correct answer
    C

    Exponential-time algorithms can consume the hardware gains too quickly

    Explanation

    If an algorithm grows exponentially with input size, faster hardware may not make larger practical instances feasible, so hardware gains must be paired with efficient algorithms.

  59. 59

    Which sequence best describes the historical emphasis of computer science in the lecture?

    1. A

      It first focused on cryptography and later rejected algorithms

    2. B

      It first focused heavily on computers and later increasingly focused on the Internet

    3. C

      It first focused on biology and later defined computation

    4. D

      It first focused on neuroscience and later abandoned all engineering

    Correct answer
    B

    It first focused heavily on computers and later increasingly focused on the Internet

    Explanation

    The lecture describes roughly fifty years of intense study of the computer itself, followed by a period in which the Internet became central.

  60. 60

    Which development is presented as transforming the role of computers in society?

    1. A

      The invention of random graphs

    2. B

      The discovery of Fermat's theorem

    3. C

      The proof of the PCP theorem

    4. D

      The emergence of the Internet

    Correct answer
    D

    The emergence of the Internet

    Explanation

    The lecture says that the Internet changed everything and made people primarily users and students of an interconnected digital environment.

  61. 61

    Which engineering achievements are cited as products of computer science?

    1. A

      Operating systems, compilers, databases, chips, graphics, and networks

    2. B

      Only neural recordings, brain scans, and biological experiments

    3. C

      Only social theories about scientific communities

    4. D

      Only mathematical proofs concerning prime numbers

    Correct answer
    A

    Operating systems, compilers, databases, chips, graphics, and networks

    Explanation

    The lecture lists operating systems, compilers, databases, chip layout, graphics, networks, and interfaces among computer science's engineering accomplishments.

  62. 62

    How does the lecture frame theoretical computer science's relationship with other sciences?

    1. A

      It assumes every scientific problem should be solved by the same algorithm

    2. B

      It studies only artificial systems and excludes biology

    3. C

      It replaces empirical investigation with universal computation

    4. D

      It seeks to identify appropriate computational questions for each domain

    Correct answer
    D

    It seeks to identify appropriate computational questions for each domain

    Explanation

    The speaker presents computer science as engaging with fields such as evolution, economics, quantum physics, and neuroscience while asking which algorithmic questions fit each domain.

Question 1 of 62
Question 1 of 62

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent