Algoritmo genetico celuar

Solo disponible en BuenasTareas
  • Páginas : 10 (2289 palabras )
  • Descarga(s) : 0
  • Publicado : 4 de julio de 2010
Leer documento completo
Vista previa del texto
Computers & Operations Research 35 (2008) 3161 – 3183 www.elsevier.com/locate/cor

Observations in using parallel and sequential evolutionary algorithms for automatic software testing
Enrique Alba∗ , Francisco Chicano
Grupo GISUM, Dept. de Lenguajes y Ciencias de la Computación, University of Málaga, Spain Available online 7 February 2007

Abstract In this paper we analyze the applicationof parallel and sequential evolutionary algorithms (EAs) to the automatic test data generation problem. The problem consists of automatically creating a set of input data to test a program. This is a fundamental step in software development and a time consuming task in existing software companies. Canonical sequential EAs have been used in the past for this task. We explore here the use of parallelEAs. Evidence of greater efficiency, larger diversity maintenance, additional availability of memory/CPU, and multi-solution capabilities of the parallel approach, reinforce the importance of the advances in research with these algorithms. We describe in this work how canonical genetic algorithms (GAs) and evolutionary strategies (ESs) can help in software testing, and what the advantages are (ifany) of using decentralized populations in these techniques. In addition, we study the influence of some parameters of the proposed test data generator in the results. For the experiments we use a large benchmark composed of twelve programs that includes fundamental algorithms in computer science. 2007 Elsevier Ltd. All rights reserved.
Keywords: Software testing; Evolutionary algorithms;Evolutionary testing; Parallel evolutionary algorithms

1. Introduction From the very beginning of computer research, computer engineers have been interested in techniques allowing them to know whether a software module fulfills a set of requirements (the specification). Modern software is very complex and these techniques have become a need in most software companies. One of these techniques is formalverification, in which some properties of the software can be checked much like a mathematical theorem defined on the source code. Two very well-known logics used in this verification are predicate calculus [1,2] and Hoare logic [3]. However, formal verification using logics is not fully automatic. Although automatic theorem provers can assist the process, human intervention is still needed. Anotherwell-known and fully automatic formal method is model checking [4]. In this case all the possible program states are analyzed (in a direct or indirect way) in order to prove that the program satisfies a given property. This property is specified using a temporal logic like LTL [5] or CTL [6]. Both in formal verification and model checking a model of the program is required in order to prove (or refute)the properties we want to check. In order to ensure that the model correctly captures the behavior of the program, some refinement-based approach is needed along the development process. One of the best known model checkers is SPIN [7], which takes a software model codified in PROMELA (a programming language usually not used in real programs) and a property
∗ Corresponding author.

E-mailaddresses: eat@lcc.uma.es (E. Alba), chicano@lcc.uma.es (F. Chicano). 0305-0548/$ - see front matter doi:10.1016/j.cor.2007.01.016 2007 Elsevier Ltd. All rights reserved.

3162

E. Alba, F. Chicano / Computers & Operations Research 35 (2008) 3161 – 3183

specified in LTL as input. The drawback of using the PROMELA language is currently solved by the use of translations tools such as the oneintegrated in the Bandera tool kit [8] or the one described in [9], which translates Java code into the intermediate language accepted by SAL model checker [10]. However, we can also find model checkers like Java PathFinder [11], which in its last versions directly works on bytecodes of multi-threaded Java programs. The main drawback of a model checking approach is the so-called state explosion: when...
tracking img