1. Home
  2. Explore
  3. Computer Science
  4. Theoretical Computer Science

Study methods

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

Theoretical Computer Science

  • 38Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Algorithmic Themes

What is a central goal of recent work on algorithms for foundational problems such as graph connectivity and Markov-chain analysis?

38 questions

  1. 1

    What is a central goal of recent work on algorithms for foundational problems such as graph connectivity and Markov-chain analysis?

    1. A

      To replace all polynomial-time algorithms with algorithms that use no randomness

    2. B

      To prioritize practical speed even when no runtime guarantees can be proved

    3. C

      To show that foundational problems cannot be solved efficiently in the worst case

    4. D

      To obtain provably efficient algorithms, often with runtimes close to linear in the input size

    Correct answer
    D

    To obtain provably efficient algorithms, often with runtimes close to linear in the input size

    Explanation

    Recent advances have overcome long-standing barriers for a range of foundational problems, in some cases achieving nearly linear runtimes that are close to optimal.

  2. 2

    How can an iterative optimization method make a difficult problem easier to solve algorithmically?

    1. A

      It can convert every optimization problem into a problem with a closed-form solution

    2. B

      It can reduce the problem to repeatedly obtaining simpler information or carrying out simpler operations

    3. C

      It can avoid examining any information about the input after its first iteration

    4. D

      It can guarantee that each iteration is cheaper than the one before it

    Correct answer
    B

    It can reduce the problem to repeatedly obtaining simpler information or carrying out simpler operations

    Explanation

    Methods such as gradient descent and interior-point methods make progress through iterations that use information about the problem. This can reduce a difficult task to simpler repeated subproblems, such as matrix-vector products or finding paths.

  3. 3

    Why might the total cost of a sequence of subproblems be lower than the cost of solving each one independently?

    1. A

      The sequence may have shared structure that a data structure can exploit amortized over multiple steps

    2. B

      Later subproblems are always smaller than earlier ones in every iterative algorithm

    3. C

      An optimization method makes the input matrix sparse after its first iteration

    4. D

      The individual subproblems become unnecessary once the sequence is known

    Correct answer
    A

    The sequence may have shared structure that a data structure can exploit amortized over multiple steps

    Explanation

    A sequence of related subproblems may have joint structure. A data structure can maintain useful information across the sequence, making the amortized cost lower than repeatedly solving each problem from scratch.

  4. 4

    Which combination of techniques is characteristic of many recent fast-algorithm results discussed in the talk?

    1. A

      Graph drawing, numerical integration, and manual preprocessing

    2. B

      Optimization methods, data structures, and randomized sampling or sketching

    3. C

      Cryptographic protocols, database indexing, and compression alone

    4. D

      Exhaustive search, symbolic logic, and deterministic enumeration

    Correct answer
    B

    Optimization methods, data structures, and randomized sampling or sketching

    Explanation

    The results often combine optimization methods with data structures that organize their repeated computations, and use sampling or sketching to accelerate access to needed information.

  5. 5

    Why can reusing a randomized sketch inside an iterative algorithm create a difficulty?

    1. A

      The sketch necessarily changes the objective function being optimized

    2. B

      Randomness prevents an optimization method from taking more than one iteration

    3. C

      The next input to the data structure may depend on earlier outputs that used the same randomness

    4. D

      A sketch can only be applied to a matrix with no nonzero entries

    Correct answer
    C

    The next input to the data structure may depend on earlier outputs that used the same randomness

    Explanation

    If an algorithm uses a sketch's output to choose its next step, later inputs may adapt to earlier outputs. This dependence can violate the independence assumptions on which standard sketching guarantees rely.

  6. 6

    Which description best captures the two-way relationship between static and dynamic problems in the talk?

    1. A

      Static problems can only be solved after every possible dynamic update has occurred

    2. B

      Dynamic algorithms eliminate the need for static optimization methods

    3. C

      Static optimization can lead to dynamic subproblems, while optimization theory can also reduce some dynamic tasks to static ones

    4. D

      Static and dynamic problems are equivalent only when the input never changes

    Correct answer
    C

    Static optimization can lead to dynamic subproblems, while optimization theory can also reduce some dynamic tasks to static ones

    Explanation

    An optimization method for a static problem may generate a sequence of subproblems that a dynamic data structure can maintain. Conversely, some dynamic problems can be addressed by solving a sequence of static optimization problems.

  7. 7

    How does sketching in the discussed linear-programming approach differ from simply sparsifying the input program?

    1. A

      It compresses information at different scales to maintain what is needed over time, rather than replacing the program with a smaller static approximation

    2. B

      It converts the linear program into a smaller program with exactly the same constraints

    3. C

      It permanently removes constraints after estimating their contribution once

    4. D

      It discards every constraint whose value is not currently minimal

    Correct answer
    A

    It compresses information at different scales to maintain what is needed over time, rather than replacing the program with a smaller static approximation

    Explanation

    The approach uses sketches to support dynamic access to information about constraints as the algorithm progresses. It does not generally discard constraints by constructing a smaller static linear program.

  8. 8

    Which statement describes the primal linear-program form presented in the talk?

    1. A

      It maximizes a nonlinear function over unrestricted vectors

    2. B

      It minimizes a barrier function without imposing any constraints

    3. C

      It maximizes the number of nonzero entries subject to quadratic constraints

    4. D

      It minimizes the cost of a nonnegative vector subject to linear constraints

    Correct answer
    D

    It minimizes the cost of a nonnegative vector subject to linear constraints

    Explanation

    The primal form described is a minimization problem with a linear cost, a nonnegative decision vector, and linear constraints.

  9. 9

    What geometric object is formed by intersecting the half-spaces associated with a linear program's constraints?

    1. A

      A line segment joining the objective vector to the origin

    2. B

      A sphere containing every point that violates a constraint

    3. C

      A convex polytope representing the feasible region

    4. D

      A nonconvex region with one component per constraint

    Correct answer
    C

    A convex polytope representing the feasible region

    Explanation

    Each linear inequality defines a half-space, and their intersection is a convex feasible region, described in the talk as a polytope.

  10. 10

    In the geometric picture of a linear program, what does optimizing a linear objective over the feasible polytope seek?

    1. A

      A point outside the polytope that is closest to every constraint

    2. B

      A point in the feasible region that optimizes the objective in its specified direction

    3. C

      A direction perpendicular to all of the polytope's faces

    4. D

      The center of the polytope, regardless of the objective

    Correct answer
    B

    A point in the feasible region that optimizes the objective in its specified direction

    Explanation

    A linear objective selects an optimizing point of the feasible region in the direction determined by the objective. The talk illustrates this by describing an objective directed toward the bottom of the polytope.

  11. 11

    Why can techniques for general linear programming matter beyond linear programs themselves?

    1. A

      They prove that these other problems are not optimization problems

    2. B

      They can also provide tools for problems such as maximum flow, Markov decision processes, and L1L_1L1​ regression

    3. C

      They apply only when the other problem has no constraints

    4. D

      They make every such problem independent of its input size

    Correct answer
    B

    They can also provide tools for problems such as maximum flow, Markov decision processes, and L1L_1L1​ regression

    Explanation

    The talk notes that tools for linear programming have implications for several special cases or related problems, including maximum flow, Markov decision processes, and L1L_1L1​ regression.

  12. 12

    How does the simplex method proceed in the geometric interpretation described?

    1. A

      It samples constraints until the feasible region becomes a single half-space

    2. B

      It repeatedly shrinks a containing ellipsoid until only one point remains

    3. C

      It starts at a polytope corner and moves between corners toward an optimum

    4. D

      It follows the center of the polytope by solving a sequence of linear systems

    Correct answer
    C

    It starts at a polytope corner and moves between corners toward an optimum

    Explanation

    The simplex method can be viewed as starting at a corner of the polytope and walking toward an optimal corner. It can be fast in practice, though its theoretical worst-case performance is not generally the fastest known.

  13. 13

    What is the basic geometric idea of the ellipsoid method?

    1. A

      Walk along adjacent corners while improving the objective

    2. B

      Start with a large set containing a solution and repeatedly shrink it

    3. C

      Discard all but the constraint closest to the current point

    4. D

      Increase a barrier parameter until the feasible region disappears

    Correct answer
    B

    Start with a large set containing a solution and repeatedly shrink it

    Explanation

    The ellipsoid method begins with a large set containing a minimizer and iteratively shrinks the set in search of the solution.

  14. 14

    Which statement best reflects the comparison of linear-programming methods in the talk?

    1. A

      The simplex method was described as having the best known worst-case runtime in every setting

    2. B

      All three methods were described as having identical theoretical and practical behavior

    3. C

      The ellipsoid method was described as always fastest both in theory and in practice

    4. D

      Interior-point methods were described as state-of-the-art, often strong in theory and potentially fast in practice

    Correct answer
    D

    Interior-point methods were described as state-of-the-art, often strong in theory and potentially fast in practice

    Explanation

    The talk identifies interior-point methods as the state of the art for linear programming, noting that they can be fast in theory and in practice. It contrasts this with the simplex method's theoretical worst-case limitations and the ellipsoid method's more moderate practical performance.

  15. 15

    What kind of accuracy regime was emphasized when discussing the linear-programming algorithms?

    1. A

      Exact arithmetic only, with a runtime independent of the desired accuracy

    2. B

      Constant accuracy only, with no dependence on the problem's conditioning

    3. C

      Approximation accuracy that must decrease linearly with the number of constraints

    4. D

      High accuracy, with logarithmic dependence on accuracy and condition-related measures often suppressed in the runtime

    Correct answer
    D

    High accuracy, with logarithmic dependence on accuracy and condition-related measures often suppressed in the runtime

    Explanation

    The discussion focused on solving linear programs to high accuracy. Logarithmic dependence on the accuracy parameter and relevant condition measures was often hidden when runtimes were stated.

  16. 16

    What role does a barrier function play in a path-following interior-point method?

    1. A

      It removes all constraints whose half-spaces contain the current point

    2. B

      It is defined inside the polytope and grows without bound as a point approaches the boundary

    3. C

      It assigns zero cost to every boundary point and infinite cost to the center

    4. D

      It replaces the linear objective with a discrete objective over vertices

    Correct answer
    B

    It is defined inside the polytope and grows without bound as a point approaches the boundary

    Explanation

    A barrier function is defined in the interior of the polytope and has values that tend to infinity as the boundary is approached, discouraging the method from leaving the interior.

  17. 17

    What happens to the minimizers of the penalized objective as the parameter ttt increases in a path-following method?

    1. A

      They move from an optimal vertex toward the center and then leave the feasible region

    2. B

      They trace the boundary of the polytope without entering its interior

    3. C

      They trace a central path that moves from a barrier-centered point toward an optimum of the linear program

    4. D

      They remain fixed because the barrier term cancels the cost for every ttt

    Correct answer
    C

    They trace a central path that moves from a barrier-centered point toward an optimum of the linear program

    Explanation

    At t=0t=0t=0, minimizing the barrier seeks a central point. As ttt grows, the cost receives increasing emphasis, and the minimizers follow the central path toward a solution of the linear program.

  18. 18

    What computation is characteristic of a Newton step in the path-following method described?

    1. A

      Sort all constraints by their distance and select the farthest one

    2. B

      Compute a maximum matching in the constraint graph

    3. C

      Form the Hessian, apply its inverse to a gradient, and move in the resulting direction

    4. D

      Replace the objective with a random linear function and choose a vertex

    Correct answer
    C

    Form the Hessian, apply its inverse to a gradient, and move in the resulting direction

    Explanation

    The described Newton step uses the Hessian and gradient of the penalized objective: it applies the inverse Hessian to the gradient to determine a direction of movement.

  19. 19

    How can the interior-point approach be viewed as reducing linear programming to a simpler computational task?

    1. A

      It repeatedly solves linear systems involving derivatives of the objective and barrier

    2. B

      It avoids numerical computation by following only polytope vertices

    3. C

      It replaces every constraint with a separate maximum-flow instance

    4. D

      It solves the linear program by enumerating all possible feasible vectors

    Correct answer
    A

    It repeatedly solves linear systems involving derivatives of the objective and barrier

    Explanation

    In the account given, the Newton steps require solving linear systems involving the Hessian and gradient. Thus, interior-point methods reduce linear programming to a sequence of such systems, alongside access to the relevant functions.

  20. 20

    What is the significance of the iteration bounds described for classic interior-point approaches?

    1. A

      Every known method required exactly n+dn+dn+d iterations, regardless of its implementation

    2. B

      The iteration count was always independent of both the number of constraints and the dimension

    3. C

      A method with d\sqrt{d}d​ iterations was possible only when there were no constraints

    4. D

      A method with about n\sqrt{n}n​ iterations was known, while other approaches achieved about d\sqrt{d}d​ under additional tools or more favorable iteration costs

    Correct answer
    D

    A method with about n\sqrt{n}n​ iterations was known, while other approaches achieved about d\sqrt{d}d​ under additional tools or more favorable iteration costs

    Explanation

    The talk describes a foundational n\sqrt{n}n​-iteration result and improvements involving dimension, including a d\sqrt{d}d​-iteration method using the universal barrier and a method combining favorable iteration count and cost characteristics.

  21. 21

    Why was the universal barrier significant for the iteration count?

    1. A

      It removed the need to compute Hessians or solve linear systems

    2. B

      Accessing it could yield an interior-point method with about d\sqrt{d}d​ iterations

    3. C

      It converted every linear program into one with only a single constraint

    4. D

      It guaranteed a constant number of iterations independent of dimension

    Correct answer
    B

    Accessing it could yield an interior-point method with about d\sqrt{d}d​ iterations

    Explanation

    The talk states that computing or accessing the universal barrier, defined using volumes of polars and polytopes, could improve the iteration count to about d\sqrt{d}d​.

  22. 22

    Why can a data structure improve a linear-programming algorithm even if the number of optimization iterations does not decrease?

    1. A

      It can change the feasible region so that fewer constraints remain

    2. B

      It can reduce the amortized cost of maintaining information needed across the iterations

    3. C

      It can guarantee that every iteration requires no computation

    4. D

      It can make the optimization method independent of the input matrix

    Correct answer
    B

    It can reduce the amortized cost of maintaining information needed across the iterations

    Explanation

    The talk emphasizes that recent improvements can make the iterates easier to implement by reducing the information that must be maintained, even without improving the iteration count itself.

  23. 23

    Under what broad conditions does a runtime of ndndnd plus a term depending only polynomially on ddd become nearly linear in the input size?

    1. A

      When the matrix has no nonzero entries and ddd is larger than nnn

    2. B

      When the matrix is dense and sufficiently tall, so its nonzero count is at least on the order of ndndnd

    3. C

      When the input is sparse enough that it contains fewer than ddd nonzero entries

    4. D

      When the matrix is square and every constraint is redundant

    Correct answer
    B

    When the matrix is dense and sufficiently tall, so its nonzero count is at least on the order of ndndnd

    Explanation

    For a dense, sufficiently tall matrix, the number of nonzero entries is at least ndndnd. In that setting, a runtime of ndndnd plus a polynomial-in-ddd term can be expressed as nearly linear in the input size.

  24. 24

    What information must an interior-point algorithm track about its current point in the data-structure problem discussed?

    1. A

      An estimate of the point's distance from each constraint

    2. B

      The exact optimal solution for every possible objective vector

    3. C

      The complete history of all feasible points in the polytope

    4. D

      The shortest path between every pair of constraints

    Correct answer
    A

    An estimate of the point's distance from each constraint

    Explanation

    The algorithm needs at least an approximate estimate of how far its current point is from every constraint. The talk notes that even a crude multiplicative estimate can be necessary.

  25. 25

    Why is it difficult to maintain distances to all constraints by simply keeping track of the nearest constraint?

    1. A

      A movement in a particular direction can make a specific constraint important, even if it was not previously nearest

    2. B

      Distances to constraints cannot be represented by numbers

    3. C

      The algorithm is required to move only along the polytope's boundary

    4. D

      The nearest constraint is always the same throughout an interior-point method

    Correct answer
    A

    A movement in a particular direction can make a specific constraint important, even if it was not previously nearest

    Explanation

    A point's movement can bring a particular constraint into focus. For example, moving in the direction of one constraint may make that constraint's distance especially important, so a single previously identified constraint is not enough.

  26. 26

    In the simplified distance-maintenance problem, what does the vector AδiA\delta_iAδi​ represent?

    1. A

      The result of deleting the iiith constraint from the matrix

    2. B

      The current objective values of all vertices of the polytope

    3. C

      The exact solution to the linear program after iteration iii

    4. D

      The changes in the distances to the constraints caused by the movement δi\delta_iδi​

    Correct answer
    D

    The changes in the distances to the constraints caused by the movement δi\delta_iδi​

    Explanation

    If the current vector of constraint distances is sss, then adding AδiA\delta_iAδi​ models how a movement δi\delta_iδi​ changes those distances.

  27. 27

    Why does a bound on the total change in constraint distances help make a fast data structure possible?

    1. A

      It proves that no constraint distance ever changes

    2. B

      It limits how many distances change substantially, allowing effort to focus on detecting significant changes

    3. C

      It ensures that every distance changes by the same amount

    4. D

      It allows the algorithm to delete all constraints after one iteration

    Correct answer
    B

    It limits how many distances change substantially, allowing effort to focus on detecting significant changes

    Explanation

    The interior-point analysis bounds the accumulated changes in the distances. If the data structure can detect substantial changes without scanning every constraint at every step, that bound can support a faster total runtime.

  28. 28

    How can a sketch help find coordinates of a vector that are unusually large?

    1. A

      A sketch can identify large coordinates only after the original vector is sorted

    2. B

      A sketch removes all coordinates whose signs differ from the mean

    3. C

      A suitable projection can compress the data while enabling recovery of coordinates that carry a large fraction of the vector's L2L_2L2​ norm

    4. D

      A sketch stores every coordinate exactly, so no recovery procedure is needed

    Correct answer
    C

    A suitable projection can compress the data while enabling recovery of coordinates that carry a large fraction of the vector's L2L_2L2​ norm

    Explanation

    The talk uses count-sketch-style projections: after preprocessing, the sketch can identify coordinates that account for a sufficiently large portion of the vector's L2L_2L2​ norm.

  29. 29

    How can sketches at multiple scales support detection of constraints whose distances change by a substantial amount?

    1. A

      Use sketches corresponding to different thresholds and select the scale suited to the size of the movement

    2. B

      Use one sketch only after setting every distance to zero

    3. C

      Apply the sketch only to constraints that have already been deleted

    4. D

      Choose a new unrelated sketch for every coordinate at every iteration

    Correct answer
    A

    Use sketches corresponding to different thresholds and select the scale suited to the size of the movement

    Explanation

    The method can use sketches at thresholds such as powers of two, estimate the movement's scale, and inspect the corresponding sketch to recover coordinates with significant changes.

  30. 30

    How does checking candidate changes at a larger threshold help address adaptive use of a sketch?

    1. A

      The algorithm hides the sketch's output from every later iteration

    2. B

      The algorithm permanently accepts every candidate without verification

    3. C

      The sketch identifies a broader candidate set, and the algorithm checks actual changes before reporting the exact-threshold results

    4. D

      The larger threshold makes the sketch independent of the input by definition

    Correct answer
    C

    The sketch identifies a broader candidate set, and the algorithm checks actual changes before reporting the exact-threshold results

    Explanation

    The algorithm can detect candidates at a larger threshold and then inspect them directly to verify their true changes. This allows the reported output to be determined by the exact changes rather than by sketch randomness, supporting safe reuse.

  31. 31

    What is a matching in a graph?

    1. A

      A path that visits every vertex exactly twice

    2. B

      A set of vertices in which every pair is connected by an edge

    3. C

      A set of edges that includes every edge incident to at least one vertex

    4. D

      A set of edges in which no vertex is incident to more than one selected edge

    Correct answer
    D

    A set of edges in which no vertex is incident to more than one selected edge

    Explanation

    A matching is a collection of edges with no shared endpoints: each vertex is incident to at most one edge in the collection.

  32. 32

    What does it mean for a matching to be a (1−ϵ)(1-\epsilon)(1−ϵ)-approximation to a maximum matching?

    1. A

      Every vertex is matched with probability exactly 1−ϵ1-\epsilon1−ϵ

    2. B

      It has at most 1−ϵ1-\epsilon1−ϵ edges fewer than the number of vertices

    3. C

      Its size is at least a (1−ϵ)(1-\epsilon)(1−ϵ) fraction of the maximum possible matching size

    4. D

      It contains exactly a ϵ\epsilonϵ fraction of the graph's edges

    Correct answer
    C

    Its size is at least a (1−ϵ)(1-\epsilon)(1−ϵ) fraction of the maximum possible matching size

    Explanation

    The approximation guarantee compares the size of the maintained matching with the maximum matching: it must be at least a (1−ϵ)(1-\epsilon)(1−ϵ) fraction as large.

  33. 33

    What makes the matching problem decremental in the setting described?

    1. A

      The algorithm receives a new unrelated graph at every step

    2. B

      Edges are deleted over time, and an approximate matching must be maintained after each deletion

    3. C

      Vertices are repeatedly renamed while all edges remain fixed

    4. D

      Edges are only added, and the matching is computed once at the end

    Correct answer
    B

    Edges are deleted over time, and an approximate matching must be maintained after each deletion

    Explanation

    A decremental problem starts with a graph and processes edge deletions. The task is to maintain an approximate maximum matching as the graph changes.

  34. 34

    What is a fractional matching?

    1. A

      A matching in which every selected edge has an integer weight greater than one

    2. B

      A set of edges in which each vertex must have exactly two selected incident edges

    3. C

      A nonnegative value assignment to edges such that the total value incident to each vertex is at most one

    4. D

      A probability distribution over vertices with no constraint on incident edges

    Correct answer
    C

    A nonnegative value assignment to edges such that the total value incident to each vertex is at most one

    Explanation

    A fractional matching assigns nonnegative values to edges, with the sum of values on edges adjacent to any vertex bounded by one.

  35. 35

    Why can maintaining a sufficiently large fractional matching help with maintaining a dynamic matching?

    1. A

      A fractional matching prevents any edge deletions from changing the graph

    2. B

      Known reductions can use fractional matchings as an intermediate representation for approximate matchings

    3. C

      A fractional matching is always identical to a maximum integral matching

    4. D

      Fractional values eliminate the need to respect vertex constraints

    Correct answer
    B

    Known reductions can use fractional matchings as an intermediate representation for approximate matchings

    Explanation

    The talk describes known reductions from maintaining dynamic matchings to maintaining dynamic fractional matchings. A fractional matching can also be viewed through convex combinations of integral matchings.

  36. 36

    Why can a dynamic-matching algorithm keep using a computed fractional matching for some time after edge deletions?

    1. A

      Deleting edges never changes the value of a fractional matching

    2. B

      The maximum matching size must remain constant until every edge is deleted

    3. C

      If only a small fraction of its total assigned value is deleted, the remaining matching can still be approximately large enough

    4. D

      A matching automatically restores deleted edge values on other edges

    Correct answer
    C

    If only a small fraction of its total assigned value is deleted, the remaining matching can still be approximately large enough

    Explanation

    The described strategy removes deleted edges from the fractional matching and continues using it while the lost assigned value is small relative to its total value, preserving an approximate guarantee.

  37. 37

    What is the purpose of adding an entropy regularizer when computing a fractional matching?

    1. A

      It can encourage values to be spread across edges rather than concentrated on a brittle choice

    2. B

      It guarantees that the fractional matching has only one positive edge

    3. C

      It forces every edge to have value zero

    4. D

      It makes the matching objective independent of edge deletions

    Correct answer
    A

    It can encourage values to be spread across edges rather than concentrated on a brittle choice

    Explanation

    Entropy regularization can encourage a more distributed fractional solution. In the complete-graph example, spreading values across edges can be less brittle than choosing just one matching.

  38. 38

    How can the maximum-flow advances contribute to the dynamic-matching approach described?

    1. A

      A matching instance can be solved only after converting every edge into a vertex

    2. B

      A maximum-flow algorithm directly prevents matching edges from being deleted

    3. C

      Maximum flow proves that fractional matchings cannot be approximated

    4. D

      A suitable entropy-regularized matching problem can be reduced to a flow-optimization problem that can be solved using fast maximum-flow methods

    Correct answer
    D

    A suitable entropy-regularized matching problem can be reduced to a flow-optimization problem that can be solved using fast maximum-flow methods

    Explanation

    The talk explains that, after reformulating the optimization problem, the entropy-regularized fractional matching can be placed in a broader flow-optimization framework and solved using fast maximum-flow advances.

Question 1 of 38
Question 1 of 38

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent