Recognizing Sorting Algorithms with the C4.5 Decision Tree Classifier
Recognizing Sorting Algorithms with the C4.5 Decision Tree Classifier
复制标题
使用 C4.5 决策树分类器识别排序算法
DOI:
--
复制
发表时间:
2010
期刊:
影响因子:
--
通讯作者:
Ahmad Taherkhani
中科院分区:
文献类型:
--
作者:
Ahmad Taherkhani
We present a method for automatic algorithm recognition, which consists of two phases. First, the target algorithms are converted into characteristic vectors, which are computed based on static analysis of program code including various statistics of language constructs and analysis of Roles of Variables. In the second phase, the algorithms are classified based on these vectors using the C4.5 decision tree classifier. We have developed a prototype and successfully applied the method to sorting algorithms. Evaluated with leave-one-out technique, the accuracy of the constructed decision tree classifier is 97.1%.