首页> 外文期刊>software-practice & experience >The effect of distance metrics in a general purpose synthesizer: An empirical study on integer domain imperative programs
【24h】

The effect of distance metrics in a general purpose synthesizer: An empirical study on integer domain imperative programs

机译:The effect of distance metrics in a general purpose synthesizer: An empirical study on integer domain imperative programs

获取原文
获取原文并翻译 | 示例
       

摘要

Context Program synthesis is the task of automatically finding a program that satisfies the user intention. In previous work, we have developed a program synthesizer that integrates genetic algorithm with model finder. A genetic algorithm uses a fitness function to calculate how "distant to a solution" a given candidate program is. Researchers argue that different distance metrics for a fitness function may reveal behavioral differences in the genetic algorithm. Objective We have chosen five distance metrics as fitness functions to check whether they affect the synthesis task of five different integer domain imperative toy-programs which read/write integer values using fundamental syntactic constructs, such as while, if-then-else, and so forth. We have used input/output examples and sketches to constrain the search space of the candidate programs. Method A hypothesis test was proposed and experiments were conducted to observe the number of calls to the fitness function (x) and to measure the synthesis time (xst). Results Regarding x, the synthesizer found a solution for all five subjects after calling the fitness function the same amount of times. For xst, a one-way ANOVA was performed with a significance level of 5 (alpha=0.05). No significant differences were observed in both x and xst. Conclusion With these preliminary results, this study suggests that the discrete distance metric is the best choice, because it guides the search with the same effectiveness as the others and is not time consuming, and so forth. However, future experimentation with a larger search space will confirm or not this initial impression.

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号