SPACE-TIME TRADE-OFFS IN THE RELATIVE UNRANKING OF BINARY-TREES

Citation
Cn. Sekharan et al., SPACE-TIME TRADE-OFFS IN THE RELATIVE UNRANKING OF BINARY-TREES, Computer journal, 39(1), 1996, pp. 36-44
Citations number
21
Categorie Soggetti
Computer Sciences","Computer Science Hardware & Architecture
Journal title
ISSN journal
00104620
Volume
39
Issue
1
Year of publication
1996
Pages
36 - 44
Database
ISI
SICI code
0010-4620(1996)39:1<36:STITRU>2.0.ZU;2-D
Abstract
The set of binary trees with n internal vertices can be totally ordere d using a number of different representations. There are C-n binary tr ees in any such order where C-n denotes the nth Catalan number. Given a total order on the set of binary trees with n internal vertices acid an integer i, 1 less than or equal to i less than or equal to C-n, th e unranking problem is to generate the binary tree whose ordinal numbe r is i. Given a binary tree with T with ordinal number j < C-n and an integer i, 1 less than or equal to i less than or equal to C-n - j, a slight generalization of the unranking problem, called the relative un ranking problem, is to find the binary tree with ordinal number i rela tive to T. The relative unranking problem is motivated by its applicat ion to computing a Steiner minimal tree in parallel. In this paper, a computationally efficient algorithm for solving the relative unranking problem is presented. The algorithm is based on a certain directed gr aph, called the feasible suffix graph, whose combinatorial properties are of independent interest. One of the salient features of the algori thm is that the unranking time can be traded for space. Computational experience with the algorithm is reported.