Native C++ implementations of typical search and sort algorithms.
At this point, the following algorithms have been implemented:
-
Search:
- Linear search
- Binary search
-
Sort
- Bubblesort
- Insertion sort
- Selection sort
- Quicksort
Compile:
./compile.sh
Run:
./sas.out argv[1]
where argv[1] can be one of the following:
1. linear_search: for the linear search algorithm
2. binary_search: for the binary search algorithm
3. bubble_sort: for the bubblesort sort algorithm
4. insertion_sort: for the insertion sort algorithm
5. selection_sort: for the selection sort algorithm
6. quicksort: for the quicksort algorithm
Example:
./sas.out binary_search