Many algorithms to generate all trees with n vertices without repetition are already known. The best algorithm runs in time proportional to the number of trees. However, the time needed to generate each tree may not be bounded by a constant, even though it is "on average". In this paper we give a simple algorithm to generate all trees with exactly n vertices and diameter d, without repetition. Our algorithm generates each tree in constant time. It also generates all trees so that each tree can be obtained from the preceding tree by at most three operations. Each operation consists of a deletion of a vertex and an addition of a vertex. By using the algorithm for each diameter 2,3, ⋯, n-1, we can generate all trees with n vertices. © Springer-Verlag 2004.
CITATION STYLE
Nakano, S. I., & Uno, T. (2004). Constant time generation of trees with specified diameter. Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 3353, 33–45. https://doi.org/10.1007/978-3-540-30559-0_3
Mendeley helps you to discover research relevant for your work.