Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can some please explain what bubble sorting is.?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
What is bubble sorting? What does it do? Can you please outline how it works. C is new to me so I'm totally dumbfounded by the program.
 
Bubble sort is a Sorting Algorithm which works in a way, that the largest (smallest) value moves through the dataset like a bubble through a liquid.

The base Principle is: compare the Data with its Neighbours: If the Neighbour is larger (smaller) then exchange both data.

The value in Brackes are dependent on the sorting Order.

To find Details you should look in a book on sorting algorithms , May be "Algorithms" by Author:Knuth. I have no further Information here.

hnd
hasso55@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top