TimefoldAI / TimefoldAI/timefold-solver

Random iteration over ComparisonIndexer is not fair

Open
#2,325 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component/neighborhoods
Dominant language
Java
Stars
1.8k
Forks
228
Avg merge
1d 13h
Merged PRs (30d)
46

Description

The iterator randomly picks buckets, regardless of how many items are in their leaf indexers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating ComparisonIndexer and its iterator, then inspect how buckets and their leaf indexers are selected. Reproduce iteration with buckets containing different numbers of items and add coverage for fair selection; done means bucket choice accounts for leaf-item counts rather than treating every bucket equally.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.