The Impact of Code Bloat on Genetic Program Comprehension: Replication of a Controlled Experiment on Semantic Inference

被引:1
|
作者
Kosar, Tomaz [1 ]
Kovacevic, Zeljko [2 ]
Mernik, Marjan [1 ]
Slivnik, Bostjan [3 ]
机构
[1] Univ Maribor, Fac Elect Engn & Comp Sci, Koroska Cesta 46, Maribor 2000, Slovenia
[2] Zagreb Univ Appl Sci, Dept Comp Sci & Informat, Vrbik 8, Zagreb 10000, Croatia
[3] Univ Ljubljana, Fac Comp & Informat Sci, Vecna Pot 113, Ljubljana 1000, Slovenia
关键词
genetic programming; program comprehension; controlled experiment; replication; semantic inference; attribute grammars; LANGUAGE; ALGORITHMS; TOOL;
D O I
10.3390/math11173744
中图分类号
O1 [数学];
学科分类号
0701 ; 070101 ;
摘要
Our previous study showed that automatically generated attribute grammars were harder to comprehend than manually written attribute grammars, mostly due to unexpected solutions. This study is an internally differentiated replication of the previous experiment, but, unlike the previous one, it focused on testing the influence of code bloat on comprehension correctness and efficiency. While the experiment's context, design, and measurements were kept mostly the same as in the original experiment, more realistic code bloat examples were introduced. The replicated experiment was conducted with undergraduate students from two universities, showing statistically significant differences in comprehension correctness and efficiency between attribute grammars without code bloat and attribute grammars with code bloat, although the participants perceived attribute grammars with code bloat as simple as attribute grammars without code bloat. On the other hand, there was no statistically significant difference in comprehension correctness and efficiency between automatically generated attribute grammars with possible unexpected solutions and attribute grammars with code bloat, although there was a statistically significant difference in participants' perspective of simplicity between automatically generated attribute grammars with possible unexpected solutions and attribute grammars with code bloat. The participants perceived attribute grammars with code bloat as significantly simpler than automatically generated attribute grammars.
引用
收藏
页数:20
相关论文
共 24 条