Back to front pageView on Hacker News (opens in a new tab)Ask HN: What's your favorite elegant/beautiful algorithm?733 pointsby algobuddy (on Hacker News)8 years agoComments (491) 209 threadsEarlier commentsmotiw8 years ago#Hash functions are so powerful in so many algorithms and optimizations[-]vnorilo8 years ago1 reply#cps transformation (continuation passing style). Transform any control flow patterns (loops, calls, non-tail recursion, exceptions, coroutines) into nothing but closures and tail calls!agumonkey8 years ago#Also a step into non determinism and some logic programming.antongribok8 years ago#My favorite is the sleep sort.Previous discussion: https://news.ycombinator.com/item?id=2657277rayvy8 years ago#The Mandlebrot - https://en.wikipedia.org/wiki/Mandelbrot_setLoad more commentsAll comments shown.Couldn't load more comments. Check your connection and try again.
Ask HN: What's your favorite elegant/beautiful algorithm?733 pointsby algobuddy (on Hacker News)8 years ago
vnorilo8 years ago1 reply#cps transformation (continuation passing style). Transform any control flow patterns (loops, calls, non-tail recursion, exceptions, coroutines) into nothing but closures and tail calls!
antongribok8 years ago#My favorite is the sleep sort.Previous discussion: https://news.ycombinator.com/item?id=2657277
Comments (491) 209 threads
Earlier commentsPrevious discussion: https://news.ycombinator.com/item?id=2657277
All comments shown.
Couldn't load more comments. Check your connection and try again.