Ask HN: What are your favorite algorithms?
11–20 of 93 posts
Re: Ask HN: What are your favorite algorithms?
#12PHP implementation: https://github.com/bandwidth-throttle/token-bucket
Re: Ask HN: What are your favorite algorithms?
#13The algorithms for computing it are beautiful and have enabled much of the technology we see around us today.
Re: Ask HN: What are your favorite algorithms?
#14Whitted's recursive ray tracing algorithm https://en.wikipedia.org/wiki/Ray_tracing_(graphics)#Recursi...
PageRank
Re: Ask HN: What are your favorite algorithms?
#15Token Bucket. Very lightweight way to implement rate limiting. PHP implementation: https://github.com/bandwidth-throttle/token-bucket
http://nginx.org/en/docs/http/ngx_http_limit_req_module.html
Re: Ask HN: What are your favorite algorithms?
#16Abstract: An algorithm M is described that solves any well-defined problem p as quickly as the fastest algorithm computing a solution to p, save for a factor of 5 and low-order additive terms. M optimally distributes resources between the execution of provably correct p-solving programs and an enumeration of all proofs, including relevant proofs of program correctness and of time bounds on program runtimes. M avoids Blum's speed-up theorem by ignoring programs without correctness proof. M has broader applicability and can be faster than Levin's universal search, the fastest method for inverting functions save for a large multiplicative constant. An extension of Kolmogorov complexity and two novel natural measures of function complexity are used to show that the most efficient program computing some function f is also among the shortest programs provably computing f.
The catch is that the constants in the big-O are enormous.
Re: Ask HN: What are your favorite algorithms?
#17Re: Ask HN: What are your favorite algorithms?
#18Re: Ask HN: What are your favorite algorithms?
#19Metropolis-Hastings: https://en.wikipedia.org/wiki/Metropolis%E2%80%93Hastings_al... http://michaeljflynn.net/2015/06/01/my-favorite-algorithm-me...