Bubble sort is a kind of internal sorting that compares
adjacent items and exchanges them if they are out of
order and continues until the file is sorted (Frank, 2004;
Robert, 1998). Bubble sort is however, not an efficient
algorithm because it is a quadratic-time sorting algorithm.
However, efforts have been made to improve the
performance of the algorithm. With Bidirectional Bubble
Sort, the average number of comparisons is slightly
reduced and Batcher’s Sort similar to Shellsort also
performs significantly better than Bidirectional Bubble
Sort by carrying out comparisons in a novel way so that
no propagation of exchanges is necessary. Bitonic Sort
was also presented by Batcher and the strong point of
this sorting procedure is that it is very suitable for a hardwired
implementation using a sorting network.
This paper presents an algorithm that combines the
technique of Bidirectional Bubble Sort with a modified
diminishing increment sorting to improve Bubble sort. The
results obtained from the implementation of the algorithm
compared with Batcher’s Odd-Even Sort and Bitonic Sort
showed that the algorithm is the fastest of the three.