计算机应用 ›› 2011, Vol. 31 ›› Issue (05): 1314-1317.DOI: 10.3724/SP.J.1087.2011.01314

• 人工智能 • 上一篇    下一篇

基于遗传算法聚类的变异体约简

曾凡平,黄玉涵,张美超,潘能刚   

  1. 中国科学技术大学 计算机科学与技术学院, 合肥 230026
  • 收稿日期:2010-09-29 修回日期:2010-11-30 发布日期:2011-05-01 出版日期:2011-05-01
  • 通讯作者: 曾凡平
  • 作者简介:曾凡平(1967-),男,江西南康人,副教授,博士,主要研究方向:网络安全、软件测试;黄玉涵(1988-),女,安徽巢湖人,硕士研究生,主要研究方向:软件测试;张美超(1984-),男,山东泰安人,硕士研究生,主要研究方向:软件测试;潘能刚(1985-),男,安徽芜湖人,硕士研究生,主要研究方向:软件测试。

Mutants reduction based on genetic algorithm for clustering

ZENG Fan-ping, HUANG Yu-han, ZHANG Mei-chao, PAN Neng-gang   

  1. School of Computer Science and Technology, University of Science and Technology of China, Hefei Anhui 230026, China
  • Received:2010-09-29 Revised:2010-11-30 Online:2011-05-01 Published:2011-05-01
  • Contact: ZENG Fan-Ping

摘要: 对导致变异测试高代价的原因之一——测试过程中容易产生数目庞大的变异体进行了研究,提出基于遗传算法聚类的变异体约简方法。把具有相似特征的变异体置于同一簇中,再从每个簇中随机选择一个作为代表,从而实现变异体的约简。实验表明:1)该方法可在不降低构造出的测试用例集的测试充分度的前提下,约简变异体;2)与K-means算法和凝聚型层次聚类算法相比,该方法能够在自动产生合适的聚类数目的同时,具有更优的约简效果。

关键词: 变异测试, 遗传算法, 聚类技术, 变异体约简

Abstract: Through studying on one of the reasons leading to the high cost of mutation testing which is the large number of mutants produced during the process of testing, a mutants reduction method of clustering based on genetic algorithm was proposed. Mutants with similar characteristics would be placed in the same cluster, and then randomly selected one from each cluster as a representative in order to reduce the mutants. The experimental results show that: 1) the proposed method can reduce mutants without compromising the adequacy of the constituted test suite; 2) and compared with K-means algorithm and agglomerative clustering algorithm, it can automatically form an appropriate number of clusters, and is more effective.

Key words: mutation testing, genetic algorithm, clustering technique, mutants reduction