Home▸Algorithms & AI▸Functionality Advanced Search - Boolean Query Merge, Skip Pointers and Query Order

🧪 Functionality Advanced Search - Boolean Query Merge, Skip Pointers and Query Order

The same inverted-index query seen as five tracks along the page-id axis: the three posting lists, the intermediate list and the result, with cursors, skip jumps and matches replayed from the shared merge trace. The lower view compares the cost of a full scan, a plain merge and this query, and magnifies the page ids under the active cursors so every comparison can be followed. Same model and numerical checks as the 3D version.

Algorithms & AI2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Functionality Advanced Search - Boolean Query Merge, Skip Pointers and Query Order ↗ Open standalone

See how a search engine answers an advanced query such as simulation AND pendulum AND chaos. Every word owns a posting list, the sorted ids of the 2000 catalogue pages that contain it, and the engine answers the query by merging lists with two cursors that walk along the page-id axis. Choose the document frequencies, the Boolean operator (AND, OR, (A OR B) AND C, AND NOT), the merge order and the skip-pointer spacing, and watch brass cursors slide along walnut shelves of index cards while every page-id comparison is counted. The cost of a plain merge is exactly entries consumed minus matches; the intersection of independent words has about a b / N pages; a skip pointer every sqrt(2 n / m) entries on the long list beats a plain merge for a rare word against a common one; and merging the rarest words first keeps the intermediate list short. Blender-built shelves, index cards, brass cursors and card-catalogue cabinet; numerical checks on the merge against a hash-set intersection, inclusion-exclusion, De Morgan, the cost identity, the hypergeometric mean for two and three words, skip-pointer correctness and the optimal skip spacing.

⚙ Under the hood

The same inverted-index query seen as five tracks along the page-id axis: the three posting lists, the intermediate list and the result, with cursors, skip jumps and matches replayed from the shared merge trace. The lower view compares the cost of a full scan, a plain merge and this query, and magnifies the page ids under the active cursors so every comparison can be followed. Same model and numerical checks as the 3D version.

Advanced SearchInverted IndexBoolean RetrievalSkip PointersPosting ListsInformation RetrievalQuery Optimisation

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

What did you find?

Add reproduction steps (optional)