Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fastest algorithm for evaluating large polynomials

A rather general question, what is the fastest (in terms of time complexity) algorithm for evaluating polynomials of Degree 400 to 500.

Thanks in advance.

like image 321
Noor Avatar asked Apr 13 '26 03:04

Noor


1 Answers

If you are talking about evaluation of polynomials, you probably can't be faster than the linear time Horner scheme - except if you have some special circumstances.

If you are talking about the multiplication of polynomials, the Karatsuba algorithm is rather easy to implement and quite fast for that size. I believe fast Fourier transform based algorithms are only worth using if you have larger polynomials.

like image 108
Hans-Peter Störr Avatar answered Apr 17 '26 23:04

Hans-Peter Störr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!