Atelier des rouesLab FR
Register/AT.P6
Exact identity and comparison · AT.P6

When one pass suffices to choose windows

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

I give an exact split rule under an additive cost model: open a new window when its anchor cost is lower than the cost of extending the previous window. This is the separable break-even case of optimization, not a new dynamic-programming principle; Bellman’s general framework covers broader coupled choices. The rule could guide a scheduler if costs are calibrated, but the evidence tests small batches and does not show that real runtimes follow the model.

Richard Bellman, On the Theory of Dynamic Programming · Carter Bays, Richard H. Hudson, The Segmented Sieve of Eratosthenes and Primes in Arithmetic Progressions to 10¹²

How I rate results

Assumptions

I charge each window an anchor A(a−1) and c per covered integer. All windows share the base primes.

Result

I cut before x if c(x−x_previous−1)>A(x−1). After sorting, decisions are independent. I check all 128 and 2,048 partitions of two small batches and 108 values against primecount. The model selects one window for all twelve clustered batches.

Prior work

Griffin Macris, Lucy’s Algorithm + Fenwick Trees · Kim Walisch, PrimeSieve and segmented Eratosthenes · Richard Bellman, On the Theory of Dynamic Programming · Kim Walisch, primecount

Next question

Test byte counting and a choice between quotient unions and windows on fresh batches.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

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