One of the most classical and successful software testing strategies is that of testing boundary values in the input domain (Reid 1997). In this paper we introduce a notion of boundary values for a finite subset of a metric space. Boundary values are distinguished between nucleus (central elements) and perimeter ( peripheral elements). Nucleus (resp. perimeter) elements are those objects whose average distance from any other element in the subset is much smaller (resp. larger) than the average pairwise distance among elements of the subset. We propose efficient approximate algorithms that for any k generate both k nucleus and perimeter elements. Since relevant applications involve metric spaces of complex objects (e.g. large trees or graphs, long strings such as biosequences, high dimensional Euclidean spaces) whose pairwise distance calculation is heavy, then efficiency of such algorithms is very much affected by the number of distance calculations among objects of the subspace. Computing the exact k minimal elements in the nucleus and the k maximal elements in the perimeter requires an obvious quadratic solution in the size of the input set. However even a quadratic algorithm can be prohibitive due to a sufficiently large size of the input domain. Our approximate algorithms run in O(kn) time. Therefore since in software testing the size n of the input domain is much larger than the test size k then the quadratic brute force exact algorithm may become infeasible while our test generation algorithms may be successfully used.

Efficient Boundary Values Generation In General Metric Spaces For Software Component Testing

GIUGNO, ROSALBA;
2003-01-01

Abstract

One of the most classical and successful software testing strategies is that of testing boundary values in the input domain (Reid 1997). In this paper we introduce a notion of boundary values for a finite subset of a metric space. Boundary values are distinguished between nucleus (central elements) and perimeter ( peripheral elements). Nucleus (resp. perimeter) elements are those objects whose average distance from any other element in the subset is much smaller (resp. larger) than the average pairwise distance among elements of the subset. We propose efficient approximate algorithms that for any k generate both k nucleus and perimeter elements. Since relevant applications involve metric spaces of complex objects (e.g. large trees or graphs, long strings such as biosequences, high dimensional Euclidean spaces) whose pairwise distance calculation is heavy, then efficiency of such algorithms is very much affected by the number of distance calculations among objects of the subspace. Computing the exact k minimal elements in the nucleus and the k maximal elements in the perimeter requires an obvious quadratic solution in the size of the input set. However even a quadratic algorithm can be prohibitive due to a sufficiently large size of the input domain. Our approximate algorithms run in O(kn) time. Therefore since in software testing the size n of the input domain is much larger than the test size k then the quadratic brute force exact algorithm may become infeasible while our test generation algorithms may be successfully used.
2003
3-540-21002-4
Metric space
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11562/940479
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? 0
social impact