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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A Bucketed Fenwick Index for Skill-Based Matchmaking Queues: Operating Envelope and the Cost of Rating Quantization

Ivan Fekete
Preprints.org
Algorithms and Data Compression
preprint

A Bucketed Fenwick Index for Skill-Based Matchmaking Queues: Operating Envelope and the Cost of Rating Quantization

Ivan Fekete
preprint en

Abstract

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.

Preprints.org
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon