Computer Engineering & Science ›› 2021, Vol. 43 ›› Issue (04): 689-696.
Previous Articles Next Articles
LI Wen-hao,LI Ying-mei,BIAN Yi-xin
Received:
Revised:
Accepted:
Online:
Published:
Abstract: In the research of code refactoring at the package level, in order to obtain the software structure of "high cohesion and low coupling", the hierarchical clustering algorithm is considered to be a better software clustering algorithm because of its simple and effective characteristics and high clustering accuracy. However, the time complexity of the hierarchical clustering algorithm is high, which is not conducive to processing large-scale software. The DBSCAN algorithm, on the other hand, has faster clustering speed but lower accuracy. Therefore, a software hierarchical clustering algorithm based on DBSCAN is proposed, which uses the classes generated by the DBSCAN algorithm to constrain the clustering space of the hierarchical clustering algorithm. This algorithm can keep the accuracy of the hierarchical clustering algorithm unchanged, and its time complexity lies between DBSCAN and the hierarchical clustering algorithm. The experimental results show that the algorithm can effectively divide the software reasonably, and prove that the performance of the algorithm is better than other common clustering algorithms through expert evaluation, module division metrics and algorithm running time comparison.
Key words: DBSCAN algorithm, hierarchical clustering, software clustering, code refactoring
LI Wen-hao, LI Ying-mei, BIAN Yi-xin. Improvement of code package level refactoring based on DBSCAN algorithm[J]. Computer Engineering & Science, 2021, 43(04): 689-696.
0 / / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://joces.nudt.edu.cn/EN/
http://joces.nudt.edu.cn/EN/Y2021/V43/I04/689