This post will get you started with the contest Animus. The goal is to write a bot that will play the game “Dots and Boxes”.
Obfuscation 2012: Comments and Solutions
The contest has ended. Congratulations to the winners!
Dementia 2012: Comments and Solutions
The 6 hours programming contest has finally ended! Congratulations to the winners.
Convergence Tests of Infinite Series
The content listed below is also available in PDF format.
Matrix Multiplication in Ruby
Ruby has an inbuilt Matrix class, which you should use in any serious application. In this article, we discuss how matrix multiplication can be performed efficiently. However, because the code we write is in Ruby, even a very good implementation will run slower than using the Matrix class.
Finding the Remainder Left Behind When Dividing a Large Number
It is easy to compute the remainder left behind upon dividing, for example, \( 2^{100} \) by \(3\) using modular arithmetic.
Modular arithmetic is a system of arithmetic in which numbers wrap around, or get ‘reset’ once they reach a certain value. You can think of it as arithmetic using a number circle as opposed to a number line.