Mathematical Algorithms