Squaring n-bit int vs. multiplying two n-bit ints

前端 未结 6 651
南旧
南旧 2021-01-05 05:25

Disclaimer: Homework question. I\'m looking for a hint…

Professor F. Lake tells his class that it is asymptotically faster to square an n-bit integer than to multip

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-05 06:11

    Consider the steps the computer needs to take in order to accomplish these tasks. Remember that computers work drastically different from people.

提交回复
热议问题