Sikau

Learn Project: A search engine

Build a search engine: autocomplete, an inverted index and spelling correction.

A combined module for after Data structures and Algorithms: build the café's recipe search — a trie for autocomplete, an inverted index with two-pointer intersection and ranking, edit-distance spelling suggestions with dynamic programming — and combine them into one fast engine with "did you mean" — all in one place.

Advanced · 4 lessons · about 3 hours · free

Start Project: A search engine free: run real code in your browserright here

Continue with Google

What you will learn

Unit 1: The recipe search engine

Data structures and algorithms behind one search box.

  1. Day 1Autocomplete with a trieA prefix tree with counts: suggest the most popular words as you type.40 min
  2. Day 2An inverted indexMap each word to its documents, intersect sorted lists with two pointers, rank by matches.45 min
  3. Day 3Did you mean…?Edit distance with dynamic programming, and ranked spelling suggestions.40 min
  4. Day 4Final: The search engineAutocomplete, ranked search and "did you mean" in one engine.50 min

Before you start

These courses make Project: A search engine easier:

See all courses

Built with ❤️ by dibe.sh