Testing of heuristic methods: a case study of greedy algorithm

  • Authors:
  • A. C. Barus;T. Y. Chen;D. Grant;F.-C. Kuo;M. F. Lau

  • Affiliations:
  • Faculty of Information and Communication Technologies, Swinburne University of Technology, Hawthorn, Australia;Faculty of Information and Communication Technologies, Swinburne University of Technology, Hawthorn, Australia;Faculty of Information and Communication Technologies, Swinburne University of Technology, Hawthorn, Australia;Faculty of Information and Communication Technologies, Swinburne University of Technology, Hawthorn, Australia;Faculty of Information and Communication Technologies, Swinburne University of Technology, Hawthorn, Australia

  • Venue:
  • CEE-SET'08 Proceedings of the Third IFIP TC 2 Central and East European conference on Software engineering techniques
  • Year:
  • 2008

Quantified Score

Hi-index 0.03

Visualization

Abstract

Algorithms which seek global optima are computationally expensive. Alternatively, heuristic methods have been proposed to find approximate solutions. Because heuristic algorithms do not always deliver exact solutions it is difficult to verify the computed solutions. Such a problem is known as the oracle problem. In this paper, we propose to apply Metamorphic Testing (MT) in such situations because MT is designed to alleviate the oracle problem and can be automated. We demonstrate the failure detection capability of MT on testing a heuristic method, called the Greedy Algorithm (GA), applied to solve the set covering problem (SCP). The experimental results show that MT is an effective method to test GA.