一种基于Catalan组合对象族的通用编号系统
A Generic Numbering System based on Catalan Families of Combinatorial Objects
摘要:
我们描述了算术算法的规范数表示的基础上指定为Haskell类型类的组合对象的加泰罗尼亚家庭。我们的算法工作在一个{ \em通用}表示,我们说明加泰罗尼亚家庭的实例成员,如有序的二进制和多路树。我们验证我们的算法的正确性,通过定义一个实例的相同类型的类的基础上,通常的基于位串的自然数。虽然他们的平均和最坏情况下的复杂性是在他们的传统同行的常数因子,我们的算法提供了超指数增益对应于加泰罗尼亚对象的低表示大小的数字。
英文摘要:
We describe arithmetic algorithms on a canonical number representation based on the Catalan family of combinatorial objects specified as a Haskell type class. Our algorithms work on a {\em generic} representation that we illustrate on instances members of the Catalan family, like ordered binary and multiway trees. We validate the correctness of our algorithms by defining an instance of the same type class based the usual bitstring-based natural numbers. While their average and worst case complexity is within constant factors of their traditional counterparts, our algorithms provide super-exponential gains for numbers corresponding to Catalan objects of low representation size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。