Haskell speculative parallel execution
I am thinking about exploiting parallelism for one problem I am trying to solve. The problem is roughly this: given input (sequence of points) find a best output (biggest triangle composed from these points, longest line etc.). There are 3 different 'shapes' to be found in the sequence of points, however I am interested only in the one with 'best score' (usually some form of 'length' times coefficient). Let's call the shapes S1, S2, S3. I have 2 different algorithms for solving S1 - 'S1a' is in O(n 2 ), 'S1b' mostly behaves better, but the worst case is about O(n 4 ). First question: is there