Fast bignum square computation

后端 未结 2 676
一整个雨季
一整个雨季 2020-11-22 02:49

To speed up my bignum divisons I need to speed up operation y = x^2 for bigints which are represented as dynamic arrays of unsigned DWORDs. To be clear:

2条回答
  •  孤独总比滥情好
    2020-11-22 03:56

    If I understand your algorithm correctly, it seems O(n^2) where n is the number of digits.

    Have you looked at Karatsuba Algorithm? It speeds up multiplication using the divide and conquer approach. It may be worth taking a look at.

提交回复
热议问题