计算机科学 > 形式语言与自动机理论
[提交于 2018年7月27日]
标题:Enumerating Cryptarithms Using Deterministic Finite Automata
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:A cryptarithm is a mathematical puzzle where given an arithmetic equation written with letters rather than numerals, a player must discover an assignment of numerals on letters that makes the equation hold true. In this paper, we propose a method to construct a DFA that accepts cryptarithms that admit (unique) solutions for each base. We implemented the method and constructed a DFA for bases $k \le 7$. Those DFAs can be used as complete catalogues of cryptarithms,whose applications include enumeration of and counting the exact numbers $G_k(n)$ of cryptarithm instances with $n$ digits that admit base-$k$ solutions. Moreover, explicit formulas for $G_2(n)$ and $G_3(n)$ are given.
提交历史
来自:Ryo Yoshinaka[v1] 2018年7月27日 星期五 01:37:45 UTC