← Latest papers
💻 computer science

Time and Supply Fairness in Electricity Distribution using kk-times bin packing

This paper introduces the kk-times bin packing problem to model fair electricity distribution, proving its applicability to connection time allocation while demonstrating that generalizations of First-Fit algorithms outperform existing heuristics, and further addressing the more complex watt allocation variant through new heuristic benchmarks despite proving an impossibility result for finite kk.

Original authors: Dinesh Kumar Baghel, Alex Ravsky, Erel Segal-Halevi

Published 2026-05-14
📖 6 min read🧠 Deep dive

Original authors: Dinesh Kumar Baghel, Alex Ravsky, Erel Segal-Halevi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Picture: The "Power Cut" Problem

Imagine a small village where the local power station can only generate enough electricity to run half the houses at once. The village has 100 families, but the grid can only handle 50. If they try to turn everyone on at once, the system crashes.

The village elders need a fair way to share the power.

  • The Old Way: They might split the village into two groups. Group A gets power for 12 hours, then Group B gets power for 12 hours. Everyone gets 50% power.
  • The Problem: This isn't always the fairest. Maybe Family X needs a lot of power for a big fridge, while Family Y only needs a little for a lightbulb. If they just swap groups, Family X might still be unhappy because their "slice" of the pie is too small to run their fridge effectively.

The authors of this paper propose a smarter way to slice the pie, using a mathematical puzzle called Bin Packing.


The Puzzle: "k-times Bin Packing"

To understand their solution, let's play a game with suitcases.

The Classic Game (Bin Packing):
You have a bunch of suitcases of different sizes and a truck with a fixed cargo space. Your goal is to pack as many suitcases as possible into the fewest number of trucks.

  • In the paper's context: The "suitcases" are households' electricity needs. The "truck" is the power station's capacity.

The New Game (k-times Bin Packing):
The authors invented a twist. They say: "Okay, pack the suitcases into trucks, but here is the rule: Every single suitcase must appear in exactly k different trucks."

  • The Analogy: Imagine you have a favorite book. You want to make sure that book is available in k different libraries so that if one library is closed, you can still find it elsewhere. But you can't put two copies of the same book in the same library.
  • Why do this? By forcing every household to appear in multiple "groups" (trucks), you can rotate the power on and off more frequently. Instead of Group A getting power for 12 hours straight, you might have 10 different groups, and every family gets power for 1 hour, then 1 hour off, then 1 hour on again. This smooths out the experience and makes it feel fairer.

The Main Discovery: How Many Copies Do We Need?

The authors asked a deep mathematical question: "Is there a magic number k that guarantees the fairest possible outcome?"

  • The Answer: Yes! They proved that for any village size, there is a specific number k (which depends only on how many families there are) that allows you to achieve the absolute maximum fairness.
  • The Catch: Finding the perfect packing is a math nightmare (it's "NP-hard," meaning it takes too long for computers to solve perfectly for huge villages).
  • The Solution: Since we can't find the perfect answer instantly, the authors took famous, fast algorithms (like First-Fit and First-Fit Decreasing) and tweaked them to handle this "k-times" rule.
    • First-Fit: Imagine you have a line of people. You put the first person in the first empty seat. If they don't fit, you open a new seat.
    • The Tweak: They modified this so that as they fill seats, they ensure everyone gets to sit in k different seats over time.

The Result: Their modified algorithms are incredibly efficient. They run almost as fast as the old methods but provide a much fairer distribution of power. In tests using real data from 367 households in Nigeria, their method gave people more hours of power and a more even distribution than previous methods.


The Second Challenge: "Fair Watts" vs. "Fair Time"

The paper also tackled a second, trickier problem.

Scenario A: Fair Time
"Everyone gets the same amount of time connected to the grid."

  • Analogy: Everyone gets to sit in the hot tub for exactly 10 minutes.
  • Result: This is what the "k-times bin packing" solves perfectly.

Scenario B: Fair Watts (Power Amount)
"Everyone gets the same amount of electricity (energy), regardless of how long they are connected."

  • Analogy: Everyone gets exactly 10 liters of water.
    • If you have a small cup (low demand), you might need to be connected for a long time to get 10 liters.
    • If you have a giant bucket (high demand), you might get your 10 liters very quickly.
  • The Problem: The authors proved that for this specific goal, there is no magic number k that works for everyone. Sometimes, to make it perfectly fair, you would need an infinite number of groups, which is impossible.

The Workaround:
Since a perfect mathematical solution doesn't exist for "Fair Watts," the authors created four "Heuristic" (smart guess) algorithms.

  • Think of these as four different strategies a village chief might use to try to be as fair as possible.
  • They tested these strategies and found that one specific strategy (called HA1 combined with their modified packing algorithm) was the best at ensuring the person with the least power still got a decent amount of electricity.

Summary of Findings

  1. The "k-times" trick works: By forcing every household to be part of multiple power-sharing groups, you can create a much fairer schedule than just splitting people into two big groups.
  2. Fast and Fair: They adapted standard computer algorithms to do this quickly. In real-world tests, these new algorithms gave households more connection time and less inequality than existing methods.
  3. Time vs. Power: It is mathematically easy to make the time fair for everyone. It is mathematically impossible to make the exact amount of power (watts) perfectly fair for everyone using a simple repeating pattern. However, their new "smart guess" algorithms get very close to the best possible outcome.

In short: The paper provides a new, mathematically proven way to slice the electricity pie so that no one feels like they are getting the "short end of the stick," especially in places where there isn't enough power for everyone at once.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →