Skip to content

Parallelization

sy133 edited this page Aug 12, 2017 · 12 revisions

Description

To find the optimal solution, 1 - 4 processors can be used.
The number of cores are defined as a parameter (default is sequential)
Hoorah for parallelization!

Solution

  1. Sequential start up
  2. Allocation to threads/processors
    • Balancing least promising and most promising (taking from start and end)
  3. Find sub-optimal solution for each thread
  4. Cut thread when sub-optimal solution found
  5. After all threads finish, compare sub-optimal solution to find optimal

Details

  • After thread finds sub-optimal solution, help other threads find theirs.
  • Ignore sub-partial solution if end time > existing sub-optimal solution - move onto next in queue.
  • Don't add sub-partial solution into queue if end time > existing sub-optimal solution.
  • Decide how to distribute global processing (master thread) e.g. visualisation

Experimenting

  • Find best time for sequential to parallel turning point
  • Whether placing all promising partial solutions in one thread and worst in another is better with respect to last 2 points in Details

Clone this wiki locally