自动化Thinning定理:合成高效的动态规划算法
Automating Thinning Theorem: Synthesizing Efficient Dynamic Programming Algorithms
AI总结:
针对Thinning技术应用门槛高、单独使用难以生成专家级高效动态规划算法的问题,提出MetHyl及整合三条优化规则的MetHyl+方法,实现Thinning自动化,在37项任务上多数获指数级加速且超七成达专家效率。
摘要:
动态规划是一种重要的优化技术,但即使对于专业程序员来说,设计高效的动态规划算法也可能十分困难。Thinning(细化)是一种为系统推导高效动态规划算法而开发的技术,因其适用于一大类问题的有效性而在研究中受到广泛关注。尽管Thinning在理论上取得了成功,但其实际应用仍然受限,原因有二:(1)应用Thinning需要具备数学和算法背景;(2)仅应用Thinning可能不足以生成与人类专家提出的算法一样高效的算法。\n在本文中,我们提出了两种方法,即MetHyl和MetHyl+,以解决这两个问题。首先,MetHyl通过程序合成实现了Thinning应用的自动化,从而免去了用户应用Thinning的负担。其次,MetHyl+在MetHyl中整合了三条规则,用于优化Thinning所忽略的、影响动态规划算法时间复杂度的三个重要因素,从而使其能够在许多任务上自动生成专家级的动态规划算法。\n我们在从热门算法课程教材《算法导论》中收集的、涉及16个优化问题的37项任务上评估了我们的方法。结果表明,MetHyl+在97.3%的任务上实现了指数级加速,平均耗时不到一分钟。此外,在70.3%的任务上,MetHyl+生成的算法效率与人类专家提供的参考程序相当。
英文摘要:
Dynamic programming is an important optimization technique, but designing efficient dynamic programming algorithms can be difficult for even professional programmers. Thinning, a technique developed for systematically deriving efficient dynamic programming algorithms, has received much attention in studies because of its effectiveness for a large class of problems. Despite the success of thinning in theory, its practical usage is still limited because (1) applying thinning requires mathematical and algorithmic background, and (2) applying thinning solely may not be enough to generate algorithms as efficient as proposed by human experts. In this paper, we propose two approaches, MetHyl and MetHyl+, to resolve both problems. First, MetHyl automates the application of thinning via program synthesis and thus eliminates the burden to the user for applying thinning. Second, MetHyl+ integrates three rules into MetHyl that optimize three important factors on the time complexity of dynamic programming algorithms that are ignored by thinning, and thus make it able to automatically generate expert-level dynamic programming algorithms on many tasks. We evaluate our approaches on 37 tasks related to 16 optimization problems collected from Introduction to Algorithm, a popular textbook for algorithm courses. The results show that MetHyl+ achieves exponential speed-ups on 97.3% of tasks with an average time cost of less than one minute. Moreover, MetHyl+ generates algorithms that are as efficient as the reference programs provided by human experts on 70.3% of tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。