O'Reilly logo

Visual C# 2010: How to Program, Fourth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20. Searching and Sorting

 

With sobs and tears he sorted out Those of the largest size ...

 
 --Lewis Carroll
 

Attempt the end, and never stand to doubt; Nothing’s so hard, but search will find it out.

 
 --Robert Herrick
 

It is an immutable law in business that words are words, explanations are explanations, promises are promises — but only performance is reality.

 
 --Harold S. Green
<feature> <supertitle>Objectives</supertitle>

In this chapter you’ll learn:

<objective>

To search for a given value in an array using the linear search and binary search algorithm.

</objective>
<objective>

To sort arrays using the iterative selection and insertion sort algorithms.

</objective>
<objective>

To sort arrays using the recursive merge sort algorithm.

</objective> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required