Balanced binary tree animated
posted in Blog

The balanced binary tree is an exremely useful data structure which promises excellent insert, find and delete performance guarantees.

The key to this performance is the balancing property which makes sure that the tree does not get too lopsided (leading to bad performance) - and the key to balancing the tree are the rotation operations.

Read more...

About

This site is a mish-mash of selected topics from Maths, Physics, Puzzles, History and Programming by Nagarajan. Click through to read more...


Other distractions...

  • Mathologer Mathy stuff - better than Numberphile
  • JSConf JSConf youtube channel
  • Pycon PyCon youtube channel
  • Mr Bean Mr Bean's channel on Youtube
Minesweeper
posted in Blog

The classic Minesweeper game implemented with Javascript, React and CSS.

Read more...

Todo list with React and LocalStorage
posted in Blog

A simple client side TODO list created using React and localstorage. Due to using localstorage, the list will retain any changes across tabs in the same browser (even after closing and opening tabs).

Read more...

Sudoku solver
posted in Blog

A simple sudoku solver implemented in Javascript. This is a port of my previous Python solution.

This program uses a randomized approach... which implies that if a problem has more than one solution, this program will randomly find one of the solutions. You can even try to...

Read more...

Orbit Camera for 3D scenes
posted in Blog

A set of orbit controls, which allow the object under the mouse pointer to be the 'object of interest' with respect to which the camera then rotates / zooms.

Read more...

Magic Squares
posted in Blog

A conventional magic square of order n is a square filled with the numbers 1 through n*n such that the sum of each row, column or diagonal is the same.


Each number in the square must be distinct, and thus every number from 1 to n*n is used exactly once. The sum of the row in the 5x5 square above is 65.

Read more...

Bezier curve playground
posted in Blog

Bezier curves are one of the cooler things with built-in support in the web browser - which makes it easier to create this demo in the browser (vs a custom native UI).

Read more...

Fun with circle chords
posted in Blog

A fun little program to discover shapes conjured up drawing periodic chords in a circle. I made this for my kids to enjoy.


Read more...

Leo Szilard - The Man who changed the World
posted in Blog

I bet you have not heard the name Leo Szilard - I feel safe making this bet because even with a deep interest in physics, engineering and a fair interest in scientific history, it took me an unfortunately long time to hear about him (and I feel good losing this bet to a knowledgeable person :-) ).


Given how well the world knows about his inventions and the effect of this actions, it truly is surprising how little known this person is. Read on to find out how one man changed the world and impacted it in the most profound ways.

Read more...

Gravity Train
posted in Blog

Here is a really cool transportation idea - using gravity powered vacuum tubes to travel through the earth across long distances - and all of that in 42 minutes.


Yes, you read that right. 42 minutes flat... irrespective of the starting or ending stations!! Read on to find out more...

Read more...

Looking for more? Head to the archives ...



About

This site is a mish-mash of selected topics from Maths, Physics, Puzzles, History and Programming by Nagarajan. Click through to read more...



Other distractions...

  • Mathologer Mathy stuff - better than Numberphile
  • JSConf JSConf youtube channel
  • Pycon PyCon youtube channel
  • Mr Bean Mr Bean's channel on Youtube