Very often, the programmer need to quickly find any data or values in arrays, or sort an array by some parameters (descending or ascending, for example). Can, of course, and most think and sketch out code, that will work. But believe me – almost everything has already been invented before you. Furthermore – all known search and sorting algorithms many times enhanced and optimized, both for efficiency and speed. Do not invent a bicycle. Look, what has been done to you. On this page of our website we will gradually post sorting algorithms in C ++ and algorithms of search data arrays. Here they are:
I understand these algorithms, you will not be difficult to sort an array, or to find the necessary data in the array.