A selection of sorting and searching algorithms in Java