Exercises
tip
In this lab, you will work with this skeleton, which you will use to parallelize three problems based on the Replicated Workers model, using ExecutorService and ForkJoinPool:
- Parallelize the finding of paths between two nodes using the provided skeleton (in the task1 package) using ExecutorService.
- Parallelize the graph coloring problem using the provided skeleton (in the task2 package) using ExecutorService.
- Parallelize the queens problem using the provided skeleton (in the task3 package, with solutions [(2, 1), (4, 2), (1, 3), (3, 4)] and [(3, 1), (1, 2), (4, 3), (2, 4)]) using ExecutorService.
- Parallelize the finding of paths between two nodes using the provided skeleton (in the task4 package) using ForkJoinPool.
- Parallelize the graph coloring problem using the provided skeleton (in the task5 package) using ForkJoinPool.
- Parallelize the queens problem using the provided skeleton (in the task6 package) using ForkJoinPool.