APP023 · Proposed transfer (XI)
Prior work and my contribution
I propose periodic availability windows as a filter before a scheduling decision. The filter answers simultaneous availability.
Limit and next check
Add task durations, resource capacities and precedence. Compare with a scheduling solver.
Result
I flip one left-hand availability before selected queries. On the sparse (251,257) case with 64 long windows, rebuilding the bitmap seven times reverses the ranking of the two indexes. This measures simultaneous availability. Resource allocation would additionally require a cost function and conflicts between jobs.
Prior work
Horowitz & Sahni (1974), Computing Partitions with Applications to the Knapsack Problem
Related results
I distinguish the cost of changing an availability declaration from its effect on shared slots. In the sparse 240- and 272-period example, 49 of 63 updates change no slot.
I link this field to the following results. A calendar for every common-factor fibre
Historical reference identifiers · A01,A13,A20,O07
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
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
Historical results — A01 · Local constraints, A13 · Numerical observer via half-lists, A20 · Partner-signature quotient, A26 · A calendar for every common-factor fibre, O07 · Return clock