- Java 8 or higher -> Download Java
- Any IDE -> IntelliJ IDEA or Eclipse
Ordernamiento.java
contains the class with the sorting algorithms. Test in PruebasOrdenamiento.java
.
- Cocktail Sort: A variation of Bubble Sort that goes through the array in both directions.
- Bucket Sort: A distribution sort that sorts elements by distributing them into several buckets.
- Counting Sort: A non-comparison-based sorting algorithm suitable for sorting integers.
- Merge Sort: A divide-and-conquer algorithm that divides the array into halves, sorts them, and then merges them back together.
- Insertion Sort: A simple sorting algorithm that builds the final sorted array one item at a time.
- Bubble Sort: A simple comparison-based sorting algorithm that repeatedly steps through the list to be sorted, compares adjacent elements, and swaps them if they are in the wrong order.
Busqueda.java
contains the class with the search algorithms. Test in same file.
- Binary Search: A search algorithm that finds the position of a target value within a sorted array.
- Linear Search: A search algorithm that finds the position of a target value within an array.
- Violent Search: A search algorithm that finds the position of a target value within an array by brute force.
- Jump Search: A search algorithm that finds the position of a target value within a sorted array by jumping ahead by fixed steps.