Atelier des rouesLab FR

Indexing a stream of CRT coordinates

1/4 Educational or exploratory value AI-assisted literature assessment · one reading

I treat this as a small exhaustive comparison of gap-coded and Elias–Fano representations for one CRT coordinate stream: 640 marked positions in a 30,030-position period, with serialized-size and decode-count measurements. Vigna’s monotone-sequence index and Ottaviano–Venturini’s partitioned Elias–Fano already cover the core representation choices. My numbers may guide a prototype, but this single motif does not establish performance on a realistic stream; I would add preparation costs and a representative query workload.

Sebastiano Vigna, Quasi-Succinct Indices · Giuseppe Ottaviano and Rossano Venturini, Partitioned Elias-Fano indexes

How I rate results

I start with an ordered coordinate stream. An anchor records the first value and the block offset in the delta stream. Each prefix can be checked against the explicit list to compare memory and maximum decoding work. An adaptive index still needs testing under the same query workload. Stream · Index

What does a delta index cost?

I generate all 640 positions of (0,2,6) in one period of 30,030. A 16-bit array takes 1,280 bytes. With variable-length deltas and two 16-bit words per anchor, I go from 890 bytes and at most seven decodes (blocks of 8) to 680 bytes and 63 decodes (blocks of 64). I verify all 30,030 prefix queries.

My next test is to choose block sizes on held-out queries and include all metadata. AT.IDX1 · Vigna, Quasi-Succinct Indices

The cost of a prefix in four representations

I verify every prefix of a 30,030-position universe containing 640 marks. Including format headers and anchors, I obtain 852 bytes for blocks of 16, 782 for adaptive blocks, 702 for blocks of 64 and 601 for Elias–Fano. My direct Elias–Fano reader is the slowest on this workload. A two-block cache produces five hits and five misses, checked against explicit positions. The byte counts measure serialised payloads.

I plan to add a select directory to Elias–Fano and measure its space and cold-query latency together. AT.IDX2 · Vigna, Quasi-Succinct Indices

Accounting for the selection directory

I recover all 30,030 prefixes with strides 8, 32 and 64. Serialised sizes rise from 601 bytes to 763, 643 and 623. Across seven requests my implicit two-block cache fallback emits 800 positions on five misses.

Measure end-to-end cost with dispersed queries and preprocessing. AT.IDX3 · Vigna, Quasi-Succinct Indices

Checking the level-47 threshold in independent segments

I fix four 65,536-tick segments around floor(R/3). I also compare 256 selects to an independent packed bit vector. I count 12,14,9,9 starts of gap 30 by two methods. The full prefix would need 3,127,491,163,069 segments of this size. On the reduced 30,030-position index the directory uses 763 bytes and the bitarray vector 3,754. The latter wins this microbenchmark. A two-block cache misses 267 of 288 dispersed queries.

I will compare two full algebraic splits under a fixed space budget. AT.IDX4 · Schnell, bitarray

Two partitions of the same level-47 prefix

I count starts of gaps of 30 in [0,131072) at level 47. I find 16 starts by marking and by two disjoint sums over 8 classes modulo 30 and 48 modulo 210. The full one-third prefix reported in XX.A01 requires computation on another scale.

Compare outputs and complete costs for both indices at the same level-47 threshold. AT.IDX5 · Schnell, bitarray

Historical results — XVII-A01 · Emitting coordinates in order, XVII-A02 · Delta index at 41, XVIII-A01 · Building Elias–Fano during generation, XVIII-A02 · One audited global prefix at level 47, XX-A01 · Checking a level-47 prefix

Download bilingual dossier ↓

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.