background preloader

Puzzle

Facebook Twitter

Sudoku

Knight's tour. An open knight's tour of a chessboard An animation of a knight's tour on a 5 by 5 board.

Knight's tour

A knight's tour is a sequence of moves of a knight on a chessboard such that the knight visits every square only once. If the knight ends on a square that is one knight's move from the beginning square (so that it could tour the board again immediately, following the same path), the tour is closed, otherwise it is open. The exact number of open tours on an 8x8 chessboard is still unknown. The knight's tour problem is the mathematical problem of finding a knight's tour. Theory[edit] Knight's graph showing all possible paths for a knight's tour on a standard 8×8 chessboard. The knight's tour problem is an instance of the more general Hamiltonian path problem in graph theory. History[edit] The Knight's Tour as solved by The Turk, a chess-playing machine hoax. The earliest known reference to the Knight's Tour problem dates back to the 9th century AD. से ना ली ली ली ना ना ना ली ली ना ना ना ना ली ली ली ली where. Google Interview Questions - Job Interview Wiki.

World's Longest Palindrome Sentence? 15,139 (no, 17,826) wo. See also: comments, program, strategy At 8:02 PM on the 20th of February 2002 it was 20:02 02/20 2002 (if you live in the US), or 20:02 20/02 2002 (if you live in the rest of the world).

World's Longest Palindrome Sentence? 15,139 (no, 17,826) wo

Either way, it was the best of times, it was the tseb of times, it was a palindromic time. In honor of the event, I wondered if I could create the world's longest palindrome. A search for world's longest palindrome revealed that "In 1980, Giles Selig Hales claimed to have written the world's longest palindrome, which consisted of 58,795 letters. " That didn't seem too hard to beat. Cognoscenti such as Mark Saltveit, editor of The Palindromist, rightfully point out that my creation should not be called a true palindrome, because it makes no sense. Jerry Berns has his candidate longest palindrome, consisting of 31,358 words or 119,180 letters, so he's got me beat.

How I did it I knew that Dan Hoey had generated a longish palindrome beginning with "A man, a plan" and ending with "Panama". Language Induction. Shortest parser - Optimize Prime. We have a programming problem we give out at Justin.tv: write a parser to convert arithmetic expressions from infix to prefix (should deal with parens and arbitrary variable names).

Shortest parser - Optimize Prime

I wrote a version when I first came up with the problem, but I've lost it. So I thought I'd try writing it again and see how short I could get it. I'm fairly satisfied with it; you could remove some lines through stupid ruby tricks, but I don't see any more concise way to do it. I'd love to see your stab at it though - how short can you get it? Language of choice.