首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于频谱信息并结合碰集和遗传算法的缺陷定位方法
引用本文:周明泉,江国华.一种基于频谱信息并结合碰集和遗传算法的缺陷定位方法[J].计算机科学,2018,45(9):207-212.
作者姓名:周明泉  江国华
作者单位:南京航空航天大学计算机科学与技术学院 南京211100,南京航空航天大学计算机科学与技术学院 南京211100
摘    要:在软件研制过程中,缺陷定位是一个重要的研究课题。但是,实际软件中的缺陷数量无法被预先判定,且已有的单缺陷定位方法不易使用,已有的多缺陷定位方法存在定位效率不高的问题。基于此,文中对多缺陷定位方法GAMFL进行了研究和改进,提出了基于频谱信息并结合碰集和遗传算法的缺陷定位方法GAHIT。该方法定义了定位基本块,并用其替代语句进行缺陷定位,缩小了搜索范围;在初始种群的构造过程中,提出了采用求解失败用例执行路径碰集的方法,优化了初始种群的生成,并给出了新的适应度函数的计算方法,提高了算法的整体执行效率;最后针对遗传算法的结果,给出了缺陷检查策略,提高了在最优种群中查找缺陷的准确性。实验结果表明,所提方法能够有效处理缺陷数量未知情况下的定位问题,在单缺陷和多缺陷程序中都有较好的定位效果。

关 键 词:缺陷定位  碰集  遗传算法  缺陷数量未知
收稿时间:2017/8/18 0:00:00
修稿时间:2017/11/27 0:00:00

New Spectrum-based Fault Localization Method Combining Hitting Set and Genetic Algorithm
ZHOU Ming-quan and JIANG Guo-hua.New Spectrum-based Fault Localization Method Combining Hitting Set and Genetic Algorithm[J].Computer Science,2018,45(9):207-212.
Authors:ZHOU Ming-quan and JIANG Guo-hua
Affiliation:School of Computer Science and Technology,Nanjing University of Aeronautics & Astronautics,Nanjing 211100,China and School of Computer Science and Technology,Nanjing University of Aeronautics & Astronautics,Nanjing 211100,China
Abstract:Fault localization is an important research topic in the process of software development.However,the number of faults in the actual software cannot be determined in advance.The available single fault localization technique is not convenient to be used,and the available multi-fault localization technique is of low locating efficiency.This paper studied and improved the multi-fault localization technique GAMFL,and proposed a new spectrum-based fault localization methoid combining hitting set and genetic algorithm(GAHIT).In this method,the basic block for localization is defined and used to replace statements to localize faults,narrowing the search range.In the process of constructing initial population,the method of solving the hitting sets of execution path of failure test cases is presented to optimize the generation of initial population,and a new method for calculating fitness function is also presented to improve the total efficiency of the algorithm.According to the results of genetic algorithm,the fault detecton strategy is presented to improve the accuracy of localizing faults in the optimal group.The experiment results show that the proposed method is effective in solving the problem of localizing programs with unknown number of faults,and has good performance when localizing faults in both single fault programs and multi-fault programs.
Keywords:Fault localization  Hitting set  Genetic algorithm  Uncertainty of fault number
点击此处可从《计算机科学》浏览原始摘要信息
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号