Special Array Techniques

This section introduces some supplementary techniques for solving problems often encountered when working with arrays. In particular, this section

  • Presents a sorting program based on a famous sorting algorithm called Bubble Sort

  • Compares the speed of the Bubble Sort program with that of the sorting program found in the .NET Framework

  • Introduces a couple of algorithms to search for a particular value in an array

  • Compares the speed of our implementation with that of the search method found in the .NET Framework

Sorting

The next couple sections introduce you to the simple bubble sort algorithm and compares its speed to the much faster, built-in sorting program found in the .NET Framework.

Presenting Bubble Sort

With the simple ...

Get C# Primer Plus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.