Home▸Algorithms & AI▸Fractional Cascading: Bridge Pointers, Short Walks and Memory Cost

🔗 Fractional Cascading: Bridge Pointers, Short Walks and Memory Cost

Fractional Cascading: Bridge Pointers, Short Walks and Memory Cost

Algorithms & AI2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Fractional Cascading: Bridge Pointers, Short Walks and Memory Cost ↗ Open standalone

The simulation builds a chain of sorted arrays with fractional cascading bridge pointers layered on top, then runs a query side by side against a naive per-list binary search to visually compare the number of comparisons each approach needs.

🔬 What It Demonstrates

The simulation builds a chain of sorted arrays with fractional cascading bridge pointers layered on top, then runs a query side by side against a naive per-list binary search to visually compare the number of comparisons each approach needs.

🎮 How to Use

Set the number of lists and their sizes, click build to construct the augmented structure with visible bridge pointers, then enter a query key to watch the single initial binary search followed by constant-time hops down the chain.

💡 Did You Know?

Fractional cascading gets its name because each level samples a fraction, specifically about half, of the elements from the level below, and this fraction cascades down the whole chain while still keeping every augmented list only a constant factor larger than its original size.

⚙ Under the hood

Fractional Cascading: Bridge Pointers, Short Walks and Memory Cost

fractional cascadingbinary searchdata structurescomputational geometryBlender

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)