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

Transcript

SANDY IRANI: All right. Good afternoon. And welcome to today's Richard M. Karp distinguished lecture. My name is Sandy Irani. I'm the associate director of the Simons Institute. And for those of you who are unfamiliar with Simons, which is probably absolutely no one here-- but anyway-- we are the world's leading venue for collaborative research in theoretical computer science established in 2012 with a generous grant from the Simons Foundation. We bring together the world's leading researchers

in the theory of computing and related fields. So we established this particular lecture series, the Richard M. Karp distinguished lecture series, to celebrate the role of Simons founding director Dick Karp in establishing the field of theoretical computer science, formulating its central problems and a stunning array of results. The series features visionary leaders, such as we have today, in the field of theoretical computer science and is geared towards a broad scientific audience.

So we're very grateful to all the people who have contributed to this fund and made the talk series possible. And I'm delighted today to welcome our speaker Aaron Sidford, who probably needs no introduction in this group. Aaron received his PhD in EECS at MIT and is now-- and I had to update this. I was going to say he was an assistant professor. But as of Friday, he's an associate professor-- congratulations, Aaron-- in the Department of Management Science and Engineering and CS at Stanford. And his research interests are very much aligned with the topic of the current program in data structures, optimization, graph theory, numerical linear algebra data structures. And he's really been a major player in the advancement of the field, which, as you know, has led to some really stunning breakthrough results, giving nearly optimal algorithms for many of the foundational problems in our field. And also, as you probably know, Aaron

has done just a huge amount of work in organizing this program and has put a lot of thought into what you can hope to accomplish this semester and how to structure this program to be as productive as possible. So it's especially apt to have him giving this talk at the beginning of the semester sort giving an overview of the field. And the title of today's talk is aptly titled an Introduction to Data Structures and Optimization for Fast Algorithms. So please join me in welcoming Aaron. [APPLAUSE]

AARON SIDFORD: Well, thank you very much for that generous introduction. And thank you for inviting me. And thank you to the Institute for everything and helping to put together this quarter. It is a-- semester. This is a real pleasure to be presenting here today. I'm delighted to be giving this introduction to data structures and optimization for fast algorithms. And yes, this is the first talk I am giving as a tenured faculty. So thank you. It is quite an honor to be doing that here. So thank you. So the plan for this talk, the focus of the talk and the main goal is to give an introduction and a broad motivation for this program happening this quarter on data structures and optimization for fast algorithms. And my main goal and plan for the talk is to try to convey some of the main themes and reasons for excitement and motivations and everything underlying this program happening at the Institute this quarter. So I'm going to start with a kind of broad introduction

to the program and the area and this line of work on getting fast algorithms for a number of problems. And after this introduction kind of broadly to the area, I'm going to spend a bit more time going a little more in depth on what I think are some illustrative examples that I think really well highlight some of the major themes running through the program. So I'll start with-- and this will probably be the most substantive part of the talk. I'll go a bit more in depth on different certain aspects of linear programming that I think well articulate some of the themes of the program. I'll then talk a little bit about the dynamic matching problem, about bipartite matching and dynamic algorithms for it. This will highlight some other major themes in the program. And this seemed like a pretty appropriate thing to be presenting in a Richard Karp lecture series. And then as if I have time at the end,

I'll talk a little bit more about some other examples. I'm particularly excited to be presenting today both to tell-- even if you're not participating in any of these programs or not participating in anything at the Institute, to kind of tell you about the excitement that underlies this program and what maybe you can look for in the future and some results you can look for. I'm also really grateful for the Institute for getting to present today in particular because we had our bootcamp last week. And we gave tutorials on the different aspects of the program. And I guess this is the first slightly more technical talk kind of at the intersection of all the areas. So I thought this also might be nice for the excitement of everyone in the program. So that's my motivation. I just want to give a quick disclaimer. Though I'm very motivated by the major themes in the program and I'll touch upon the major themes of this program,

this is a slightly more focused technical talk. I'm definitely going to be a bit biased and talk a bit about my own work and highlight some examples that I'm a bit more familiar with and I've worked with. So I don't want to give the impression that this is like the complete, comprehensive list of everything in guiding the program. This is definitely going to be a little bit of a biased tour. And I just want to give again a quick plug to check out the program. All the videos from our bootcamp last week are out. So if you're excited about any of the topics, you can check out the bootcamp videos. And I think I managed to find a pointer to every bootcamp talk scattered out throughout this talk. So we'll do that. All right, so what's the motivating this program and this talk? And what are we going to be talking about today? The key motivation is a number of advances in algorithm design, a number of advances that have happened

over the last decade, maybe a little more, on getting provably efficient algorithms for solving a wide range of foundational problems. So for a pretty diverse set, I think of like foundational problems in theoretical computer science like analyzing Markov chains, computing vertex connectivity of a graph, computing Gomory-Hu trees, many, many problems. Over the last decade, there's been some major progress on getting runtimes and algorithmic results for these problems that overcome a number of decades-old barriers. A number of cases have led to not just faster algorithms or improved results or more efficient ways of solving these problems but actually ways of solving these problems in nearly linear time, which is almost linear time, which is almost optimal for some of these problems. So this has been the Holy Grail in the design of faster algorithms for some of these problems. For a number of them now, they've long been known to be polynomial time solvable.

We actually know the optimal asymptotic complexity up to some factors that maybe people will work on improving in this program. And what I find particularly striking about this work, beyond just the applications, beyond just the faster runtimes that have been achieved, is like the wide range of algorithmic tools that have gone into use in order to obtain them. These results have an interesting combination of advances in using optimization methods, things that maybe you think of as being used for continuous optimization like gradient-descent methods or interior-point methods. They use a variety of data structures to decompose the problem in a way that's compatible with how the optimization methods work. And they also use a variety of random sampling and sketching techniques that perhaps you might think of as motivated by very massive-scale data analysis to speed up the implementation and the solution and solving these problems. And this is just a taste.

And I think what's interesting about these examples is the surprising ways that these different tools and techniques and areas of research have kind of come together and played off each other in interesting ways to get these results. And in getting a number of these advances, there's highlighted new connections or new problems you'd want to solve in each of these areas by the ultimate goal perhaps of solving some of these problems more efficiently. So I want to tell you about one sort of broad template that I think has arisen for showing how you can combine these tools and techniques together to get certain results. So to motivate like one common template that's a common theme through the program and a number of these results, let's think of a natural setting, kind of what I motivated, where you want to solve some difficult algorithmic or optimization problem. You want to solve a linear system.

You want to compute a maximum flow, like the maximum number of disjoint paths in a graph. You want to minimize a convex function, something like this. We want to design an efficient method for solving this difficult problem. Well, a natural thing you might do is try to apply any of the many different types of optimization methods that have been designed for solving these problems or a broad class of problems. Like you can take gradient-descent methods that locally try to make progress on minimizing the function or interior-point methods that work for linear programs, which you can cast, say, maximum flow as. And if you think of what these optimization methods do when you apply them to these problems, these optimization methods, they often follow some iterative framework. They take some step getting some information about the problem. Use it to make some progress. Take another step. Use it. Incorporate that information to take another step.

And keep repeating until, ultimately, they solve the problem. And if you think about this, what this means is these optimization methods, you can think of them as reducing solving these difficult optimization problems to computing whatever is information and doing whatever local operation is needed to get every step of the optimization method to work. And this often means these optimization methods reduce these difficult problems to much simpler things, like multiply a matrix with a vector in the case of solving linear system or find a good path in a graph for the case of maximum flow. And if you try then to follow this approach to get faster algorithms for solving these problems, a natural thing you might do is try to design optimization methods that take fewer iterations. They don't require as many steps of solving the simple problem. And somehow maybe the subproblems you have to solve are more efficient to implement.

It's a simpler type of path to compute. Or the matrix you're doing a matrix vector with has more structure. And this works fine. But in some cases-- and I'll talk about some examples later-- there are cases where, after decades of effort, we haven't figured out ways to get the optimization method to take a few iterations. There's real bottlenecks and barriers. In some cases, there are even lower bounds. Saying in the worst case, if all your optimization method does is get this certain piece of information about your function, it might take a certain number of iterations. So how can you improve this in these cases if we can't get just decrease the number of iterations of the optimization method or there's limits in the subproblems we're solving? Well, there's one natural thing you might do. If you wanted to try to use this template to solve the problems more efficiently, what you could do is maybe instead of just thinking

about this entire framework in terms of how many subproblems do I solve and how hard is it to solve each subproblem, you could ask the joint question of how hard is it to solve this sequence of subproblems. If you look at the sequence of matrix vectors you need to compute, the sequences of paths you can hope to compute, you might hope that this overall set of iterates has some sort of joint structure that maybe the amortized cost of implementing all the iterations is much cheaper, right? And with this, so in other words, you could think that the optimization method is generating this sequence of problems you need to solve. And maybe you can get a faster runtime by solving the dynamic problem of being able to maintain solutions to those subproblems. That's a broad idea. And I want to quickly point out or immediately point out this is not actually a new idea. This is a very old classic idea to get faster algorithmic results. Even if we go back to the first proof

of an interior-point method solving linear programs in polynomial time, due to Karmakar and Stock in 1984, even then, the method both provided an optimization method and looked at the shared structure of the steps of that method was a sequence of linear systems you would have to solve. And by leveraging the shared structure of those linear systems came up with faster runtimes. This has also been done in max flow if you think of their use of link cut trees and implementing the subproblems when you run certain iterative methods to solve max flow. And this was also-- I haven't-- I'm not quite comfortable yet with the idea of citing my own work as old. But someone else told me this recently. So I thought it was fair game. But you can also look at things like solving Laplacian systems. This is solving a certain class of linear systems associated with graphs. That's had a lot of applications. And there were certain algorithms

that took a number of simple iterative steps and used data structures to speed up the cost per every iteration. If you want more about that application and the many implications it has for a program, you can see Sushant's nice talk from the workshop last week. All right, so if we're trying to solve these problems faster and this template we're following is a rather old classic one. What's new? And what's motivating this program? Well, I think there's a few things where some of the recent work has maybe gone a little further than this classic template. And I think one interesting, striking way in which this has happened is in this recent work uses a variety of different sketching and sampling techniques to solve these data-structure problems. They take an entire sketch of the input. They use certain samplings of the input. And they use this to speed up the cost of getting the information the optimization method needs in every iteration.

This immediately creates, in a number of these settings, an issue where you want to use some sort of random sampling and sketch to speed up the iterations. But you're going to use the output of this sampling process to inform the next step that the optimization takes. So you immediately have this dependence that whatever randomness you use in your sketching might show up again in the next input. This feature that these input to the data structure chosen may be adversarial or adaptive to what you do in solving the data structure creates a whole host of issues that a number of these results needs to overcome to get faster runtimes. I think there's also an interesting theme going through this work and really how they use different continuous optimization methods to solve these problems and how there's been work on this joint design of, what is the continuous optimization method? How does that impact the type of data structure problem we want to solve?

And can you find a configuration of this where you can actually use sampling to get the information you need to make the iterations fast enough? And lastly, I think it's been exciting, a number of these cases. It's not just led to some improvement but almost linear or near optimal runtimes for solving a variety of these problems. So it shows for very large instances in a number of cases, you can solve them almost optimally. And I think this broad template of using these combination of the optimization methods with data structures and sketching to make them work, it's led to a number of exciting results. As you may have heard, it led to the recently the first almost linear-time algorithm for solving max flow. It's led to nearly linear-time algorithms for solving linear programs in certain regimes. And more broadly than this, than just these algorithmic results, I think it's highlighted a number of really interesting sort of connections between them.

Like this is motivated solving some data twists on classic data structure problems that maybe hadn't been considered before, that are well motivated by this. Or it's informed that you might want to design optimization methods with different properties than you might just think of if you're only in analyzing in terms of how many iterations and what's the cost per iteration. So it's, I think, created a whole host of new impactful problems to solve in all of these areas and new connections. In the second part of the talk, I'll talk a bit more about linear programming, which I think is one canonical, classical optimization problem. And I'll highlight where these pieces come from and maybe where some of surprising magic happens to actually solve this in near linear time in some settings. But this is just one template or just one way that these areas have been connected towards getting a number of these algorithmic advances. And another theme running through the program

is to explore the kind of interesting different robust ways these different areas interact. So here's another pathway or another way in which these areas have been connected. So you can imagine our starting point is not that we want to solve our static problem, like solve a linear program, solve maximum flow. But our starting point is we really want to solve a dynamic problem. We really have some dynamic changing data, right? We want to maintain some important properties of that data as it changes over time. You can ask, how can we use all of this machinery that's been developed for solving these static problems? Can we somehow apply them in nice canonical ways to solve these dynamic problems? The picture I had on the previous slide was using optimization methods to reduce these static problems to dynamic problems. Can we go in the other direction? And there has been work on doing this that you can apply optimization methods to sometimes break down

solving difficult dynamic optimization problems into solving a certain sequence of static optimization problems. And I'll show one example where you can do this in a fairly black-box way where you can separate how you solve the subproblem to get the dynamic problem from all the structure of the dynamic problem and the dynamicness of the problem. So you can actually use, in some cases, optimization theory to go from dynamic problems to static problems. The case I'll show you-- so in the third part, I'll talk about an example of dynamic matching. And in that example, it'll be interesting because the final result, I'll tell you, will actually use these recent advances in solving max flow in almost linear time. So it means the way these subproblems are solved is also by using the whole connection between reducing dynamic to-- static to dynamic and using sketching underneath it. So you can see how this cycle grows. So that's one pathway.

The goal of the program is to explore all these rich connections between these areas and the pursuit of fast algorithms. So the focus of the program is trying to design more efficient algorithms, looking for new tools and frameworks and robust connections between them and kind of advancing each area and exploring the connections between them. In case anyone's curious, I want to give a quick thank you to all of my co-organizers for bootcamp last week and all these workshops coming up. So there'll be a workshop focused on each of these particular areas, obviously, with some focus on the interplay and connection between all of them. And if you want more information about any of this, the bootcamp videos, I think, are already out from last week. So that's the plan for the talk. What I want to do now is talk through linear programming, which I think-- about some runtimes for linear programming, which I think is sort of a prototypical example of this sort of like broad paradigm for solving certain sorts of algorithmic problems. But I'll take a quick second for questions, if anyone wants.

It's been a few months. I guess I'm still in teaching mode. Everyone OK with the plan? Great. All right. Good. So let's talk a little bit about linear programming. I'm going to use this as one illustrative example, I think, of the surprising or interesting connections between some of these areas to really overcome some inherent barriers towards getting fast algorithms. All right, so we'll focus on linear programming. All right, so for this next part of the talk, our focus is going to be solving a linear program. There's a variety of canonical ways of writing a linear program.

There are primal and dual form. I'll do my best. I hope I did my best to commit to this being the notation I'll use for the rest of the talk. We have some n by d matrix A. And we can look at the associated linear program in primal form. So this is minimizing some the cost of some non-negative vector subject to linear constraints, or the dual, which is maximizing some linear cost function subject to some linear inequality constraints. And that's the problem. This is a foundational problem that's been studied for decades and continuous and combinatorial optimization with many results, many implications of just looking at the structure of this problem, and the duality, and what it can say about a variety of problems. And it's also been a very general problem, where techniques for solving this general problem have had implication for solving different sorts of special cases. So for a number of problems, like maximum flow, solving Markov decision processes, L1 regression,

in some regime, the fastest algorithms we have, in some sense, use tools for solving this debatably more general problem of linear programming. All right, just to make sure everyone has a good geometric picture before I start talking about runtimes and the state-of-the-art and some of the obstacles I'm going to highlight how we can overcome, let's just do a quick picture for what these linear programs look like. I usually find it easier to draw linear programs in the dual. So I'll do that. So again, we have this n by d cost matrix A. Our variables y live in Rd. We have a d dimensional cost vector and an n dimensional constraint vector. If we let a1 through an denote the rows of our matrix and c1 through cn denote the entries of c, then the constraints that Ay is larger than c-- every row of a induces the constraint that y must lie on one side of a half space. The feasible region we're then optimizing over in this linear program is the intersection of these n different half spaces.

We take the intersection of these n half spaces. We get a convex polygon known as a polytope. And if we make our cost vector pointed straight down, then maximizing the cost is trying to find the bottom of this polytope, right? So this problem is trying to find the bottom of this large, high dimensional convex body. AUDIENCE: You want the min instead of a max? AARON SIDFORD: It's pointed downward. Yeah. So this-- upward. Yeah. But I guess we can debate the meaning of the vector. So let's use the meaning that makes the picture. [LAUGHS] Right. Great question. OK. So there's a number of standard methods for solving this problem. You can use the simplex method, where you intuitively start at the corner of a polytope and walk your way towards the bottom. This is very fast in practice in certain settings, but in theory, it tends not to give the fastest algorithms we know. You can do ellipsoid method, where you start with some large set that contains the minimizer

and iteratively shrink it till it contains nothing but the minimizer. These tend not to outperform their worst case theory in practice, and therefore have somewhat moderate performance in practice. And some regimes have given faster runtimes in theory. But for linear programming, the state-of-the-art results all use interior point methods as of now. They're often the fastest in theory, and they can be very fast in practice. I want to point out that I'm going to focus here on solving linear programs to high accuracy. So I want methods that have a logarithmic dependence on epsilon and whatever condition number measures you might consider. I'm going to hide all of those details, like these logarithmic dependencies whenever I give the runtimes, but there is a whole line of work on interesting first order methods that have simpler iterates than what I'm discussing. And I'm just not going to talk about them in this part of this talk, but you

can check out Alina and Deeksha's talks on optimization methods more broadly that you can use in some settings to solve linear programs approximately. We're just not going to talk about them today. All right. So before I say what they are, I want to give at least one picture for what an interior point method looks like just so we have something to hang on to as I start to talk about roughly what these different methods look like and the obstacles that you might have to overcome to get them to run really efficiently. So let me give one picture of a type of interior point method. There's a whole host of interior point method literature, and a variety of different ways of running interior point methods in different styles. This is just one type of interior point method that has a particularly nice picture. And it's known as path following methods. So in these path following methods, the way they typically solve the linear program

is you assume that you have some nice function p defined on the interior of the polytope. That's called a barrier function, meaning it has the property that if you go to the boundary of the polytope, the value goes to infinity. Then a natural way to solve the linear program is to consider what's known as the penalized objective. So this is an objective function parameterized by some parameter t that is a t multiple of the cost plus the barrier. What you could then do is consider the minimizers of this penalized objective, starting when t equals 0, all the way as t goes to infinity, right? That set of minimizers creates some curve known as the central path. You can think, at t equals 0, you're just minimizing the barrier. So you're at some sort of center, staying away from the boundary of the polytope. And as t goes to infinity, you're trying more and more to minimize the cost, caring less and less about the constraint. And you typically converge to a minimizer solution

of the linear program. Standard template that certain types of path following methods follow-- you apply some sort of reduction. So you can assume you start close to the center of the polytope. You keep following some iterative method until you solve the problem well enough. You assume that you're at some point close to the central path. You advance your parameter by some amount. And you take a Newton step, meaning you form the Hessian. And you apply the inverse to a gradient. And you move in that direction. And you can show that under nice enough assumptions of the barrier function, you know that if you can advance long enough along the central path and stay close enough, you can solve the problem. Main takeaway to get from this is the way I would think about linear programs, at least for the sake of this talk, is you can think it's an optimization method that reduces linear programs to solving linear systems. So you want to solve this linear program.

You define this function everywhere in the interior of the polytope. And you keep looking at the Hessian of it, the second derivatives, and the gradient. And you solve a linear system in terms of them to figure out where to go. So you can think it reduces linear programming to solving these systems, provided you can access the function well enough. All right. So what's the state-of-the-art for linear programming? Let's take our first look at just the number of iterations and the cost per iteration. So there was a foundational work of Karmarkar and Renegar that showed you could ultimately solve linear programs in root n linear systems, where the linear systems-- you have to solve the computational bottleneck. They're fairly simple systems induced by the linear program. You can think of it as projecting onto the constraints under some reweighting of them. And in many settings for many years, the state-of-the-art in theory was some variant of this root n

method of Karmarkar. But if we're solving a linear program in d dimensions, the number of constraints could be very, very large. And as the number of constraints gets larger and larger, the method could slow down. There are cool results of Vaidya that showed you can get a better dependence on dimension at the cost of solving more linear systems. And there was a beautiful result of Nesterov and Nemirovskii that said you could improve the root n to a root d If you could somehow compute what's known as the universal barrier. It's defined in terms of volumes of polars and polytopes. And if you can somehow access this, you can get a root d iteration method. And some joint work we showed-- you could get the best of both worlds. You can a root d iteration method that has iteration costs comparable to that of Renegar's. This led immediately to some fast algorithms, but there's been a lot of work on linear programming and solving the problem more efficiently.

And at least in terms of how many iterations, and coarsely, if you were to compute an iteration by itself, what does it cost? There's been no improvement to this slide since. So with this, how do we solve linear programs more efficiently? It would be great to get more efficient optimization methods. It'd be great to have less than root d iterations. This is a fantastic open problem that's super-challenging. How can we solve linear programs faster without solving that open problem?

Well, we could follow exactly the template I was describing before. We can think our interior point methods reduces our linear program to solving a sequence of linear systems. And we can try to get better algorithms for dynamically solving that sequence of linear systems. And maybe the key takeaway of this part of the talk and what I'll try to explain is that a lot of work that's happened on linear programming over the last 5 years has developed improved interior point methods that are improved in the sense that they lessen the requirements or make it easier to implement the data structure problem of solving the iterates. So you can think there have been improvements to the optimization method, but in terms of relaxing how much you need to maintain in order to get the implementing of that interior point method efficiently enough. And if you get it efficiently enough, there's been work-- you can actually

solve linear programs almost optimally. All right. So what's the state-of-the-art? There are two results using these two types of interior point methods very broadly by carefully using that root d iteration method I said and using some data structures for speeding up the solving of the linear systems. You could get the cost per solving linear systems and every iteration to be the best we would know how to do if you only preprocessed the matrix. And there was exciting work that said you could solve it in n to the omega time, where omega is the current matrix multiplication and constant. This essentially worked by, again, some data structures for solving linear systems and robustifying, essentially, methods like one of Renegar. And this was a very nice runtime, and it matches the best known runtime just for checking feasibility of the linear systems in the case when n and d are on the same order. So these are great. These were huge improvements.

Natural question is, can we improve further? And unfortunately, neither of these runtimes are ever nearly linear except when you keep dimension as a constant. So when I was highlighting everything as solving linear programs and nearly linear or near optimal time, how can we do that? And in a line of joint work over the last few years, we showed you could solve linear programs in nd plus some poly d time. And if you think your input matrix is dense-- so the number of non-zeros in the matrix could be at least nd-- and you think that it's tall, meaning you have sufficiently enough constraints relative to dimension, then nd plus poly d is just nnzA. So you can think this work showed that at least if you're in the generic case of no sparsity structure and you have enough constraints, you can solve linear programs in nearly linear time. And they worked by combining and enhancing the advances that underlie these results that

had to do with robustifying these different interior point methods to show that you don't have to maintain as much information about the iterates, and creating a variety of different data structures to implement them. At a very high level, a number of recent, almost sublinear time algorithms that have happened last few years are related to this. So one of these results-- the data structures that you would develop for linear programs, you can show are even easier to implement in the case of solving, say, the maximum flow problem or matching. That led to near linear time algorithms for max flow in the densest graph. And then recent exciting work again used interior point methods for max flow, but changed the type of interior point methods. They used a sort of L1 type of interior point methods. And that had a big impact on the type of data structure problem you would have to solve. At a very high level with a lot of other insights,

that's what led to maximum flow in almost linear time. What do these algorithms look like? Unfortunately, I think really giving all the details of the algorithm is outside the scope of this 1-hour talk. The algebra for what a step looks like and what you need to maintain is not necessarily so complicated, but the way the analysis ultimately works is you have to show that every piece of the algorithm, everything you might need to maintain in the linear algebra describing the interior point method, you can maintain it efficiently enough on average over the life of the linear program. And I wanted to include this slide not to actually call the results scary or to make it seem too complicated or large or unapproachable. It's actually for the opposite. I'm doing it because at the end of the day, the algebra for the steps is not that complicated. The reason, though-- some insights and real advances

happen to get us to the understanding we're at. But the papers are rather long because even when you have that and even when you have the main insight of why you would expect to get the runtime you want, you still have to write a data structure for implementing every piece of the algorithm. And every one of these is not necessarily a data structure problem you can cite. It's an interesting new data structure puzzle induced by this goal of trying to implement these interior point methods. So they're long because you need to have these very different pieces. And we can always try to do better, but we tried to write some of these with some modularity that you can read the different pieces. So they're long, but because of this structure, in my opinion, of the many different pieces. OK. So what am I actually going to cover? What I want to cover is actually just one of these data structure problems. I want to tell you about one data structure problem, and to me, what was a big barrier

to have any hope of solving linear programs in near linear time. So what I'm going to try to do is convey one of the main obstacles of a thing you would have to do to get the linear programs to run in near linear time and give you a taste of how we overcame it. And I'm going to do that because it's going to highlight exactly these connections between the areas that I've been describing. If you want to see more about the various types of data structures that you might need to implement, you can check out Shunhua's talk from last week. And if you want to see more about interior point methods in general, you can check out Yinyu's use talk from next week. I'm also around for the semester if you want to chat about any of this. OK. So what I want to try to do now is articulate what I think is a key obstacle to actually being able to get this nearly linear runtime for solving linear programs with many constraints in the generic case. And the issue is fairly simple.

At the end of the day, I said it's a big open problem to get an interior point method that does less than root d iterations. So whatever we do in every iteration of the interior point method, it needs to be the case that when you multiply it by root d or look at the cost over all of it, you get something that's nearly linear. And one thing that you need to do in these interior point methods at the least, as far as we know, is you typically want to maintain for your current point just some estimate of how far it is from every constraint. There's a lot of work on robustifying how well you need this. In a lot of these methods, you only need to know the distance to the constraint approximately. You just need some crude multiplicative estimate to it, but you need at least that, all right? And what this means is you need to run this method that's taking root d iterations of moving this point. And what this means is you need to maintain the distance

to every single constraint in sublinear time on average. You can't afford to do more than n root d time on average if you're going to do root d steps. OK? So we have to move around this large polytope, keeping track of all the different constraints. And we need to do that in less time than it would take to actually look at every single constraint. So this creates an interesting problem. How do we compress a polytope, right? How do we build a data structure to maintain even simpler things, like the minimum distance to every constraint? And if you think about this problem for a little bit, it's maybe not too hard to convince yourself this is probably impossible. Maybe even prove it. Imagine you just have a bunch of random constraints tangent to the circle. You're at the middle. And then you move in a direction. If you move in exactly the direction of one of the constraints, you need to know that constraint more than any of the others.

So how would you compress this? And this is, I think, exactly where linear programming immediately becomes more challenging than analogous things like regression, where we know how to subsample the constraints and approximate the problem well enough that we can just solve that a log number of times. This is meaning we can't really compress or completely throw away things in the same way. All right. So why would we have any hope of solving this problem? And what is this problem? So here's a simplified way of looking at the problem. You can think we have some non-negative vector s. This is the distance of our point to every constraint. We get some vector delta i. This is the change in our vector in the i-th iteration. And we add to that vector s A delta i. So A delta i is like the change in our distance to every constraint. And you can imagine we're promised that this vector s is non-negative, right? So you're promised that we stay inside the polytope.

So that's the same as these being non-negative. And we want to maintain them. All right? So we just have this vector A. We keep adding A delta 1, A delta 2, A delta 3. And we want to maintain this multiplicatively, promised it's not negative. OK. As I just argued, this seems impossible, but there's an important classic observation interior point methods. Things like this is what underlied even Karmakar's method solving linear programs more efficiently. We know that on average, the changes in these differences-- they're small on average. If you look at the L2 norm of the changes, the multiplicative changes in the constraint, in Renegar-style methods, it's 0 of 1. In our method, it's root nd. And you can do the analysis on it. It essentially says something like every root d iterations, there are only n coordinates that change by a constant. So as you move through the polytope, yes, you can get closer to any constraint,

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent