A bioinspired discrete heuristic algorithm to generate the effective structural model of a program source code

被引:8
|
作者
Arasteh, Bahman [1 ]
Sadegi, Razieh [2 ]
Arasteh, Keyvan [1 ]
Gunes, Peri [3 ]
Kiani, Farzad [4 ]
Torkamanian-Afshar, Mahsa [5 ]
机构
[1] Istinye Univ, Fac Engn & Nat Sci, Dept Software Engn, Istanbul, Turkiye
[2] Islamic Azad Univ, Dept Comp Engn, Tabriz Branch, Tabriz, Iran
[3] Yildiz Tech Univ, Fac Engn, Dept Software Engn, Istanbul, Turkiye
[4] Fatih Sultan Mehmet Vakif Univ, Fac Engn, Comp Engn Dept, TR-34445 Istanbul, Turkiye
[5] Nisantasi Univ, Fac Engn & Architecture, Comp Engn Dept, TR-34398 Istanbul, Turkiye
关键词
Olympiad optimization algorithm; Software module clustering; Cohesion; Modularization quality; PARTICLE SWARM OPTIMIZATION; SOFTWARE;
D O I
10.1016/j.jksuci.2023.101655
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
When the source code of a software is the only product available, program understanding has a substantial influence on software maintenance costs. The main goal in code comprehension is to extract information that is used in the software maintenance stage. Generating the structural model from the source code helps to alleviate the software maintenance cost. Software module clustering is thought to be a viable reverse engineering approach for building structural design models from source code. Finding the optimal clustering model is an NP-complete problem. The primary goals of this study are to minimize the number of connections between created clusters, enhance internal connections inside clusters, and enhance clustering quality. The previous approaches' main flaws were their poor success rates, instability, and inadequate modularization quality. The Olympiad optimization algorithm was introduced in this paper as a novel population-based and discrete heuristic algorithm for solving the software module clustering problem. This algorithm was inspired by the competition of a group of students to increase their knowledge and prepare for an Olympiad exam. The suggested algorithm employs a divide-and-conquer strategy, as well as local and global search methodologies. The effectiveness of the suggested Olympiad algorithm to solve the module clustering problem was evaluated using ten real-world and standard software benchmarks. According to the experimental results, on average, the modularization quality of the generated clustered models for the ten benchmarks is about 3.94 with 0.067 standard deviations. The proposed algorithm is superior to the prior algorithms in terms of modularization quality, convergence, and stability of results. Furthermore, the results of the experiments indicate that the proposed algorithm can be used to solve other discrete optimization problems efficiently. (c) 2023 The Author(s). Published by Elsevier B.V. on behalf of King Saud University. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).
引用
收藏
页数:17
相关论文
共 30 条
  • [1] The harmony search heuristic algorithm for discrete structural optimization
    Lee, KS
    Geem, ZW
    Lee, SH
    Bae, KW
    ENGINEERING OPTIMIZATION, 2005, 37 (07) : 663 - 684
  • [3] Generating the structural graph-based model from a program source-code using chaotic forrest optimization algorithm
    Arasteh, Bahman
    Ghanbarzadeh, Reza
    Gharehchopogh, Farhad Soleimanian
    Hosseinalipour, Ali
    EXPERT SYSTEMS, 2023, 40 (06)
  • [4] A source code based model to generate GUI - GUI generation based on source code with declarative language extensions
    Monteiro, Marco
    Oliveira, Paula
    Goncalves, Ramiro
    ICSOFT 2008: PROCEEDINGS OF THE THIRD INTERNATIONAL CONFERENCE ON SOFTWARE AND DATA TECHNOLOGIES, VOL PL/DPS/KE, 2008, : 21 - +
  • [5] Identifying algorithm in program code based on structural features using CNN classification model
    Watanobe, Yutaka
    Rahman, Md Mostafizer
    Amin, Md Faizul Ibne
    Kabir, Raihan
    APPLIED INTELLIGENCE, 2023, 53 (10) : 12210 - 12236
  • [6] Identifying algorithm in program code based on structural features using CNN classification model
    Yutaka Watanobe
    Md. Mostafizer Rahman
    Md. Faizul Ibne Amin
    Raihan Kabir
    Applied Intelligence, 2023, 53 : 12210 - 12236
  • [7] A Taxonomy of Spanish Nouns, a Statistical Algorithm to Generate it and its Implementation in Open Source Code
    Nazar, Rogelio
    Renau, Irene
    LREC 2016 - TENTH INTERNATIONAL CONFERENCE ON LANGUAGE RESOURCES AND EVALUATION, 2016, : 1485 - 1492
  • [8] Duzen: generating the structural model from the software source code using shuffled frog leaping algorithm
    Arasteh, Bahman
    Karimi, Mohammad Bagher
    Sadegi, Razieh
    NEURAL COMPUTING & APPLICATIONS, 2023, 35 (03): : 2487 - 2502
  • [9] Düzen: generating the structural model from the software source code using shuffled frog leaping algorithm
    Bahman Arasteh
    Mohammad Bagher Karimi
    Razieh Sadegi
    Neural Computing and Applications, 2023, 35 : 2487 - 2502
  • [10] A Modified Horse Herd Optimization Algorithm and Its Application in the Program Source Code Clustering
    Arasteh, Bahman
    Gunes, Peri
    Bouyer, Asgarali
    Gharehchopogh, Farhad Soleimanian
    Banaei, Hamed Alipour
    Ghanbarzadeh, Reza
    COMPLEXITY, 2023, 2023