An iterative and a parallel approach to sort with prefix reversal. Also known as pancake sorting.
- Iterative
- You will find the
main(...)
method inIterativeSolver
.
- You will find the
- Parallel
- To use the parallel approach you first must install MPJ Express.
- Don't forget to set the environment variable
MPJ_HOME
. - To start via gradle
- Execute the
run
command with gradle
- Execute the
- To start via command line
mpjrun.sh -np 5 ch.sebastianhaeni.pancake.ParallelSolver
(Linux / Mac)mpjrun.bat -np 5 ch.sebastianhaeni.pancake.ParallelSolver
(Windows)