aboutsummaryrefslogtreecommitdiff
path: root/challenge-082/abigail
AgeCommit message (Collapse)Author
2020-10-24Wordpress sucks. No more blogs.Abigail
2020-10-15- Added blog by Abigail.Mohammad S Anwar
2020-10-15Links to blogs for week 082Abigail
2020-10-15Improve performance.Abigail
Our initial implementation of part 2 of week 82 has an exponential worst case time complexity. By introducing caching and using pointers instead of copying strings, we now have a quadratic worst case time complexity (and a quadratic space requirement).
2020-10-14Another slight improvement.Abigail
When hunting for the next prime which divides $gcd, exploit the fact that, other than 2 and 3, all primes are of the form 6 * k +/-1, for some positive integer k.
2020-10-14Improve the performance of week 082/part 1.Abigail
Improved the running time of the algorithm from O (sqrt (gcd ($M, $N))) to O (sqrt (p) + |f| log |f|) where p is the largest prime factor of gcd ($M, $N), and |f| is total number of factors. This is not an improvement if the gcd is a prime, but a dramatic improvement if the gcd contains lots of prime factors.
2020-10-14WhitespaceAbigail
2020-10-14Perl solution for week 82/part 2Abigail
2020-10-13Perl solution for week 082/part 1Abigail
2020-10-13Optional test names.Abigail
2020-10-13Copy test file from previous week.Abigail
2020-10-12- Added template for Challenge 82.Mohammad S Anwar