Problem: I have a database result set of n. I want to have k < n index links to the results on a html page. There should be more index links near the cursor, have the user forward +5 is more probable than to forward +50
Idea is to have a number line on a rubber band with markings, if I put a weight on the cursor point and view from above I should have the index points.
Is there an easy algorithm for this?
Same problem would be for an index to forum messages.