Dovetailing

Definition. Dovetailing turns a two-dimensional infinite grid into a single list by sweeping a finite quantity (the short diagonals, or the length), so that every cell is reached after finitely many finite stages and no infinite row can block the walk.

It lists the positive rationals and the finite binary strings (Lecture 2, Examples 3 and 5), and in Lecture 6 a deterministic machine uses it to explore every branch of a nondeterministic one. See Countable.

Created · Updated
Copyright © 2026 Jared Coleman. All rights reserved.