MAXIMUM SUBARRAY PROBLEM OPTIMIZATION FOR SPECIFIC DATA

Main Article Content

DOI

Tomasz Rojek

trojek@pk.edu.pl

Abstract

The maximum subarray problem (MSP) is to the find maximum contiguous sum in an array. This paper describes a method of Kadanes algorithm (the state of the art) optimization for specific data (continuous sequences of zeros or negative real numbers). When the data are unfavourable, the modification of the algorithm causes a non significant performance loss (1% > decrease in performance). The modification does not improve time complexity but reduces the number of elementary operations. Various experimental data sets have been used to evaluate possible time efficiency improvement. For the most favourable data sets an increase in efficiency of 25% can be achieved.

Keywords:

Algorithm design and analysis, maximum subarray problem, Kadane’s algorithm, optimization

References

Article Details

Rojek, T. . (2017). MAXIMUM SUBARRAY PROBLEM OPTIMIZATION FOR SPECIFIC DATA. Informatyka, Automatyka, Pomiary W Gospodarce I Ochronie Środowiska, 7(4), 62–65. https://doi.org/10.5604/01.3001.0010.7507