Visualization of Performance of Bubble Sort in Worst Case in Personal Computer using Polynomial Curve Fitting Technique
Main Article Content
Abstract
Bubble sort is one of the simple sorting algorithms. In this study, the researchers had used polynomial curve fitting technique to visualize the performance of Bubble sort in the worst case in a personal computer. To identify the best fit (i) R square, (ii) Adjusted R square, (iii) Root mean square error, (iv) Akaike information criterion (AIC) and (v) Bayesian information criterion (BIC) had been used. The Bubble sort algorithm in the worst case had been implemented using C programming language and the algorithm had been run for data size two thousand five hundred (2500) to data size twenty thousand (20000) with an interval of five hundred (500). For each data size one hundred (100) observations (execution time in seconds) had been recorded and for each data size the median value of the observations (execution time in seconds) had been calculated. Thus, the researchers had calculated thirty six (36) data points (data size versus median value of execution time in seconds). The polynomial curve fitting had been tried and tested on these thirty six (36) data points (data size versus median value of execution time in seconds). In total twenty four (24) models starting from linear model to polynomial of degree 24 had been employed in this study to identify the best model and among these models “Polynomial of degree 2†model had been identified as the best model.
Keywords: Polynomial curve fitting; Bubble sort; AIC; BIC; Performance visualization
Keywords: Polynomial curve fitting; Bubble sort; AIC; BIC; Performance visualization
Downloads
Download data is not yet available.
Article Details
Section
Articles
COPYRIGHT
Submission of a manuscript implies: that the work described has not been published before, that it is not under consideration for publication elsewhere; that if and when the manuscript is accepted for publication, the authors agree to automatic transfer of the copyright to the publisher.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work
- The journal allows the author(s) to retain publishing rights without restrictions.
- The journal allows the author(s) to hold the copyright without restrictions.