Functional Pearl: Enumerating the Rationals [pdf]
1–7 of 7 posts
Re: Functional Pearl: Enumerating the Rationals [pdf]
#2Re: Functional Pearl: Enumerating the Rationals [pdf]
#3This looks very weird in my pdf-viewer.
Re: Functional Pearl: Enumerating the Rationals [pdf]
#4There are two things that could be improved about the paper in my opinion, but they are minor. First, the proof of the formula for the next sibling in the Calkin-Wilf tree (Figure 3 in the paper) becomes much more obvious when you express x and x_0' in terms of y instead of expressing y and x_0' in terms of x. Second, the Stern-Brocot tree is a bit of a detour without any real payoff. It's just as easy to go from the traced gcd directly to the Calkin-Wilf tree.
The latter part is a bit of a shame, since there are plenty of things that could be said about the Stern-Brocot tree (see e.g. Concrete Mathematics by Graham, Knuth, and Patashnik), but then it would have to be moved to the end of the paper. The paper doesn't do this in order to have the nice closed form solution for the titular enumeration at the end instead...
Re: Functional Pearl: Enumerating the Rationals [pdf]
#5Re: Functional Pearl: Enumerating the Rationals [pdf]
#6This looks very weird in my pdf-viewer.