Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The best algorithm isn't quadratic. It's M(n)log(n) where M(n) is the cost of your integer multiply (M(n) theoretically be as low as nlog(n), but in practice the best algorithms used are nlog(n)log(log(n))). Python just didn't bother to implement them.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: