Atelier des rouesLab FR
Register/XIII.A29
Proposition with proof · XIII.A29

Optimal partition of ordered requests

0/4 Known result or no established contribution AI-assisted literature assessment · one reading

I recognize a standard sliding-window dynamic-programming reduction: for a contiguous group, the span term separates into a constant and a term in the start coordinate, leaving a window minimum of dp[j]−B·xⱼ. The deque gives linear total updates when admissible starts move monotonically; Bellman supplies the general recursion, and Lemire supplies the sliding-minimum technique. The 504 exhaustive cases are a useful check, but the fragment is a direct application, limited by the assumed linear span cost and contiguous groups.

On the Theory of Dynamic Programming — Richard Bellman · Streaming Maximum-Minimum Filter Using No More than Three Comparisons per Element — Daniel Lemire

How I rate results

Assumptions

I restrict groups to contiguous intervals of the sorted list, cost A+B·span and span ≤ H.

Result

I maintain the minimum of dp[i]−Bxᵢ over allowed starting indices with a monotone queue. Each index enters and leaves at most once. All-partition enumeration reproduces the optimum on 504 additional cases.

Prior work

Bellman, On the Theory of Dynamic Programming

Next question

Calibrate fixed and variable costs on actual workloads.

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.