HFFD Algorithm

A Fair Division Algorithm for Heterogeneous Agents

Try the Algorithm

About the Algorithm

The HFFD (Heterogeneous First-Fit Decreasing) algorithm is a fair division algorithm that allocates chores to agents with heterogeneous costs under Identical-Order Preference (IDO).

This implementation is based on the paper: "A Reduction from Chores Allocation to Job Scheduling" by Xin Huang and Erel Segal-Halevi (2024).

Fair Division

Allocates chores fairly among agents with different cost structures

Efficient

Uses a two-pass approach to efficiently allocate items while respecting thresholds

Visualization

Step-by-step visualization of the allocation process

How to Use

  1. Enter Agent Valuations:

    For each agent, enter their valuation (cost) for each item as comma-separated numbers.

  2. Set Thresholds:

    Enter the maximum cost threshold for each agent as comma-separated numbers.

  3. Run the Algorithm:

    Click "Run Algorithm" to see the allocation process and results.

  4. View Results:

    See the final allocation, step-by-step process, and any unallocated items.