Back to search

University of Victoria (Canada)

Generation of rooted trees and free trees

Abstract

dc:description.abstract

In this thesis we present two new recursive algorithms for generating unlabeled rooted trees and unlabeled free trees . We first simplify Beyer-Hedetniemi's [5] iter­ative algorithm for generating rooted trees by using the more natural parent array representation. We then develop a new recursive algorithm which is much simpler, more flexible and easier to analyze. With some simple modifications, our algorithm will generate rooted trees of size n with height lying in a given range and/or with the number of children of each node bounded by a given integer. Our recursive al­gorithm for generating rooted trees is then extended to generate free trees . We also show how to make some simple modifications to generate free trees with some height constraints and/or with a degree restriction. Both algorithms and their modifications run in constant amortized time which is the best possible.

Degree

thesis:*
Level thesis:degree_level
Master of Science M.Sc.
Department thesis:degree_department
Department of Computer Science
Year dc:date.issued
1996

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Li, Gang

Rights

dc:rights
Statement dc:rights
  • Available to the World Wide Web

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1828/18651

Chain of custody

source
Harvested from
University of Victoria (Canada)
Base URL
dspace.library.uvic.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Li, Gang. Generation of rooted trees and free trees. Master of Science M.Sc. thesis, 1996. https://hdl.handle.net/1828/18651