Worst-Case Execution Time Test Generation for Solutions of the Knapsack Problem Using a Genetic Algorithm

被引:0
作者
Buzdalov, Maxim [1 ]
Shalyto, Anatoly [1 ]
机构
[1] ITMO Univ, St Petersburg 197101, Russia
来源
BIO-INSPIRED COMPUTING - THEORIES AND APPLICATIONS, BIC-TA 2014 | 2014年 / 472卷
关键词
knapsack problem; test generation; genetic algorithms; worst-case execution time;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Worst-case execution time test generation can be hard if tested programs use complex heuristics. This is especially true in the case of the knapsack problem, which is often called "the easiest NP-complete problem". For randomly generated test data, the expected running time of some algorithms for this problem is linear. We present an approach for generation of tests against algorithms for the knapsack problem. This approach is based on genetic algorithms. It is evaluated on five algorithms, including one simple branch-and-bound algorithm, two algorithms by David Pisinger and their partial implementations. The results show that the presented approach performs statistically better than generation of random tests belonging to certain classes. Moreover, a class of tests that are especially hard for one of the algorithms was discovered by the genetic algorithm.
引用
收藏
页码:1 / 10
页数:10
相关论文
共 17 条
  • [1] Alander J. T., 1996, Proceedings of the Second Nordic Workshop on Genetic Algorithms and Their Applications (2NWGA), P205
  • [2] [Anonymous], P 3 NORD WORKSH GEN
  • [3] [Anonymous], 1979, Computers and Intractablity: A Guide to the Theory of NP-Completeness
  • [4] [Anonymous], 2013, LANG ENV STAT COMP
  • [5] Worst-Case Execution Time Test Generation for Augmenting Path Maximum Flow Algorithms using Genetic Algorithms
    Arkhipov, Viktor
    Buzdalov, Maxim
    Shalyto, Anatoly
    [J]. 2013 12TH INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND APPLICATIONS (ICMLA 2013), VOL 2, 2013, : 108 - 111
  • [6] Generation of Tests for Programming Challenge Tasks on Graph Theory using Evolution Strategy
    Buzdalov, Maxim
    [J]. 2012 11TH INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND APPLICATIONS (ICMLA 2012), VOL 2, 2012, : 62 - 65
  • [7] Buzdalova Arina, 2013, Search Based Software Engineering. 5th International Symposium, SSBSE 2013. Proceedings: LNCS 8084, P300, DOI 10.1007/978-3-642-39742-4_28
  • [8] HARD KNAPSACK-PROBLEMS
    CHVATAL, V
    [J]. OPERATIONS RESEARCH, 1980, 28 (06) : 1402 - 1411
  • [9] Gross H.-G., 2000, IEE Proceedings-Software, V147, P25, DOI 10.1049/ip-sen:20000525
  • [10] Gross HG, 2003, EIGHTH IEEE INTERNATIONAL WORKSHOP ON OBJECT-ORIENTED REAL-TIME DEPENDABLE SYSTEMS, PROCEEDINGS, P113