ArticleslgStudy

computer science

Envy minimization

Envy minimization is a computer 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 Envy minimization rather than just read about it. In short: In computer science and operations research, the envy minimization problem is the problem of allocating discrete items among agents with different valuations over the items, such that the amount of envy is as small as possible. Ideally, from a fairness perspective, one would like to find an envy-free item allocation - an allocation in which no agent envies another agent.

Key takeaways

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

Reference excerpt

In computer science and operations research, the envy minimization problem is the problem of allocating discrete items among agents with different valuations over the items, such that the amount of envy is as small as possible. Ideally, from a fairness perspective, one would like to find an envy-free item allocation - an allocation in which no agent envies another agent. That is: no agent prefers the bundle allocated to another agent. However, with indivisible items this might be impossible. One approach for coping with this impossibility is to turn the problem to an optimization problem, in which the loss function is a function describing the amount of envy. In general, this optimization problem is NP-hard, since even deciding whether an envy-free allocation exists is equivalent to the partition problem. However, there are optimization algorithms that can yield good results in practice.

Defining the amount of envy There are several ways to define the objective function (the amount of envy) for minimization. Some of them are:

The number of envious agents; The number of envy relations (- edges in the envy graph); The maximum envy-ratio, where the envy ratio of i in j in allocation X is defined as: EnvyRatio(X,i,j):=max⁡(1,ui(Xj)ui(Xi)); so the ratio is 1 if i does not envy j, and it is larger when i envies j. Similarly, one can consider the sum of envy-ratios, or their product. The maximum, the sum or the product of the envy-difference.

Minimizing the envy-ratio With general valuations, any deterministic algorithm that minimizes the maximum envy-ratio requires a number of queries which is exponential in the number of goods in the worst case. With additive and identical valuations:

The following greedy algorithm finds an allocation whose maximum envy-ratio is at most 1.4 times the optimum: Order the items by descending value; While there are more items, give the next item to an agent with the smallest total value. There is a PTAS for max-envy-ratio minimization. Furthermore, when the number of players is constant, there is an FPTAS. With additive and different valuations:

When the number of agents is part of the input, it is impossible to obtain in polynomial time an approximation factor better than 1.5, unless P=NP. When the number of agents is constant (not a part of the input), there is an FPTAS for minimizing the maximum envy-ratio, and the product of envy-ratios. When the number of agents equals the number of items, there is a polynomial-time algorithm.

Distributed envy minimization In some cases, it is required to compute an envy-minimizing allocation in a distributed manner, i.e., each agent should compute his/her own allocation, in a way that guarantees that the resulting allocation is consistent. This problem can be solved by presenting it as an Asymmetric distributed constraint optimization problem (ADCOP) as follows.

Add a binary variable vij for each agent i and item j. The variable value is "1" if the agent gets the item, and "0" otherwise. The variable is owned by agent i. To express the constraint that each item is given to at most one agent, add binary constraints for each two different variables related to the same item, with an infinite cost if the two variables are simultaneously "1", and a zero cost otherwise. To express the constraint that all items must be allocated, add an n-ary constraint for each item (where n is the number of agents), with an infinite cost if no variable related to this item is "1". The problem can be solved using the following local search algorithm.

All agents are ordered lexicographically (e.g. by their name or index). Each agent also orders its variables lexicographically. Each agent, in turn, claims any item that was not allocated to an agent with a higher priority ("claims" means that the agent assigns "1" to the corresponding variable). After an agent has assigned all its variables (either 1 or 0), it sends the resulting assignment to the next agent in the lexicographic order. The agents send to each other messages with their envy evaluation of the current assignment. After receiving envy evaluations from other agents, the agent may decide to backtrack on a variable; if there are no more variables to backtrack, the agent may backtrack to a previous agent. Once the first agent backtracks its first variable, the search has ended and the optimal allocation has been found.

Online minimization of the envy-difference Sometimes, the items to allocate are not available all at once, but rather arrive over time in an online fashion. Each arriving item must be allocated immediately. An example application is the problem of a food bank, which accepts food donations and must allocate them immediately to charities. Benade, Kazachkov, Procaccia, and Psomas consider the problem of minimizing the maximum envy-difference, where the incoming items are indivisible and the valuations are normalized such that the value of each item for each agent is in [0,1]. Note that in the offline variant of this setting, it is easy to find an allocation in which the maximum envy-difference is 1 (such an allocation is called EF1; see envy-free item allocation for more details). However, in the online variant the envy-difference increases with the number of items. They show an algorithm in which the envy after T items is in O~(T/n), against an adaptive adversary, who chooses the values of the incoming items adversarially. Jiang, Kulkarni, and Singla improved their envy bound using an algorithm for online two-dimensional discrepancy minimization under the assumption of stochastic values. The problem of minimizing the maximum envy-difference for indivisible items is known to reduce to the problem of minimizing discrepancy; this reduction holds in both the online and offline settings. The reduction has been used to obtain bounds for minimizing the envy-difference in various works including Jiang, Kulkarni, and Singla.

Other settings Other settings in which envy minimization was studied are:

Optimal tax. School choice.

References

Worked examples

Example 1 — a first encounter with Envy minimization

Start with the simplest possible case. Write down what Envy minimization claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer 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 Envy minimization 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 Envy minimization 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 Envy minimization

In research
Envy minimization appears in computer 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 Envy minimization 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
Envy minimization is common in secondary-school and first-year university syllabi. It links to neighbouring topics Fair division protocols, Optimization algorithms and methods, so understanding it makes those chapters shorter.
In everyday life
Look for Envy minimization 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 “Envy minimization” →

How to study Envy minimization in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Envy minimization 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 Envy minimization out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Envy minimization in simple terms?

In computer science and operations research, the envy minimization problem is the problem of allocating discrete items among agents with different valuations over the items, such that the amount of envy is as small as possible. Ideally, from a fairness perspective, one would like to find an envy-fr…

Why does Envy minimization matter?

Because it connects several computer 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 Envy minimization?

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 Envy minimization.

Tags

  • Fair division protocols
  • Optimization algorithms and methods

Keep exploring