ArticleslgStudy

science

Discrepancy of permutations

Discrepancy of permutations is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Discrepancy of permutations rather than just read about it. In short: Discrepancy of permutations is a sub-field of discrepancy theory, that deals with balancing intervals induced by permutations of elements. There is a set of n elements, and there are m different permutations on this set.

Key takeaways

  • Discrepancy of permutations belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Discrepancy of permutations to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Discrepancy of permutations from memory before moving on to harder problems.

Reference excerpt

Discrepancy of permutations is a sub-field of discrepancy theory, that deals with balancing intervals induced by permutations of elements. There is a set of n elements, and there are m different permutations on this set. The general research question is: can we color each element in one of two different colors (e.g. black and white), such that in each permutation, every interval contains roughly the same number of elements of each color? Formally, the discrepancy of an interval is defined as the difference between the number of white elements and the number of black elements in that interval; the objective is to color the elements such that the maximum discrepancy of an interval in each of the permutations is as small as possible.

Definitions Let p1, ...,pm be permutations of [n]. The interval set of a permutation is the set of all subsets of [n], that are adjacent to each other in the permutation. For example, if n=4 and one of the permutations is (1,2,3,4), then its interval set contains e.g. the edges (1,2), (1,2,3), (2,3), (2,3,4), etc. The discrepancy of the permutations p1, ...,pm is the minimum, over all black-white colorings of the integers in [n], of the maximum over all intervals, of the difference between the number of white and black integers in the interval.

Offline colorings When there is only one permutation, a discrepancy of 1 is possible, by simply coloring the integers alternately white - black - white - black - etc. When there are two permutations, a discrepancy of 2 is possible; this was proved by Spencer in 1987. For any m permutations, the discrepancy is at most 8mlog⁡n, and such a coloring can be computed efficiently. For any three permutations, Beck conjectured that the discrepancy is constant. However, this conjecture was refuted: for any n which is a power of 3, there exist 3 permutations whose discrepancy is ⌈(log3n)/3+1⌉. More precisely, for any {1,-1} coloring, if the sum of all colors is d, then there exists some integer q such that, in all three permutations, the sum of the first q colors is at most (−log3n+2d−2)/3. This has implications for the bin packing problem. Jiang, Kulkarni and Singla study the online setting with stochastic point arrival, and prove that:

A random coloring yields an expected discrepancy of O~(n). There is an efficient algorithm that guarantees O(nc/log⁡log⁡n) discrepancy, for some universal constant c, with high probability. They show an application of this result to online fair division.

Online colorings Sometimes the elements are not available in advance, but arrive one by one, and each elements should be colored immediately when it arrives. This online setting is challenging even for a single permutation. Jiang, Kulkarni and Singla call the setting with one permutation Online Interval Discrepancy. They prove that:

No online algorithm can guarantee a constant discrepancy. Random coloring gives O~(n) expected discrepancy. If the arrival is adversarial, the discrepancy of any online algorithm is Ω(n). If the arrival is stochastic, there is an efficient algorithm that guarantees O(nc/log⁡log⁡n) discrepancy, for some universal constant c, with high probability (i.e. with probability 1-1/poly(n), where the exponent of the polynomial depends on c). The proof extends for the case of two permutations, which they call Online Stripe Discrepancy.

Applications Results in discrepancy of permutations have been used in the computation of Agreeable subsets, as well as in Online fair division.

References

Worked examples

Example 1 — a first encounter with Discrepancy of permutations

Start with the simplest possible case. Write down what Discrepancy of permutations claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Discrepancy of permutations before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Discrepancy of permutations ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Discrepancy of permutations

In research
Discrepancy of permutations appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Discrepancy of permutations in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Discrepancy of permutations is common in secondary-school and first-year university syllabi. It links to neighbouring topics Discrepancy theory, Permutations, so understanding it makes those chapters shorter.
In everyday life
Look for Discrepancy of permutations outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Discrepancy of permutations” →

How to study Discrepancy of permutations in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Discrepancy of permutations means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Discrepancy of permutations out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Discrepancy of permutations in simple terms?

Discrepancy of permutations is a sub-field of discrepancy theory, that deals with balancing intervals induced by permutations of elements. There is a set of n elements, and there are m different permutations on this set.

Why does Discrepancy of permutations matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Discrepancy of permutations?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Discrepancy of permutations.

Tags

  • Discrepancy theory
  • Permutations

Keep exploring