The Cantor set is a fractal that is obtained by repeatedly removing the middle third of a segment. Start with the closed interval . Remove the open interval to obtain , i.e. two disjoint closed segments. Remove the middle thirds of those two segments, and you end up with four disjoint segments. After infinitely many steps, the result is called the Cantor set. The diagram below is only an approximation after a finite number of steps.