Algorithms Behind AI

A thread you can test

Search and Sorting

3 notes move from the word to a real choice at work — understand it first, then decide whether to use it.

READING THREADOPEN
3notes
HOW TO READStart where you are stuck, then follow the evidence and trade-offs

Each note stands alone, or becomes the next step in this thread.

Algorithms Behind AINo login

THE QUESTION THIS PAGE ANSWERS

ANSWER FIRST

What is Search and Sorting, and which AI decisions does it change?

Play a 1-to-100 number-guessing round and feel the range cut in half each guess; a billion items found in 30 tries—how fast log n really is This page keeps the related concepts, common mistakes, and practical notes in one reading thread.

DECISION RULE

First decide whether you are blocked by a definition, a choice, or verification; then choose the closest of the 3 notes below.

TRY NEXT

Start with “Binary Search: The Optimal Number-Guessing Game,” then restate the conclusion using your own task.

WATCH FOR

Do not treat every method in a topic as interchangeable. The answer changes with the input, risk, and acceptance bar.

THIS QUESTION THREAD

Put the word back inside the choice it changes.

3 notes
Interactive

Binary Search: The Optimal Number-Guessing Game

Play a 1-to-100 number-guessing round and feel the range cut in half each guess; a billion items found in 30 tries—how fast log n really is

Algorithms Behind AI 5 min →
Animation

Sorting: Bubble Sort vs Quicksort Race

A head-to-head visual animation of two sorts: watch bubble sort nudge step by step and quicksort leap by partitions; see how lopsided the gap gets once the data grows

Algorithms Behind AI 5 min →
Interactive

Sorting's Real Face in AI: Rerank

Passages RAG retrieves can't go in as-is: coarse ranking first, then fine ranking. Tweak the weights yourself and watch candidates reshuffle—feeds and search results work the same way

Algorithms Behind AI 5 min →