/coursera-algorithmic-toolbox-assignments

This repository is for sharing programming assignments of the "Algorithmic Toolbox" course of coursera.

Primary LanguageJava

coursera-algorithmic-toolbox-assignments

This repository is for sharing programming assignments of the "Algorithmic Toolbox" course of coursera. Any enhancements / suggestions /additions are purely welcome! Learning purpose only :)

  1. FibonacciHuge.java : To compute Fn modulo m, where n may be really huge and Fn is the nth Fibonacci term.
  2. FibonacciLastDigit.java : To find the last digit of any nth Fibonacci term specifically efficient for the large values of n
  3. FibonacciPartialSumLastDigit.java : To find the last digit of partial sum of Fibonacci numbers, i.e, given m and n, find last digit of sum of m to n th Fibonacci numbers (F(m)+F(m+1)+F(m+2)+...F(n))
  4. FibonacciSumLastDigit.java : To find the last digit of the sum of n Fibonacci Numbers.
  5. FibonacciSumOfSquaresLastDigit.java : To find the last digit of sum of squares of n Fibonacci terms.
  6. GCD.java : To find GCD of 2 numbers using Euclid's Lemma.