journal article·2022Open access

Smart Bubble Sort: A Novel and Dynamic Variant of Bubble Sort Algorithm

Mohammad Khalid Imam Rahmani

Computers, Materials & Continua· Volume 71· Issue 3

Abstract

In the present era, a very huge volume of data is being stored in online and offline databases. Enterprise houses, research, medical as well as healthcare organizations, and academic institutions store data in databases and their subsequent retrievals are performed for further processing. Finding the required data from a given database within the minimum possible time is one of the key factors in achieving the best possible performance of any computer-based application. If the data is already sorted, finding or searching is comparatively faster. In real-life scenarios, the data collected from different sources may not be in sorted order. Sorting algorithms are required to arrange the data in some order in the least possible time. In this paper, I propose an intelligent approach towards designing a smart variant of the bubble sort algorithm. I call it Smart Bubble sort that exhibits dynamic footprint: The capability of adapting itself from the average-case to the best-case scenario. It is an in-place sorting algorithm and its best-case time complexity is Ω(n). It is linear and better than bubble sort, selection sort, and merge sort. In average-case and worst-case analyses, the complexity estimates are based on its static footprint analyses. Its complexity in worst-case is O(n2) and in average-case is Θ(n2). Smart Bubble sort is capable of adapting itself to the best-case scenario from the average-case scenario at any subsequent stages due to its dynamic and intelligent nature. The Smart Bubble sort outperforms bubble sort, selection sort, and merge sort in the best-case scenario whereas it outperforms bubble sort in the average-case scenario.
Source: openalex_inverted_index · Quality: candidate unverified · Source record ↗

Research context

OpenAlex topics: Web Data Mining and Analysis · Advanced Image and Video Retrieval Techniques · Algorithms and Data Compression

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

References (35)

Show source-provided references
1. Knuth · The Art of Computer Programming: Sorting and Searching · 1998 · 3
2. Skiena · The Algorithm Design Manual · 202010.1007/978-3-030-54256-6 ↗
3. Knuth · The Art of Computer Programming · 2015 · 4
4. Sedgewick · Algorithms: 24-Part Lecture Series · 2015
5. Koffman · Data Structures: Abstraction and Design using Java · 2021
6. Knebl · Algorithms and Data Structures: Foundations and Probabilistic Method for Design and Analysis · 202010.1007/978-3-030-59758-0 ↗
7. Cormen · Introduction to Algorithms · 2009
8. Chawdhuri · Java 9 Data Structures and Algorithms · 2017
9. Goodrich · Data Structures and Algorithms in Java · 2014
10. Bidirectional conditional insertion sort algorithm: An efficient progress on the classical insertion sort10.1016/j.future.2017.01.034 ↗
11. Magnetic bubble sort algorithm10.5120/21850-5168 ↗
12. Onebyone (OBO): A fast sorting algorithm10.1016/j.procs.2020.07.040 ↗
13. Minfinder: A new approach in sorting algorithm10.1016/j.procs.2019.06.020 ↗
14. Contrastive analysis of bubble & merge sort proposing hybrid approach
15. Analysis and testing of sorting algorithms on a standard dataset
16. Enhanced insertion sort algorithm10.5120/10761-5724 ↗
17. The impact of result diversification on search behaviour and performance10.1007/s10791-019-09353-0 ↗
18. On the foundations of similarity in information access10.1007/s10791-020-09375-z ↗
19. A model-driven alarms framework (MAF) with mobile clients support for wide-ranging industrial control systems10.1109/ACCESS.2020.3025933 ↗
20. Clustering of image data using K-means and fuzzy K-means
21. Image retrieval based on gradient-structures histogram10.1007/s00521-019-04657-0 ↗
22. An efficient indexing algorithm for cbir
23. Content-based image retrieval system using ORB and SIFT features10.1007/s00521-018-3677-9 ↗
24. A color based fuzzy algorithm for cbir
25. A crypto-steganography: A survey
26. Md-lbp: An efficient computational model for protein subcellular localization from hela cell lines using svm10.2174/1574893614666190723120716 ↗
27. Efficient computational model for classification of protein localization images using extended threshold adjacency statistics and support vector machines10.1016/j.cmpb.2018.01.021 ↗
28. A model-driven framework for data-driven applications in serverless cloud computing10.1371/journal.pone.0237317 ↗
29. Forecasting stock market volatility using hybrid of adaptive network of fuzzy inference system and wavelet functions10.1155/2021/9954341 ↗
30. Application of radial basis function neural network coupling particle swarm optimization algorithm to classification of Saudi Arabia stock returns10.1155/2021/5593705 ↗
31. Optimizing service composition (sc) using smart multistage forward search (smfs)10.32604/iasc.2021.014892 ↗
32. Sarcar · Interactive Object-Oriented Programming in Java · 2020 · 42310.1007/978-1-4842-5404-2_14 ↗
33. Davis · Modern Programming Made Easy: Using Java, Scala, Groovy, and Javascript · 202010.1007/978-1-4842-5569-8 ↗
34. Horstmann · Big Java: Early Objects · 2018
35. Run-time analysis for sorting algorithms