Posts

Showing posts with the label bubble sort

Bubble Sort C#

Image
Bubble Sort using C# A Bubble Sort is an algorithm used to sort thru a list by comparison of data adjacent to itself then sorting if necessary. This process continues untill the entire list is sorted. *Featured Code Created By:  Shane Overby C# /*     Original by me, Shane Overby          This is my own implementation of the Bubble Sort algorithm          You can download this code for LINQPad, here: http://share.linqpad.net/c5rmaq.linq          Input: None          Output: 1.) an unsorted list of random numbers             2.) an unsorted control list             3.) the same list of random numbers, sorted             4.) control list, sorted using <List>.Sort()          Instructions:    ...