Sorting And Searching Algorithms: A Cookbook

E-Book Overview

This is a collection of algorithms for sorting and searching. Descriptions are brief and intuitive, with just enough theory thrown in to make you nervous. I assume you know a high-level language, such as C, and that you are familiar with programming concepts including arrays and pointers. The first section introduces basic data structures and notation. The next section presents several sorting algorithms. This is followed by a section on dictionaries, structures that allow efficient insert, search, and delete operations. The last section describes algorithms that sort data and implement dictionaries for very large files. Source code for each algorithm, in ANSI C, is available at the site listed below. Most algorithms have also been translated to Visual Basic. If you are programming in Visual Basic, I recommend you read Visual Basic Collections and Hash Tables, for an explanation of hashing and node representation. Permission to reproduce portions of this document is given provided the web site listed below is referenced, and no additional restrictions apply. Source code, when part of a software project, may be used freely without reference to the author.

E-Book Content

SORTING AND SEARCHING ALGORITHMS: A COOKBOOK BY THOMAS NIEMANN PREFACE This is a collection of algorithms for sorting and searching. Descriptions are brief and intuitive, with just enough theory thrown in to make you nervous. I assume you know a high-level language, such as C, and that you are familiar with programming concepts including arrays and pointers. The first section introduces basic data structures and notation. The next section presents several sorting algorithms. This is followed by a section on dictionaries, structures that allow efficient insert, search, and delete operations. The last section describes algorithms that sort data and implement dictionaries for very large files. Source co
You might also like

Computer Science Handbook
Authors: Allen B. Tucker    208    0


Laboratory In Software Engineering (eecs 6170)
Authors: Daniel Jackson , Rob Miller    154    0


A Concise Introduction To Data Compression
Authors: David Salomon    117    0


Calculs Et Visualisation En Nombres Complexes
Authors: Testard L.    110    0


Perl Programming For Biologists
Authors: D. Curtis Jamison    109    0


Digital Image Processing
Authors: Bernd Jähne    131    0


Lectures On Image Processing
Authors: Morse B.S.    142    0



Beginning Python
Authors: Peter C. Norton , Alex Samuel , Dave Aitel , Eric Foster-Johnson , Leonard Richardson , Jason Diamond , Aleatha Parker , Michael Roberts    187    0


Object-oriented Programming Via Fortran 90-95
Authors: Ed Akin    141    0