使用指令二元组进一步削减归纳程序搜索空间
Further Decimating the Inductive Programming Search Space with Instruction Digrams
AI总结:
本文提出将指令二元组作为归纳编程的额外搜索启发式方法,通过分析开源代码中二元组频率分布,利用其高度倾斜特性约束指令选择,进一步将搜索空间缩小数个数量级,从而显著增加可生成的程序规模。
摘要:
源自人类编写代码的重叠指令子集此前已被证明能大幅缩小归纳程序搜索空间,通常可达数个数量级。在此我们将指令子集方法扩展,考虑直接指令-指令应用(或指令二元组)作为归纳编程的额外搜索启发式方法。在本研究中,我们分析了开源代码大样本中指令二元组的频率分布。这表明指令二元组分布高度倾斜,超过93%的可能指令二元组在代码样本中未出现。我们证明指令二元组可用于约束搜索过程中的指令选择,进一步减小搜索空间规模,在某些情况下可达数个数量级。这显著增加了使用基于搜索的归纳编程技术可生成的程序规模。我们讨论了结果并提供了进一步工作的建议。
英文摘要:
Overlapping instruction subsets derived from human originated code have previously been shown to dramatically shrink the inductive programming search space, often by many orders of magnitude. Here we extend the instruction subset approach to consider direct instruction-instruction applications (or instruction digrams) as an additional search heuristic for inductive programming. In this study we analyse the frequency distribution of instruction digrams in a large sample of open source code. This indicates that the instruction digram distribution is highly skewed with over 93% of possible instruction digrams not represnted in the code sample. We demonstrate that instruction digrams can be used to constrain instruction selection during search, further reducing size of the the search space, in some cases by several orders of magnitude. This significantly increases the size of programs that can be generated using search based inductive programming techniques. We discuss the results and provide some suggestions for further work.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。