+1 vote
Hello,

just a short question regarding the homework:

In task 5, we are supposed to execute square-and-multiply step by step and in each subtask, we are supposed to process one bit of the exponent.

How do you count the bits? From left-to-right (video) or from right-to-left (least significant bit first, Wikipedia)?

I know both ways lead to the same solution in the end but the intermediate results might differ.

Thank you.
in Exercises by
edit history

1 Answer

+1 vote
Hi,

we count the bits from left to right aka most significant bit first.

Cheers
Niklas
by
edit history