Efficient generation of graphical partitions
β Scribed by Tiffany M. Barnes; Carla D. Savage
- Book ID
- 104294793
- Publisher
- Elsevier Science
- Year
- 1997
- Tongue
- English
- Weight
- 578 KB
- Volume
- 78
- Category
- Article
- ISSN
- 0166-218X
No coin nor oath required. For personal study only.
β¦ Synopsis
Given a positive even integer n, we show how to generate the set G(n) of graphical partitions of n, that is, those partitions of n which correspond to the degree sequences of simple, undirected graphs. The algorithm is based on a recurrence for G(n), and the total time used by the algorithm, independent of output, is 0( IG(n)l), which is constant average time per graphical partition. This is the first algorithm shown to achieve such efficiency for generating G(n) and the direct approach differs from earlier 'generate and reject' schemes and the 'interval/gap' approach.
π SIMILAR VOLUMES
A rooted plane tree is a rooted tree with a left-to-right ordering specified for the children of each vertex. In this paper we give a simple algorithm to generate all rooted plane trees with at most n vertices. The algorithm uses O(n) space and generates such trees in O(1) time per tree without dupl