首页> 外文期刊>Journal of Algorithms >Simple constant amortized time generation of fixed length numeric partitions
【24h】

Simple constant amortized time generation of fixed length numeric partitions

机译:固定长度数字分区的简单常量摊销时间生成

获取原文
获取原文并翻译 | 示例
           

摘要

A numeric partition of n of fixed length k is an unordered sequence of k positive integers that sum to n. A recent implementation of Savage's constant amortized time (CAT) algorithm for generating numeric partitions in a minimal change order required over twenty-five pages of C code. According to Ruskey, there is no simple lexicographic algorithm that generates fixed length numeric partitions in the natural representation in constant amortized time (CAT) per partition. This paper describes such an algorithm and proves it is a CAT algorithm. As a byproduct. CAT generators are given for several other classes of numerical partitions, some of which have no prior CAT algorithm. (C) 2004 Elsevier Inc. All rights reserved.
机译:固定长度k的n的数字分区是与n求和的k个正整数的无序序列。 Savage的恒定摊销时间(CAT)算法的最新实现,用于以最小的更改顺序生成数字分区,而这需要超过25页的C代码。根据Ruskey的说法,没有简单的词典算法可以在每个分区中以固定的摊销时间(CAT)在自然表示中生成固定长度的数字分区。本文描述了这种算法,并证明它是一种CAT算法。作为副产品。 CAT生成器用于其他几种类型的数字分区,其中一些没有以前的CAT算法。 (C)2004 Elsevier Inc.保留所有权利。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号