数学 > 组合数学
[提交于 2010年9月10日]
标题:Ranking and unranking trees with a given number or a given set of leaves
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In this paper, we provide algorithms to rank and unrank certain degree-restricted classes of Cayley trees (spanning trees of the n-vertex complete graph). Specifically, we consider classes of trees that have a given set of leaves or a fixed number k of leaves. For fixed k, the number of Cayley trees with n vertices and k leaves grows roughly as n! and hence the ranks have O(nlog_2(n)) bits. Our ranking and unranking algorithms require at most O(n^2) comparisons of numbers less than or equal to n plus O(n) operations of multiplication, division, addition, substraction and comparision on numbers of length O(nlog(n)).
提交历史
来自:Stanley Williamson[v1] 2010年9月10日 星期五 17:16:11 UTC