Christian Elsholtz, Clemens Heuberger, Daniel Krenn
{"title":"Algorithmic counting of nonequivalent compact Huffman codes","authors":"Christian Elsholtz, Clemens Heuberger, 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<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<1\\)</span> depending on <i>t</i> only) or <span>\\(N^{2+\\varepsilon }\\)</span> bit operations, respectively, for any <span>\\(\\varepsilon >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)
the number of nonequivalent compact Huffman codes of length n over an alphabet of t letters,
(2)
the number of “nonequivalent” complete rooted t-ary trees (level-greedy trees) with n leaves,
(3)
the number of “proper” words (in the sense of Even and Lempel),
(4)
the number of bounded degree sequences (in the sense of Komlós, Moser, and Nemetz), and
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.
期刊介绍:
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.