Help Needed: Calculating a Large Power of a Polynomial Modulo Another

  • Thread starter Thread starter simba31415
  • Start date Start date
  • Tags Tags
    Polynomial Power
Click For Summary
SUMMARY

The discussion centers on calculating a large power of a polynomial modulo another polynomial over the field GF(p), where p is a prime number. The user has developed programs to find the quotient and remainder of polynomial division and to compute the highest common factor (HCF) using Euclid's algorithm. They seek to understand how to leverage the HCF to enhance the efficiency of polynomial exponentiation, particularly in conjunction with methods like successive squaring and modular reduction. Ultimately, the user expresses a desire for guidance on utilizing the HCF in this context.

PREREQUISITES
  • Understanding of polynomial arithmetic over finite fields (GF(p))
  • Familiarity with Euclid's algorithm for computing the highest common factor
  • Knowledge of modular arithmetic and properties of exponents
  • Experience with programming concepts related to polynomial manipulation
NEXT STEPS
  • Research the application of the HCF in polynomial division and its implications for efficiency
  • Study the method of successive squaring for polynomial exponentiation
  • Explore advanced techniques in modular arithmetic specific to finite fields
  • Investigate algorithms for optimizing polynomial operations in computational mathematics
USEFUL FOR

Students and researchers in computer science and mathematics, particularly those focused on algorithms, polynomial arithmetic, and finite fields. This discussion is beneficial for anyone looking to enhance their understanding of efficient polynomial calculations in modular arithmetic.

simba31415
Messages
12
Reaction score
0
Hi all,

I've been set some holiday work by my study director which is meant to be teaching us all about algorithms and a few other mathematical bits and bobs - unfortunately I've come unstuck on one of the bobs, and was hoping for some help! I've asked for help elsewhere but was given very little detail and didn't get much further with the problem, so I thought I'd try here instead as I've been told PF is very reliable when it comes to helpful people :)

Essentially, working over the field GF(p) for some prime p, I've written out the code for a program to find the quotient and remainder from dividing 2 polynomials over GF(p), and another program using the first one which finds the highest common factor of 2 polynomials over GF(p) (implementing Euclid's algorithm). Next, he writes 'explain how to use your programs to efficiently calculate a large power of one polynomial modulo another polynomial'. He hasn't explicitly put over GF(p) here, but I assume that must be the case. Anyway, I can see how using the first program would give us an easy way to perform modular arithmetic, so the use of that is fairly obvious, but what I'm coming unstuck on is a way to use the knowledge of the highest common factor to make the calculation more efficient - is there actually such a way?

2 ways to improve the efficiency I can see are to use the method of successive squares to reduce the necessary number of multiplications, and to take the power to which we're raising our first polynomial mod p, since x^(p-1) will always be congruent to one for all x. Clearly though, neither of these make use of the HCF.

Could anyone please, -please- suggest a way of using the HCF to effectively increase the efficiency of the calculation, or at the very least put me out of my misery and tell me that there is no such way? I've been stuck on this one problem for ages now, and I'm a bit sick of it! Any help will be huuugely appreciated :) Thankyou!
 
Physics news on Phys.org


Incidentally, if anyone can point me in the right direction for this then I'd be very happy to read up on it myself, I don't need the whole concept explained to me if you can just nudge me in the right area :)
 


Please could the mods delete this thread? I believe I found a way myself, so I'd appreciate it if they could get rid of this :)
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
3K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 17 ·
Replies
17
Views
7K
  • · Replies 9 ·
Replies
9
Views
4K