一种利用遗传算法改进软件模块质量的方法和系统
By analyzing software source code using genetic algorithms, architectural smells can be identified and reconstructed, solving the problem of difficulty in identifying and reconstructing architectural smells in existing technologies, and improving the quality and maintainability of software systems.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NANJING UNIV
- Filing Date
- 2022-09-24
- Publication Date
- 2026-07-17
AI Technical Summary
Existing technologies struggle to effectively identify and refactor architectural smells, leading to increased software system complexity and decreased quality. Furthermore, there is a lack of effective refactoring operation sequences and methods for evaluating their effectiveness.
Genetic algorithms are used to analyze the syntax tree of software source code, identify off-flavor components in the software dependency network, and generate reconstruction schemes, including hub-type, unstable, and cyclic dependency off-flavor detection algorithms. Binary tournament selection, single-point crossover, and single-point mutation operators are combined to generate optimized reconstruction schemes.
The quality of software modules was improved by eliminating odors, reducing coupling, and increasing cohesion, thereby improving the maintainability of the software system.
Smart Images

Figure CN115373735B_ABST