首页 | 本学科首页   官方微博 | 高级检索  
     


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 sgr into an output sequence tau which is a re-ordering of the sequence sgr. The setR of all such related pairs is studied in the case that sgr 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 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号