Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Re:Private Car Cameras (Score 1) 480

As for "computer engineers are most likely to crash" ... correlation does not imply causation

So what? This is insurance, not science. They are not trying to create a grand unified theory of car crash probability, they just want to predict the probability of any given driver crashing. Correlation is good enough for that.

Comment Re:Multi Threaded programming (Score 1) 620

I agree with your point, thingh not with the example you gave.

Incidentally, quicksort _is_ easily parallelizable:

qsort([]) -> []; % of course

qsort([P | A ]) ->
                A1 = [ X || X = P ],
                P = self(),
                spawn(fun() -> P ! {a1, qsort(A1)} end ),
                spawn(fun() -> P ! {a2, qsort(A2)} end ),
                A1sorted = receive
                        { a1, A1s } -> A1s
                end,
                A2sorted = receive
                        { a2, A2s } -> A2s
                end,
                A1 ++ [ P ] ++ A2.

I am sending lots of large messages, so this might be slow, but you could do this in place, just sending bounds of the intervals to be sorted.

Slashdot Top Deals

BLISS is ignorance.

Working...