1. Home
  2. Explore
  3. Other
  4. Meeting Logistics and Speaker Introduction

Study methods

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

Meeting Logistics and Speaker Introduction

Speaker 1Speaker 2

Meeting Logistics and Speaker Introduction

14:46
0:00-14:46
  1. Anna

    Welcome to our episode on the dawn of computational complexity. We’re following Richard Karp’s account of how the field developed from the late 1950s through the early 1970s, especially around the emergence of P, NP, and NP-completeness.

  2. Michael

    Let’s begin with the basic setting. The problems under discussion are decision problems: an input is a string of symbols over a finite alphabet representing some mathematical structure, and an algorithm must accept or reject that input.

  3. Anna

    P is the class of decision problems solvable in polynomial time by deterministic algorithms. NP is the class solvable in polynomial time by nondeterministic algorithms. A more illuminating description of NP is that, given a proposed witness, the algorithm can test in polynomial time whether that witness really proves that the input should be accepted.

  4. Michael

    That helps explain why NP includes so many optimization problems from applications. The associated decision question often asks whether there is a solution meeting some target, while the witness is the proposed solution itself.

  5. Anna

    The central intuition is that P may be smaller than NP because solving a typical NP problem seems to require an exponential search. But that intuition has never been proved. The question of whether P equals NP remains one of the central problems in complexity theory.

  6. Michael

    A problem is called NP-complete if it is in NP and is at least as hard as every problem in NP in the relevant reduction sense. In particular, if any NP-complete problem were in P, then P would equal NP. That is why NP-complete problems are viewed as the hardest problems in NP.

  7. Anna

    Karp’s historical story begins in 1959, just after his PhD. At that time, there was no established complexity theory. There was some earlier work, including a sketchy contribution by Michael Rabin, but the field had not yet developed its modern framework.

  8. Michael

    There was, however, substantial work on combinatorial algorithms. George Dantzig’s simplex algorithm was immensely valuable for linear programming, which asks us to maximize or minimize a linear function subject to linear inequality constraints.

  9. Anna

    The simplex method was highly reliable in practice, but it was not known to be polynomial-time. In fact, examples were known that could make it take exponential time. So its practical success did not come with a clear theoretical guarantee.

  10. Michael

    Another influential development came from Rabin and Scott’s work on finite automata. They introduced nondeterministic finite automata, and the idea of nondeterminism later became essential to complexity theory.

  11. Anna

    Graph algorithms were also advancing. Borůvka had given an early fast algorithm for minimum spanning trees, and researchers developed algorithms for shortest paths, network flows and cuts, and testing whether a graph was strongly connected.

  12. Michael

    But researchers were not yet rigorous about running-time estimates. They often judged an algorithm by whether it seemed effective. For example, Ford and Fulkerson created the maximum-flow algorithm associated with the Max-Flow Min-Cut Theorem, but did not check whether their stated version ran in polynomial time. As stated, it did not, although it could be modified to obtain a polynomial-time algorithm.

  13. Anna

    Data structures also had not yet reached their later sophistication. Inventive data structures eventually reduced the running times of many algorithms, sometimes bringing them close to linear time. Bob Tarjan was one of the leading architects of this kind of work.

  14. Michael

    At the time, some problems were considered hard simply because nobody had found a fast method for solving them. Dantzig thought integer programming might be a central problem because many applications could potentially be mapped to it.

  15. Anna

    Linear programming optimizes over a polytope, a geometric region defined by linear inequalities. Integer programming adds the requirement that the variables must be integers, which makes the problem much tougher.

  16. Michael

    The cutting-plane approach tries to handle that difficulty geometrically. First, solve the fractional linear-programming relaxation. Then find a linear inequality satisfied by all integer solutions, add that inequality, and thereby cut away part of the fractional polytope without eliminating any legitimate integer solution.

  17. Anna

    The method keeps slicing away at the relaxation until the best point of the remaining polytope is integral. It works well in many cases, but historically it came without strong guarantees on the number of iterations or the total running time. Dan Gusfield summarized the practical attitude with the advice, ‘Always try integer programming; it might work.’

  18. Michael

    Ralph Gomory provided an important result around 1960. He showed that a particular version of the cutting-plane method eventually terminates with an optimal solution, although he could not bound how long the process might take.

  19. Anna

    The approach also achieved impressive practical successes. Dantzig, Fulkerson, and Johnson solved a 49-city traveling-salesman instance involving the state capitals of the continental United States plus Washington, D.C., using cutting planes.

  20. Michael

    The traveling-salesman problem asks for a minimum-cost set of edges forming a tour through the cities. In one formulation, every city must have two incident chosen edges, and every nonempty partition of the cities into two parts must have at least two edges crossing between those parts.

  21. Anna

    The linear relaxation allows fractional edge weights rather than requiring edges to be selected completely. Researchers start with that relaxed polytope and add cutting planes until they obtain an optimal integer tour. Later work by Applegate, Cook, Cvetal, and Bixby pushed this approach much further, solving instances with as many as 80,000 cities, though with extravagant computing requirements.

  22. Michael

    Meanwhile, the foundations of complexity theory began appearing in the 1960s. Manuel Blum developed an axiomatic approach in which the resource being measured did not have to be time or space; it could be any resource satisfying certain natural conditions.

  23. Anna

    Blum proved striking results in that framework, including the existence of problems for which every algorithm can be exponentially improved, and then exponentially improved again, regardless of how many such improvements are applied. A different and especially influential approach came from Hartmanis and Stearns, who studied time and space on Turing machines.

  24. Michael

    Hartmanis and Stearns defined complexity classes based on those resources and proved hierarchy theorems. These showed that giving an algorithm even somewhat more time or space can allow it to solve a strictly larger collection of problems. They also studied simulation questions, such as simulating a multitape Turing machine with a single-tape machine.

  25. Anna

    Alan Cobham then advocated a more focused viewpoint: the boundary between polynomial-time and non-polynomial-time computation. He defined what we now call P and explained why polynomial time is a reasonable theoretical formulation of efficient solvability. He even hinted at NP, although his paper received little attention at the time.

  26. Michael

    Karp’s collaboration with Jack Edmonds reinforced this polynomial-time perspective. They worked on network flows, matching, and assignment problems, including pairing boys and girls to minimize or maximize the total benefit of the pairings.

  27. Anna

    Edmonds also produced polynomial-time algorithms for important problems such as non-bipartite matching and matroid intersection. He observed that these problems belonged to NP intersect coNP, which led him to conjecture that P equals NP intersect coNP. That conjecture has not been disproved.

  28. Michael

    Karp described Edmonds’s emphasis on polynomial-time algorithms as highly influential on his own teaching and research. One memorable episode involved Silvio Micali and Vijay Vazirani, who were students in one of his courses.

  29. Anna

    Karp had presented a result with John Hopcroft for maximum matching in bipartite graphs, with a running time proportional to the square root of the number of vertices times the number of edges. He challenged Micali and Vazirani to obtain the same bound for non-bipartite matching, a substantially more difficult problem.

  30. Michael

    They became so absorbed in the challenge that they neglected the other course requirements. Karp eventually gave them the lowest passing grade that would keep them from being dismissed from graduate school, while they apparently cared more about being close to solving the research problem.

  31. Anna

    The next major turning point was Stephen Cook’s 1971 paper. Cook showed that satisfiability is central to NP: every problem in NP can be efficiently transformed into an instance of satisfiability. This established the first NP-complete problem.

  32. Michael

    Karp immediately recognized that many combinatorial problems seemed to have the same status as satisfiability. His strategy was to prove that satisfiability could be reduced to those problems, showing that they were also NP-complete.

  33. Anna

    Here is the reduction idea. A decision problem A is polynomial-time reducible to a decision problem B if there is a polynomial-time algorithm that maps every input of A to an input of B, preserving acceptance and rejection. If B can be solved in polynomial time, then A can also be solved in polynomial time by performing the transformation and solving the resulting instance of B.

  34. Michael

    Polynomial-time reducibility is transitive. So if satisfiability reduces to X and X reduces to Y, then satisfiability reduces to Y. Cook’s theorem supplies reductions from every NP problem to satisfiability, and Karp’s reductions supplied paths from satisfiability to many other problems. Therefore these problems have the same status with respect to membership in P: either they are all in P, or they are all outside P.

  35. Anna

    Karp’s original paper showed 21 problems to be NP-complete. Thousands have since been classified this way. Later results often established sharper versions—for example, NP-completeness of three-coloring for regular planar graphs of degree four, and of Hamiltonian circuit even for highly restricted cubic, three-connected planar graphs.

  36. Michael

    There was also work beyond NP. Meyer and Stockmeyer showed that extending regular expressions with a squaring operator produces a problem requiring exponential space. They also studied a logical decision problem for which an instance of size 610 would require more computation steps than there are protons in the known universe.

  37. Anna

    After the early wave of NP-completeness results, research expanded into approximation algorithms and the hardness of approximating combinatorial optimization problems. Karp then returned to satisfiability and discussed modern practical methods such as resolution and CDCL, or conflict-driven clause learning.

  38. Michael

    In CDCL, the solver selects literals, follows their implications—often producing unit clauses—and continues until it either succeeds or reaches a conflict. After a conflict, it analyzes the cause, learns a new clause, and adds that clause to the problem. Karp found it astonishing that resolution and CDCL, combined with heuristics, can solve instances with millions of variables, even though he regarded the underlying approaches as rather primitive.

  39. Anna

    The same puzzle appears in other successful systems, including programs that play chess better than any human and AI systems that label, recognize, or classify images. These systems can perform extremely well, but current complexity theory does not provide a well-defined metric that captures the true difficulty of those tasks.

  40. Michael

    That connects to the question of problem structure. Worst-case complexity can hide the fact that practical inputs may have useful properties. For example, algorithms can behave better on graphs with small tree width, or on clustering instances where near-optimal solutions are all very similar.

  41. Anna

    There are also examples showing that pathological worst cases may be rare. Although the simplex method has contrived instances requiring exponential time, randomly perturbing the data by an arbitrarily small amount can eliminate those bad examples. This suggests that the troublesome cases may occupy a very small region of the overall space of inputs.

  42. Michael

    Randomness played an important role in other areas too. Karp studied random graph problems, such as finding matchings or Hamiltonian circuits, and investigated the densities at which these problems become possible or difficult. He also studied traveling-salesman instances with cities randomly distributed in a planar region.

  43. Anna

    He eventually felt that standard random models, such as Erdős–Rényi random graphs or uniform point distributions, did not realistically capture the structure of real applications. The probabilistic analysis was enjoyable and produced elegant results, but he doubted that those assumptions alone would transform practical algorithm design.

  44. Michael

    Randomized algorithms also appeared in the study of primality. Karp listed primality, graph isomorphism, and linear programming among problems whose complexity status he had not been able to settle in his original NP-completeness work. The Miller–Rabin algorithm gave a polynomial-time randomized approach to primality, and later the AKS result established a deterministic polynomial-time algorithm.

  45. Anna

    Another open direction concerns quantum algorithms: it is not known, in the context discussed, whether polynomial time on a quantum machine is the same as polynomial time on a standard Turing machine. Communication complexity is a separate thriving area, where the resource is the number of bits different parties, such as Alice and Bob, must exchange to make a decision.

  46. Michael

    The discussion also returned to algorithm engineering and modern data sizes. Researchers study algorithms in settings such as cloud computation, streaming, and sublinear algorithms. Because datasets can be enormous, there is particular interest in algorithms with very low polynomial running times—often no worse than quadratic—and in methods that process only part of the input.

  47. Anna

    Finally, there is a broader question about which resources complexity theory should prioritize. Blum’s axiomatic framework shows that many resources can be studied, and communication is especially natural in distributed computation. Still, Karp argued that time is probably central because it is the resource one most naturally thinks of when measuring computation.

  48. Michael

    So the historical arc runs from practical combinatorial algorithms with uncertain running times, through formal studies of time and space, to the decisive focus on polynomial time. Cook’s theorem and Karp’s reductions then gave researchers a way to recognize thousands of problems as sharing the same NP-complete barrier.

  49. Anna

    And the story does not end with worst-case classifications. Practical solvers, randomized methods, structural restrictions, approximation algorithms, communication models, streaming, and quantum computation all show that understanding real computation requires more than one complexity measure. That combination of rigorous theory and surprising practical performance is what makes the dawn of computational complexity such a fascinating period.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent