RECURRENCE RELATIONS ON HEAPS

Authors
Citation
R. Sprugnoli, RECURRENCE RELATIONS ON HEAPS, Algorithmica, 15(5), 1996, pp. 467-480
Citations number
25
Categorie Soggetti
Computer Sciences",Mathematics,Mathematics,"Computer Science Software Graphycs Programming
Journal title
ISSN journal
01784617
Volume
15
Issue
5
Year of publication
1996
Pages
467 - 480
Database
ISI
SICI code
0178-4617(1996)15:5<467:RROH>2.0.ZU;2-J
Abstract
We examine three quantities related to heaps: the number of heaps with n nodes, the number of permutations generating the same heap, and the average number of exchange operations necessary for generating a heap from a given permutation. We find recurrence relations for these quan tities, and are thus able to compute them in time O(ln n). We also obt ain the asymptotic values for n = 2(r) - 1. We determine an upper and a lower bound for the number of exchange operations involved (a well-k nown quantity in computer science), and study its behavior when n rang es between two consecutive powers of 2.