TimefoldAI / TimefoldAI/timefold-solver
Random iteration over ComparisonIndexer is not fair
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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