Changes

Jump to navigation Jump to search
no edit summary
Update: Did not incur any speed up by implementing changes the the calculation for center or distance. Reading about python threads https://pymotw.com/2/threading/
 
Update: Implemented a thread version of the program and am running that in addition to the non-threaded version to see how the timing compares. EnclosingCircleRemake2.py.
How the threading works:
 
1) Split the pointset into all its initial possible schemes (one split).
 
2) Divide these schemes amongst four threads.
 
3) Have each thread compute the best outcome of each of those schemes and put them into a global array.
 
4) Join all the threads.
 
5) Have the main function iterate through the schemes returned by the threads and choose the best one.
 
6) Create circles for the schemes and return them.
 
On preliminary examples, the code works correctly. It actually runs slower than the original algorithm on small examples but I suspect that is the overhead of creating the threads and that they will be useful to the large examples.
 
Implemented
==Runtime==
272

edits

Navigation menu