Menu

Close
  • Home
  • java (29)
  • dotnet (11)
  • algorithms (7)
  • architecture (7)
  • scala (7)
  • javascript (5)
  • polish (5)
  • csharp (4)
  • elektronika (4)
  • hibernate (3)
  • linux (3)
  • unit-testing (3)
  • hardware-review (2)
  • cheatsheet (1)
  • ctf (1)
  • devcon (1)
  • eclipse (1)
  • electronics (1)
  • functional-programming (1)
  • git (1)
  • hacking (1)
  • hardware (1)
  • kotlin (1)
  • low-level (1)
  • other (1)
  • postman (1)
  • powershell (1)
  • regex (1)
  • security (1)
  • sql (1)
  • ssh (1)
  • tips (1)
  • vim (1)
  • windows (1)
Subscribe
Blog Logo Menu

algorithms

A 7-post collection

Page 1 of 2 Older Posts »

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... »

Author image Marcin Chwedczuk on Algorithms 17 Dec 2019

Ray tracing a torus

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... »

Author image Marcin Chwedczuk on Algorithms 06 May 2018

How to check if a number is a power of two

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... »

Author image Marcin Chwedczuk on Algorithms 16 Dec 2017

Iterative solution to Towers of Hanoi problem

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... »

Author image Marcin Chwedczuk on Algorithms 26 Nov 2016

Iterative algorithm for drawing Hilbert curve

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... »

Author image Marcin Chwedczuk on Algorithms 06 Aug 2016
Page 1 of 2 Older Posts »
Programming is Magic © 2021
Proudly published with Jekyll using Jasper