The bubble sort algorithm is the simplest known method of sorting an array of data. In this article Steve describes the concepts behind several sorting methods, focusing on bubble sorts in general. He also creates a C++ sample application that bubble sorts an array of integers.
As a programmer, it is inevitable that at some point in your career you will be faced with the task of sorting data, regardless of the programming language you are using. A school system might want their student data sorted, business's might want their payroll book or bank transaction logs sorted, etc.
The bubble sort algorithm is the simplest known method of sorting an array of data. In this article I will describe the concepts behind several sorting methods, focusing on bubble sorts in general. I will also create a C++ application that bubble sorts an array of integers.
To work with the code samples in this article, you should have any ANSI-compliant C++ compiler installed on your system. If you’re after a free C++ compiler for both Windows and Unix/Linux, then you can download DJGPP from this site.