2 ms·
If it works for positives, then you can add all the positives in one bin, add all the negatives in one bin, and finish off with a single subtraction.
by recursive 2y ago
If it works for positives, then you can add all the positives in one bin, add all the negatives in one bin, and finish off with a single subtraction.
- anonymoushn 2y agoThat isn't a great method, see here: https://en.wikipedia.org/wiki/Catastrophic_cancellation https://en.wikipedia.org/wiki/Catastrophic_cancellation I wonder what methods give good results for this sort of input though.