## Binary to Gray algorithm explained

Binary to Gray code conversion algorithm is deceptively simple: /* This function converts an unsigned binary * number to reflected binary Gray code. * * The... »

Binary to Gray code conversion algorithm is deceptively simple: /* This function converts an unsigned binary * number to reflected binary Gray code. * * The... »

In this blog post I will show you how to ray trace a torus. I will assume that you already know how to ray trace simple... »

In this blog post we will learn about two algorithms that allow us to quickly check that a given integer is a power of two. Both... »

Towers of Hanoi is a simple programming riddle often used in programming courses to introduce recursion. Not many people are aware that Towers of Hanoi has... »

In this post I will describe how to draw Hilbert curve iteratively. To avoid recursion we will use hindex2xy algorithm that translates Hilbert curve node index... »