An open API service indexing awesome lists of open source software.

https://github.com/alvarm/jsa

Java Structures and Algorithms
https://github.com/alvarm/jsa

algorithms algorithms-and-data-structures data-structures java

Last synced: 11 months ago
JSON representation

Java Structures and Algorithms

Awesome Lists containing this project

README

          

# libjsa
Library of Java Structures and Algorithms

## Implemented Algorithms:
### Search
#### List of implemented algorithms:
1. Linear Search.
2. Recursive Binary Search.
3. Iterative Binary Search.
#### Benchmark results:
Benchmark consisted in searching for a random integer value in a sorted randomly generated array of 10.000.000 integers:

| Benchmark | Mode | Cnt | Score | Error | Units |
|-----------------------|------|-----|-------------|---------------|-------|
| iterativeBinarySearch | avgt | 25 | 19,106 | +/- 0,837 | ns/op |
| javaSearch | avgt | 25 | 20,082 | +/- 2,406 | ns/op |
| recursiveBinarySearch | avgt | 25 | 29,204 | +/- 0,740 | ns/op |
| linearSearch | avgt | 25 | 2809249,139 | +/- 22701,995 | ns/op |

### Sorting

## Implemented Data Structures