JISAR

Journal of Information Systems Applied Research

Volume 8

V8 N1 Pages 56-65

April 2015


Measuring Algorithm Performance With Java: Patterns of Variation


Kirby McMaster
Moravian College
Bethlehem, PA 18018, USA

Samuel Sambasivam
Azusa Pacific University
Azusa, CA 91702, USA

Stuart Wolthuis
Brigham Young University-Hawaii
Laie, HI 96762, USA


Abstract: Textbook coverage of algorithm performance emphasizes patterns of growth in expected and worst case execution times, relative to the size of the problem. Variability in execution times for a given problem size is usually ignored. In this research study, our primary focus is on the empirical distribution of execution times for a given algorithm and problem size. We examine CPU times for Java implementations of four sorting algorithms: selection sort, insertion sort, bubble sort, and quicksort. We measure variation in running times for these sorting algorithms. We show how the sort time distributions change as the problem size increases. With our methodology, we compare the relative stability of performance for the different sorting algorithms.

Keywords: algorithm, JAVA, order-of-growth, Performance, sorting, variation

Download this article: JISAR - V8 N1 Page 56.pdf


Recommended Citation: McMaster, K., Sambasivam, S., Wolthuis, S. (2015). Measuring Algorithm Performance With Java: Patterns of Variation . Journal of Information Systems Applied Research, 8(1) pp 56-65. http://jisar.org/2015-8/ ISSN: 1946-1836. (A preliminary version appears in The Proceedings of CONISAR 2014)