# Discrepancy and Rounding Linear Programs

In the previous posts we talked about various discrepancy questions and saw a proof of the *six standard deviations suffice* result. Besides being of interest in combinatorics, discrepancy theory has several remarkable applications in algorithms. Check this excellent book for a taste of these results. Here I will briefly discuss two (one old and one new) such results:

- Rounding linear programs by discrepancy theory: specifically, the beautiful argument of Lovasz, Spencer and Vesztergombi (LSV) on bounding
*linear discrepancy*in terms of*hereditary discrepancy*. LSV is also an excellent place to look if you are running short on beautiful, innocent-in-appearance, time-sinking combinatorial conjectures.Unfortunately, to keep the post short (-er), I will not discuss the recent breakthrough result of Rothvoss on bin-packing which uses discrepancy theory (in a much more sophisticated) for rounding a well-studied linear program (the “Gilmore-Gomory” LP). I highly recommend reading the paper.

- A recent algorithmic proof of Spencer/Gluskin theorem due to Shachar Lovett and myself.

**Rounding Linear Programs** One of the most basic techniques for combinatorial optimization is linear programming relaxation. Let us phrase this in a language suitable for the present context (which is in fact fairly generic). We have a constraint matrix , a target vector and our goal is to find a so as to minimize . One typical approach is to *relax* this discrete problem and instead solve the linear program

(which can be done efficiently). The next step, and often the most challenging one, is to round the fractional solution to an integer solution in with little “loss”. How well can we do this for a constraint matrix , and general vectors ? This is captured by the notion of *linear discrepancy* introduced by LSV:

LSV introduced the above notion originally as a generalization of discrepancy which can be formulated in our current context as follows:

This corresponds exactly to the notion of discrepancy we studied in the last two posts. On the other hand, we can also write , where denotes the all one’s vector. Thus, corresponds to the special case of linear discrepancy where we are only trying to round a particular () fractional solution.

The remarkable result of LSV is that while the above definition seems to be much weaker than (which has to round *all* fractional solutions) there is a natural extension, *hereditary discrepancy*, of which is nearly as strong. For a matrix and , let denote the sub-matrix corresponding to the columns of indexed by . Then, define

Hereditary discrepancy is a natural and more “robust” version of discrepancy. As LSV phrase it, discrepancy can be small by accident, whereas hereditary discrepancy seems to carry more structural information. For example, let be a random matrix with the constraint that each row has sum . Then, , but (this needs proving, but is not too hard) – which makes intuitive sense as we expect random matrices to have little structure.

It is also worth noting that several notable results in discrepancy theory which bound the discrepancy in fact also bound hereditary discrepancy. For example, Spencer’s original proof as well as Gluskin’s argument from last post (with a little bit more work) in fact show the following:

LSV show the following connection between linear and hereditary discrepancies:

Theorem 2For any matrix , .

In other words, any fractional solution for a linear program of the form Equation 1 can be rounded to a integer solution with an additive error of at most .

Let me now describe the cute proof which can be explained in a few lines. Suppose you have a fractional solution . Our goal is to find an such that is small. We will construct such a by iteratively making *more* integral. Let us write out the binary expansion of each of the coordinates of : for each , . To avoid unnecessary technical issues, let us suppose that each coordinate has a finite expansion of length .

We will build a sequence of solutions such that the coordinates of when written in binary will have expansions of length at most . Let us look at how to get ; we can get the rest similarly.

Let . By the definition of , there exists a vector such that . Let (interpreting as a vector in in the natural way). Clearly, the binary expansions of the coordinates of have length at most . Further, . Iterating this argument, we get such that . Therefore,

**Constructive Discrepancy Minimization by Walking on the Edges** We just saw a way to round linear programs as in Equation 1 with error bounded by their discrepancy. As appealing as this is, it comes with one important caveat. The original motivation for looking at LP relaxations was that we can solve them efficiently. For this to make sense, we need the rounding procedure to be efficient as well. In our present case, to make the rounding efficient, we need to find a small discrepancy solution efficiently (find given as above). Unfortunately, this in general is NP-hard in a very strong way as was shown recently by Charkiar, Newman and Nikolov.

However, what about specific bounds like in Theorem 1? Spencer’s original proof as well as Gluskin’s proof do not give an efficient algorithm for finding a good coloring. This is fundamentally inherent with the two arguments: they rely (directly or indirectly via Minkowski’s theorem) on the pigeon-hole principle (with exponentially many “holes”) which is quite non-algorithmic. In fact, Alon and Spencer conjectured (in `the’ book) several years ago that finding a coloring with discrepancy as in the theorem is computationally hard.

Fortunately for us, like all good conjectures, this was proven to be false by a breakthrough result of Nikhil Bansal. Nikhil’s argument studies a carefully constructed semi-definite programming relaxation of the problem and then gives a new and amazing rounding algorithm for the SDP.

Here I will briefly discuss a different proof of Theorem 1 due to Lovett and myself which will also lead to an efficient algorithm for finding a coloring as required.

Let us first revisit Beck’s partial-coloring approach described in last post which says that to prove the theorem, it suffices to show the following.

Lemma 3For vectors , there exists such that for every , and .

As in the last post, let us also rephrase the problem in a geometric language. Let be the symmetric convex set\footnote{Symmetric meaning implies .} defined as follows for to be chosen later:

The partial coloring lemma is equivalent to showing that contains a lattice point of large support. As it turns out, we don’t really need to find a lattice point in but any point with many (or close to ) coordinates will serve us equally well. Concretely, we want:

The above is equivalent to finding a vertex of which is tight on coloring constraints. For intuition let us use the distance from the origin as a proxy for how many coordinates are close to in absolute value. Thus, roughly speaking our goal is to find a vertex of as far away from the origin as possible. This is the interpretation we will use.

Let us think of trying to find the vertex iteratively. Our starting point would be the all-zeros vector. Now what? Well, we want to get away from the origin but still stay inside the polytope . Being somewhat greedy and lazy, we will just toss some coins and update our by doing Brownian motion (if this is uncomfortable, think of taking a discrete walk with tiny random Gaussian steps). The point is that the random walk will steadily move away from the origin.

Now, in the course of performing this random walk at some time we will touch the boundary of or in other words *hit* some constraint(s) of . Now what? Well, as before we still want to get away from the origin but do not want to cross the polytope. So as before, being greedy and lazy (tough habits to change), we will continue doing Brownian motion but now constrain ourselves to only take steps which lie in the face of the polytope that we hit. So we move from doing Brownian motion in -dimensions to doing one in a subspace (corresponding to the face that we hit) of dimension at most . We now repeat this process: every time we hit a new constraint we restrict ourselves to only move in the face we hit. Repeating the above step, we should eventually reach a vertex of the polytope .

This is pretty much the actual algorithm which we call the **Edge-Walk** algorithm (except that to make it implementable we take tiny Gaussian random steps instead of doing Brownian motion; and this makes the analysis easier too). I will refer to the paper for the full details of the algorithm and its analysis, but let me just say what the punchline is: you are more likely to hit nearer constraints than farther ones.

Before moving on, note that the Edge-Walk algorithm can be defined for any polytope . This leads to the meta-question: Can we say anything interesting about the distribution on the vertices of a polytope induced by the walk? The analysis from our paper implicitly gives one such property which has to do with the distances of the constraints defining the vertex from the origin. Understanding this distribution better might be useful elsewhere.

**Discussion** This concludes the three post series. Perhaps, sometime in the future there will be other posts on other notable results in discrepancy theory (like the Beck-Fiala theorem). Keeping with the trend from the last two posts, let me end with another open question which strengthens Theorem 1 in a strong way:

Komlos ConjectureGiven unit vectors , there exists such that

Theorem 1 follows from the above if we take ‘s to be the normalized columns of the matrix . The above conjecture also strengthens another beautiful conjecture due to Beck and Fiala; but that’s for another day. The most remarkable aspect of the above conjecture is that there is no dependence on the dimension. The best bound we know is due to Banaszczyk who showed a bound of which we’ll also leave for another day.