Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - Large powers of polynomials in small characteristic
Author Message
  Post subject:  Re: Large powers of polynomials in small characteristic  Reply with quote
Thanks for the hint, I added the handling of this special case
(see https://github.com/Singular/Sources/commit/6538bdbf4f61760cc2956dcad64e92c75f6531e6)
Post Posted: Wed Apr 06, 2016 3:47 pm
  Post subject:  Large powers of polynomials in small characteristic  Reply with quote
Back in 2009, there was discussion on the Sage developers mailing list:

https://groups.google.com/forum/#!topic ... MPWGadoSpA

about the fact that in a multivariate polynomial ring of very small characteristic, raising a polynomial to a large power was being done suboptimally. Namely, one should really account for the fact that in characteristic p, raising to the p-th power acts on individual monomials; so to compute f^n, one ought to write n = a_0 + a_1 p + a_2 p^2 + ... and compute f^n as f^a_0 * (f^p)^(a_1) * ...

I just repeated the timing test from that thread, and as of 2016 it is still possible to do much better than what is implemented by explicitly splitting the exponent into base-p digits. It appears that the underlying representation of these polynomials is in Singular, so maybe the discussion should be continued here.

To make a particularly egregious example:

int p = 7;
ring rp = p, (x,y,z), dp;
poly f = (x^3 + y*z + z + y*y + x*z)^4;
poly g= f^(p^2);

should return instantaneously; instead, it takes about 10 seconds on my laptop.

Kiran
Post Posted: Tue Apr 05, 2016 7:33 pm


It is currently Fri May 13, 2022 11:04 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group