Transforming binary sequences using priority queues |
| |
Authors: | M. D. Atkinson |
| |
Affiliation: | (1) Department of Mathematical and Computational Sciences, North Haugh, St. Andrews, KY16 9SS Fife, Scotland |
| |
Abstract: | A priority queue transforms an input sequence into an output sequence which is a re-ordering of the sequence . The setR of all such related pairs is studied in the case that is a binary sequence. It is proved thatR is a partial order and that ¦R¦=cn+1, the (n+1)th Catalan number. An efficient (O(n2)) algorithm is given for computing the number of outputs achievable from a given input. |
| |
Keywords: | 06A06 |
本文献已被 SpringerLink 等数据库收录! |
|