Documentation

CslibFrontier.DataStructure.FusionTree.WordRAM.Binary

Two-child node search #

Below the large-width fusion threshold, the tree branches in two. Direct comparison of the two child minima supplies a uniform constant-time fallback. The eighteen-word header and interleaved key/pointer table use the same layout as larger nodes.

Main definitions #

Main results #

References #

@[reducible, inline]

The register interface agrees with the larger fusion-node query.

@[reducible, inline]

Bounded query, preserved.

@[reducible, inline]

Final inclusive rank, zero, one, or two.

@[reducible, inline]

Distance between the two child minima.

@[reducible, inline]

Offset of the child table.

Two direct full-key comparisons, with charged constants and memory loads.

The inclusive rank among two increasing full keys.

Exact data after reading both minima and returning their rank.

The direct comparison expression equals inclusive rank, with equality counted.

Eleven instructions suffice for the binary fallback. All address and constant bounds follow from the address of the second key; all memory, query, and record base are preserved. Only registers two through seven change.