Problem of Chess have fascinated the human race for decades/centuries together. Im no escape! Here again, we would like to discuss the knight tour and the so called knight graph from which the tour is derieved. The knight graph is again an interesting one, artistically! Here are few snapshots of the knight graph and the code snippet to generate them.
Simple case is this 3×3 for less than this, no square could have a knight moving! The central cell is unvisited (trivially).
Since 2xN (N>2) is literally a place where knight could gallop! Just a specific value of N=10 is choosen. This has a special property, its also the optimal way how three strings could be used to weave so that they dont unwind so easily. (But tough to prove indeed :)
The graphs are increasingly good and symmetrical. As we go up higher, we find that the pattern repeats and we could see that centrally, the pattern remains invariant. We could see the square formation in this graph.
No words to describe! Just enjoy the beauty of the interlinks! May be one can try to count the number of squares.
This time, for a big one. As we have said before, we could see the central invariant pattern. Borders bear a different pattern. Aesthetic indeed!
One immediate question that pop to us is that, how many edges would this graph contain? The question indeed is not very trivial till we observe this pattern on the graph:
For 3 x 3 here is the incidence edge count matrix.
For 4 x 4:
For an N x N, we have:
The pattern should be trivial by now. And we find the reason why the central pattern is invariant! Afterall if we see how the knight could move, its immediately trivial that it has a maximum stretch of 8 cells symmetrically from its standing cell. So, counting the above pattern, with some algebra and some spicy chips by your side, the following simple relation could be obtained.
And for NxN it should be an easy substitution:
The code to produce above knight graphs could be found here: Code Snippets