CS undergraduate thesis on uniform generation of k-trees for learning the structure of Bayesian networks (IME-USP 2016).