Algorithmic counting of nonequivalent compact Huffman codes

IF 0.6 4区 工程技术 Q4 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS
Christian Elsholtz, Clemens Heuberger, Daniel Krenn
{"title":"Algorithmic counting of nonequivalent compact Huffman codes","authors":"Christian Elsholtz,&nbsp;Clemens Heuberger,&nbsp;Daniel Krenn","doi":"10.1007/s00200-022-00593-0","DOIUrl":null,"url":null,"abstract":"<div><p>It is known that the following five counting problems lead to the same integer sequence <span>\\({f_t}({n})\\)</span>: </p><ol>\n <li>\n <span>(1)</span>\n \n <p>the number of nonequivalent compact Huffman codes of length <i>n</i> over an alphabet of <i>t</i> letters,</p>\n \n </li>\n <li>\n <span>(2)</span>\n \n <p>the number of “nonequivalent” complete rooted <i>t</i>-ary trees (level-greedy trees) with <i>n</i> leaves,</p>\n \n </li>\n <li>\n <span>(3)</span>\n \n <p>the number of “proper” words (in the sense of Even and Lempel),</p>\n \n </li>\n <li>\n <span>(4)</span>\n \n <p>the number of bounded degree sequences (in the sense of Komlós, Moser, and Nemetz), and</p>\n \n </li>\n <li>\n <span>(5)</span>\n \n <p>the number of ways of writing </p><div><div><span>$$\\begin{aligned} 1= \\frac{1}{t^{x_1}}+ \\dots + \\frac{1}{t^{x_n}} \\end{aligned}$$</span></div></div><p> with integers <span>\\(0 \\le x_1 \\le x_2 \\le \\dots \\le x_n\\)</span>.</p>\n \n </li>\n </ol><p>In this work, we show that one can compute this sequence for <b>all</b> <span>\\(n&lt;N\\)</span> with essentially one power series division. In total we need at most <span>\\(N^{1+\\varepsilon }\\)</span> additions and multiplications of integers of <i>cN</i> bits (for a positive constant <span>\\(c&lt;1\\)</span> depending on <i>t</i> only) or <span>\\(N^{2+\\varepsilon }\\)</span> bit operations, respectively, for any <span>\\(\\varepsilon &gt;0\\)</span>. This improves an earlier bound by Even and Lempel who needed <span>\\({O}({{N^3}})\\)</span> operations in the integer ring or <span>\\(O({N^4})\\)</span> bit operations, respectively.</p></div>","PeriodicalId":50742,"journal":{"name":"Applicable Algebra in Engineering Communication and Computing","volume":null,"pages":null},"PeriodicalIF":0.6000,"publicationDate":"2023-01-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://link.springer.com/content/pdf/10.1007/s00200-022-00593-0.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Applicable Algebra in Engineering Communication and Computing","FirstCategoryId":"5","ListUrlMain":"https://link.springer.com/article/10.1007/s00200-022-00593-0","RegionNum":4,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0

Abstract

It is known that the following five counting problems lead to the same integer sequence \({f_t}({n})\):

  1. (1)

    the number of nonequivalent compact Huffman codes of length n over an alphabet of t letters,

  2. (2)

    the number of “nonequivalent” complete rooted t-ary trees (level-greedy trees) with n leaves,

  3. (3)

    the number of “proper” words (in the sense of Even and Lempel),

  4. (4)

    the number of bounded degree sequences (in the sense of Komlós, Moser, and Nemetz), and

  5. (5)

    the number of ways of writing

    $$\begin{aligned} 1= \frac{1}{t^{x_1}}+ \dots + \frac{1}{t^{x_n}} \end{aligned}$$

    with integers \(0 \le x_1 \le x_2 \le \dots \le x_n\).

In this work, we show that one can compute this sequence for all \(n<N\) with essentially one power series division. In total we need at most \(N^{1+\varepsilon }\) additions and multiplications of integers of cN bits (for a positive constant \(c<1\) depending on t only) or \(N^{2+\varepsilon }\) bit operations, respectively, for any \(\varepsilon >0\). This improves an earlier bound by Even and Lempel who needed \({O}({{N^3}})\) operations in the integer ring or \(O({N^4})\) bit operations, respectively.

Abstract Image

非等价紧凑霍夫曼码的算法计数
众所周知,以下五个计数问题会导致相同的整数序列 \({f_t}({n})\): (1) 长度为 n、长度为 t、长度为 t 个字母的非等价紧凑哈夫曼码的个数;(2) 有 n 个叶子的 "非等价 "完整有根 tary 树(level-greedy 树)的个数;(3) "适当 "词的个数(在 Even 和 Lempel 的意义上)、 (4) 有界程度序列的个数(在 Komlós、Moser 和 Nemetz 的意义上),以及 (5) $$begin{aligned} 1= \frac{1}{t^{x_1}}+ \dots + \frac{1}{t^{x_n}} 的写法个数。\end{aligned}$$ 与整数 \(0 \le x_1 \le x_2 \le \dots \le x_n\). 在这项工作中,我们证明了对于所有的 \(n<N\) 都可以用一个幂级数除法来计算这个序列。对于任意的\(\varepsilon >0\),我们总共只需要对cN比特的整数进行加法和乘法运算(对于一个正常数\(c<1\)只取决于t),或者分别进行\(N^{2+\varepsilon }\) 比特运算。这改进了埃文(Even)和伦佩尔(Lempel)的早期约束,他们分别需要在整数环中进行\({O}({{N^3}})\) 操作或\(O({N^4})\) 位操作。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Applicable Algebra in Engineering Communication and Computing
Applicable Algebra in Engineering Communication and Computing 工程技术-计算机:跨学科应用
CiteScore
2.90
自引率
14.30%
发文量
48
审稿时长
>12 weeks
期刊介绍: Algebra is a common language for many scientific domains. In developing this language mathematicians prove theorems and design methods which demonstrate the applicability of algebra. Using this language scientists in many fields find algebra indispensable to create methods, techniques and tools to solve their specific problems. Applicable Algebra in Engineering, Communication and Computing will publish mathematically rigorous, original research papers reporting on algebraic methods and techniques relevant to all domains concerned with computers, intelligent systems and communications. Its scope includes, but is not limited to, vision, robotics, system design, fault tolerance and dependability of systems, VLSI technology, signal processing, signal theory, coding, error control techniques, cryptography, protocol specification, networks, software engineering, arithmetics, algorithms, complexity, computer algebra, programming languages, logic and functional programming, algebraic specification, term rewriting systems, theorem proving, graphics, modeling, knowledge engineering, expert systems, and artificial intelligence methodology. Purely theoretical papers will not primarily be sought, but papers dealing with problems in such domains as commutative or non-commutative algebra, group theory, field theory, or real algebraic geometry, which are of interest for applications in the above mentioned fields are relevant for this journal. On the practical side, technology and know-how transfer papers from engineering which either stimulate or illustrate research in applicable algebra are within the scope of the journal.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信