Automatic Algorithm Recognition of Source-Code Using Machine Learning
Automatic Algorithm Recognition of Source-Code Using Machine Learning
复制标题
使用机器学习自动算法识别源代码
DOI:
10.1109/icmla.2017.00033
复制
发表时间:
2017
期刊:
影响因子:
--
通讯作者:
A. Al
中科院分区:
文献类型:
--
作者:
M. Shalaby;Tarek Mehrez;Amr El Mougy;Khalid Abdulnasser;A. Al
As codebases for software projects get larger, reaching ranges of millions of lines of code, the need for computeraided program comprehension grows. We define one of the tasks of program comprehension to be algorithm recognition: given a piece of source-code from a file, identify the algorithm this code is implementing, such as brute-force or dynamic programming. Most research in this area is making use of pattern matching, which involves much human effort and is of questionable accuracy when the structure and semantics of programs change. Thus, this paper proposes to let go of defined patterns, and make use of simpler features, such as counts of variables and counts of different constructs to recognize algorithms. We then feed these features to a classification algorithm to predict the class or type of algorithm used in this source code. We show through experimental results that our proposed method achieves a good improvement over baseline.
DOI:
--
发表时间:
2012
期刊:
影响因子:
--
作者:
清水まみ;安田尚史;中村晃;勝田敦美;佐々木弘智;荒井隆志;永田正男;原賢太;横野浩一
通讯作者:
横野浩一