arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.00938cs.AIcs.PL
收藏

基于可视化规范的程序合成

Program Synthesis from Visual Specification

University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Evan Hernandez, Ara Vartanian, Xiaojin Zhu

摘要:

程序合成是自动地将规范翻译成计算机代码的过程。传统的合成设置需要一个正式的,精确的规范。出于计算机教育应用程序的学生学习代码简单的海龟风格的绘图程序,我们研究了一种新的合成设置,只有一个嘈杂的用户意图绘图指定。这使得学生能够绘制他们想要的输出,可选地与他们自己的未完成的程序一起,以自动生成完整的程序。我们制定这个综合问题的搜索空间的程序,与得分的状态之间的Hausdorff距离的程序输出和用户绘图。我们比较了几种搜索算法的语料库组成的真实用户图纸和相应的程序,并证明我们的算法可以合成最佳满足规范的程序。

英文摘要:

Program synthesis is the process of automatically translating a specification into computer code. Traditional synthesis settings require a formal, precise specification. Motivated by computer education applications where a student learns to code simple turtle-style drawing programs, we study a novel synthesis setting where only a noisy user-intention drawing is specified. This allows students to sketch their intended output, optionally together with their own incomplete program, to automatically produce a completed program. We formulate this synthesis problem as search in the space of programs, with the score of a state being the Hausdorff distance between the program output and the user drawing. We compare several search algorithms on a corpus consisting of real user drawings and the corresponding programs, and demonstrate that our algorithms can synthesize programs optimally satisfying the specification.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑