cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Searching and sorting array
Searching and sorting array
Sep 2, 2011 at 3:01am UTC
topeh
(3)
can you give me some example program ? please :P
Sep 2, 2011 at 4:14am UTC
shacktar
(1187)
sorting
http://en.wikipedia.org/wiki/Sorting_algorithm
I would say probably look at Bubble Sort and Insertion Sort first. Then, look at Merge Sort and Quicksort.
searching
http://en.wikipedia.org/wiki/Linear_search
http://en.wikipedia.org/wiki/Binary_search_algorithm
Sep 2, 2011 at 7:21am UTC
Undeclared
(26)
There are a lot of searching and sorting algorithms insertion sort being the easiest. Why don't you try writing your own? Its the most interesting way...
I am planning to post such things on my blog:
http://recurseit.blogspot.com
Topic archived. No new replies allowed.