Atelier des rouesLab FR

Range counts on periodic filters

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I present a conductor-class method for range counts and rank/select over intersections of periodic masks, alongside bounded comparisons with materialized bit vectors and direct scans. Bettini, Mascetti, and Wang already represent calendar expressions as minimal periodic sets; Farina et al. study rank/select implementations and show that scans can be competitive. The possible use is choosing an index for repeated queries. I would test the reported crossover on larger periods and real traces, including complete build cost and memory, before claiming practical advantage.

Claudio Bettini, Sergio Mascetti & X. Sean Wang · Supporting Temporal Reasoning by Mapping Calendar Expressions to Minimal Periodic Sets · Antonio Fariña, Susana Ladra, Oscar Pedreira & Ángeles S. Places · Rank and Select for Succinct Data Structures · Daisuke Okanohara & Kunihiko Sadakane · Practical Entropy-Compressed Rank/Select Dictionary

How I rate results

APP024 · Supported mathematical construction (XI)

Prior work and my contribution

I group prefix divisions by conductor and certify selection with a strict prefix. I also link cylinder bounds and signed recursion, including its expensive cases.

Limit and next check

Measure cold and batch queries, including tables and output. Retain the dense level-43 limit.

Result

I compare gcd-class ranks with prefix counts over 64-bit words and direct counting. A single short window favours scanning for all four tested period and density combinations. I retain setup times and the initial memory peak so the cost of repeated use can be assessed.

Prior work

Horowitz & Sahni (1974), Computing Partitions with Applications to the Knapsack Problem · Oseledets (2011), Tensor-Train Decomposition

Related results

I maintain word ranks with a mutable Fenwick tree. With no flips, the static bitmap is faster on all 32 tested workloads. Both structures and the scanning control are supplied.

I link this field to the following results. Merging masks with identical partners · Compiling signatures before storing addresses · An address certificate for a gap of thirty

I connect this field to Compact partial addresses and a median witness at 47 · Sharing anchors among neighbouring thresholds · Optimal partition of ordered requests.

I distinguish list payload, process memory and the effect of shared anchors. At 37 only the list payload falls in XIV.

Reducing the byte size of partial-address lists · Selecting several ranks with exact fallback

Querying two periodic calendars

I provide a command accepting two integer masks, query windows and ranks in a JSON file. For periods 12 and 18 I obtain seven slots per 36 ticks and tick 13 at zero-based rank three. I check answers by a separate scan.

Time the full cost on an independent periodic workload. AT.T4 · Bettini, Mascetti & Wang, Supporting Temporal Reasoning by Mapping Calendar Expressions to Minimal Periodic Sets

I extract the Calendars kit and run python creneaux11.py --agenda agenda11.json. I replace the periods, open lists, half-open windows and zero-based ranks in the JSON.

The cost of building and querying a calendar

I fix two pairs of integer periods, masks and three profiles of 256 paired queries. Both methods give the same 1,536 count/rank pairs. On cycles of 420 and 5,063 ticks, materialisation wins on end-to-end time for all six loads. On the second cycle it uses 32,224 Python bytes to build against 3,932 for the implicit counter.

I seek a crossover at long periods and few queries, followed by a domain workload. AT.T5 · Bettini, Mascetti & Wang, Supporting Temporal Reasoning by Mapping Calendar Expressions to Minimal Periodic Sets

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

How many queries pay for building a calendar?

I measure five alternating repetitions on 60 workloads, two periods, two densities and three profiles. Each query checks prefix and selection. For cycle 420 the table wins at one query in all six profiles. For 5,063 the first tested winning count is four at low density and two at high density for all three localities. I publish medians with and without construction and peak Python memory.

Compare these thresholds with a dated calendar trace and cold-access costs. AT.T6 · Bettini, Mascetti & Wang, Supporting Temporal Reasoning by Mapping Calendar Expressions to Minimal Periodic Sets

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 — A12 · Cylinder bounds, A14 · Signed cylinders and presieving, A15 · General signed recurrence, A17 · Mask-group prefixes, A19 · Conductor-grouped prefixes, A21 · Batch selection, A22 · Merging masks with identical partners, A23 · Compiling signatures before storing addresses, A24 · An address certificate for a gap of thirty, O04 · CRT thresholds and arcs, O05 · Weighted contraction, A27 · Compact partial addresses and a median witness at 47, A28 · Sharing anchors among neighbouring thresholds, A29 · Optimal partition of ordered requests, A31 · Reducing the byte size of partial-address lists, A32 · Selecting several ranks with exact fallback, XV-A01 · Counting an implicit progression, XV-A02 · Sharing bisections, XVI-A01 · Compressing contiguous progression runs, XVI-A02 · Exact selection using anchors, XVII-A01 · Emitting coordinates in order, XVII-A02 · Delta index at 41, XVII-A03 · Persistent window cache, XVIII-A01 · Building Elias–Fano during generation, XVIII-A02 · One audited global prefix at level 47, XVIII-A03 · Exact fallback for a bounded cache, XIX-A01 · A second reading of a level-47 prefix, XIX-A02 · Bucket indexing for one computation component, XIX-A03 · Reusing persistent windows, XX-A01 · Checking a level-47 prefix, XX-A02 · Calibrating the number of prefix reads

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.