MAXIMUM SUBARRAY PROBLEM OPTIMIZATION FOR SPECIFIC DATA
Author(s) -
Tomasz Rojek
Publication year - 2017
Publication title -
informatyka automatyka pomiary w gospodarce i ochronie środowiska
Language(s) - English
Resource type - Journals
eISSN - 2391-6761
pISSN - 2083-0157
DOI - 10.5604/01.3001.0010.7507
Subject(s) - efficient algorithm , algorithm , state (computer science) , computer science , optimization problem , mathematics , mathematical optimization
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.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom