mathematical algorithms in computer science