opcushing / cs225-final-project-wikiracer

UIUC CS 225 Final Project - WikiRacer solver
https://mediaspace.illinois.edu/media/t/1_1oquv61x
0 stars 0 forks source link

Optimized Brandes Algorithm through Multithreading #24

Closed opcushing closed 1 year ago

opcushing commented 1 year ago

Since the Brandes Algorithm only increments one piece of data for each starting node, you can do the calculations for each starting node independently on different threads. So that's what we did. This doesn't make the computational complexity lower, but does make the overall runtime of the algorithm lower. (From about 50 minutes on my machine down to about 7 minutes).