Slug #480
gcd too slow for large degree univariate poly
Description
CoCoA-5 used more than 6Gbytes of memory while trying to compute gcd(f,x^(31^6)-x)
in ZZ/(31)[x]
where f := x^15 +x^14 +x^13 +x^12 -x^11 -x^10 -x^7 -x^6 -x^3 +x^2 +x +1
Why so much memory? Was it using a dense representation?
Related issues
History
#1 Updated by Anna Maria Bigatti about 10 years ago
- Target version set to CoCoA-5.1.0 Easter14
#2 Updated by John Abbott about 10 years ago
- Target version changed from CoCoA-5.1.0 Easter14 to CoCoA-5.?.?
#3 Updated by John Abbott over 7 years ago
- Related to Slug #129: Better GCD added
#4 Updated by John Abbott over 7 years ago
- Related to Slug #952: GCD very slow added
#5 Updated by John Abbott over 7 years ago
- Related to Feature #257: Transcribe C4 code for GCD in QQ[x] added
#6 Updated by John Abbott over 4 years ago
This slug still exists: on my current machine, top reports that CoCoA-5 is using 13Gbyte of memory. The computation completed in about 131s.
No doubt it is using a dense repr. Perhaps there should be special handling if there is a large disparity in degree?
The speed is not ideal, but the memory consumption is embarrassing.