Assignment 3

Integer Multiplication, Primality Testing, Interpolation

CS 300 Applied Symbolic Computation
Instructor: Jeremy Johnson 
Due Tuesday May 20 by class time.

 

Problems to hand in

  1. [20 points] Count the number of multiplications used by the binary powering algorithm, Powerrec (see below), presented in Lecture 5.  Plot the number of multiplications for exponent 0..128.  Can you determine a formula for the number of multiplications?  
  2. [30 points]
  3. [30 points]
  4. [20 points] Implement a Maple procedure that multiplies two polynomials with coefficients in Z_p using the evaluation, pointwise product, interpolation algorithm.