Settings

Theme

Loop Perforation (2019)

cs.cornell.edu

16 points by Jonhoo 4 years ago · 4 comments

Reader

touisteur 4 years ago

I think this is a very elaborate joke, though I was always surprised by some linear algebra algorithms that had a 'cooking recipe' feeling (looking at you svd) of 'loop enough time to get better results'...

seg_lol 4 years ago

When your operations are statistical in nature, as Approximate Computing is, so then these operations themselves are different sampling methods.

If the for loop is calculating a sum, but that value only needs to be over a threshold, there is no reason to add the whole thing, you need a proper sample size and distribution and that it what Loop Perforation is giving you in this case.

dreamcompiler 4 years ago

The way you add the integers up to n is

n(n+1)/2.

Fixed that for you. No loops, and it's exact. Pick a better example.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection