A Bucketed Fenwick Index for Skill-Based Matchmaking Queues: Operating Envelope and the Cost of Rating Quantization
The object of the study is the in-memory index of a skill-based matchmaking queue. The problem is that general ordered sets answer queue queries in time that grows with the number of waiting players; quantizing ratings into buckets reduces runtime but may harm match quality. The bucketed Fenwick index is defined for insertion, removal, rank, range count, and \( k \)-nearest enumeration and compared with comparison-based and domain-based alternatives. With ratings drawn from Lichess blitz games, it answers rank and range count queries in 26 and 60 ns for 106 players, regardless of queue size: 2.5–2.8 times faster than square-root decomposition, 11–12 times faster than an order-statistic B+tree, and more than 40 times faster than a skip list, because the working set stays in the first-level (L1) cache. Match quality is unaffected by quantization when windowing uses exact ratings: all 132 cases are equivalent to exact match within 1 percentage point. With bucket-level windowing, poor matches increased by up to 66 percentage points, and a closed-form model approximates this increase within 0.56 points. The index performs worse than alternatives when updates exceed 50–75% of operations, when buckets contain much less than one player on average, and when threads share one mutex-protected queue.
Authors
- Ivan Fekete (ORCID: https://orcid.org/0009-0007-4242-1398)
Publication Details
- Journal
- Preprints.org
- Published
- 2026-12-03
- DOI
- https://doi.org/10.20944/preprints202612.0358.v1
- Primary Topic
- Algorithms and Data Compression
- Type
- preprint