There is a way to calculate the GCD and resultants in O(n\log^2n). To do this you should note that if you consider a(x)=a_0+x^ka_1 and b(x)=b_0+x^kb_1 where k=\min(\deg a,\deg b)/2 then basically the first few operations of Euclidean algorithm on a(x) and b(x) are defined by the Euclidean algorithm on a_1(x) and b_1(x) for which you may also calculate GCD recursively and then somehow memorize linear transforms you made with them and apply it to a(x) and b(x) to lower the degrees of polynomials. Implementation of this algorithm seems pretty tedious and technical thus it's not considered in this article yet.
而 Picks 的 Introduction to Polynomials 也写的比较晦涩,因此在这里稍微详细地谈谈,以正视听……
给多项式 a, b \in \mathbb F[z],我们原本的问题是求 GCD 以及扩展欧几里得的解:x, y\in \mathbb F[z], ax + by = \gcd (a, b)
由于多项式取模最坏情况下每次只让一个多项式的度数减小,这种方法的复杂度最好也就是 \Theta((\deg a) (\deg b)) 的。
我们考虑求解一个中间情况叫做 HALF-GCD,设 k = \min(\deg a, \deg b),这个东西让我们对于 a, b 能得到一个矩阵 \begin{pmatrix} x_1 & y_1 \\ x_2 & y_2 \end{pmatrix},其中 \deg x \le \frac k 2 + o(k),且 \deg (a x_1 + b y_1), \deg (a x_2 + b y_2) \le \frac k 2 + o(k)(除非它们的 \gcd 的 \deg 比这个大)。也就是说这个 HALF-GCD 可以理解成是将欧几里得过程执行到一半的产物。