Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
colomon
on Dec 23, 2013
|
parent
|
context
|
favorite
| on:
The Mathematical Hacker (2012)
It's O(log n) because Haskell is smart enough to implement exponentiation by repeated squaring and summing as appropriate? (There must be a better name for that.)
crntaylor
on Dec 23, 2013
|
next
[–]
Yes -- see the source here:
http://hackage.haskell.org/package/base-4.6.0.1/docs/src/GHC...
NoodleIncident
on Dec 24, 2013
|
prev
[–]
I believe that's called Russian Peasant Exponentiation.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: