Enumerating trees and circles 0 ▲ John D. Cook 1 hour ago · Nature · hide · 0 comments A few days ago I wrote a post on counting rooted trees. That post looked at the sequence c(n) which counts the number of rooted trees with n nodes. Here one node is distinguished as the root, but the nodes below the root are not distinguished from each other; all that matters is how the nodes are connected. The number of rooted trees with n nodes is the same as the number of ways to configure n − 1 non-overlapping circles. Not only are the counts the same, there is a natural correspondence between the trees and the circles. It’s not obvious that there should be such a correspondence, with the right notation the correspondence is sort of a pun. The standard way to represent unlabeled trees is as a multiset of their children. We use a multiset, not a set, because some elements will be repeated. We represent a leaf as a pair of parentheses: (). There is only one rooted tree with one node: (). There is only one rooted tree with one two nodes: (()). Here the outer parentheses represent the… No comments yet. Log in to reply on the Fediverse. Comments will appear here.