Valid Planar Pairing

Rating: 3
November 24th, 2007

pairing_icon.gifThere are 100 red dots and 100 blue dots on the plane (a lot of planar riddles lately). The dots are arranged such that no three are on the same line.

pairing of the red dots and the blue dots is a one-to-one function that assigns one blue dot to each red dot.

Read the rest of this entry »

Uncountable Union

Rating: 4.5
November 21st, 2007

easyriddle.gifA very interesting riddle for those of you with some basic background in Set Theory.

Read the rest of this entry »

Expanding Frogs

Rating: 3.5
November 21st, 2007

frog.jpgA very easy riddle. Four frogs are sitting on the corners of the unit square (i.e. they have coordinates (0,0), (0,1), (1,1) and (1,0) ). Each turn, a frog can jump over any other frog, thereby transferring itself to the symmetrical point on the other side of the static frog. For example, if the frog at (0,0) jumps over the frog at (1,1) it will land on (2,2).

Read the rest of this entry »

Peons

Rating: 3.5
November 5th, 2007

peons_explain.jpg This is a cute puzzle. Consider an infinite checkerboard divided in two with an infinite line lying along the x-axis, as depicted below:

Read the rest of this entry »

Set it Straight!

Rating: 3.5
October 31st, 2007

sat_choice.jpgIn this post I will give a basic example of the necessity (or uselessness – its up to you to choose – pun intended) of the axiom of choice. I will also present a less known proof of the Cantor–Bernstein–Schroeder theorem.

The Cantor–Bernstein–Schroeder Theorem

Let A and B be sets. Let f:A->B and g:B->A be injective functions. Then there exists a bijection h:A->B.

Read the rest of this entry »

Find the Duplicate

Rating: 4
October 13th, 2007

Dany Valevsky gave me this very cool riddle.

You are given a vector of size N, the elements of which are numbers in the range 1,…,N-1. I.e. there is at least one repeating element. Give an algorithm that finds a repeating element (it does not matter which one, in case there are several) with O(N) time complexity and O(1) memory complexity.

NOTE - the time and memory complexities are calculated in integers. I.e. the input is of size N, not N*logN.

Read the rest of this entry »

Pirates!

Rating: 3
October 13th, 2007

easyriddle.gifA ship in the plane has integer coordinates. It also has integer velocity (again in ZxZ). Each turn the ship advances according to its velocity. Here is an example of a ship with velocity (3, 1).

Read the rest of this entry »

Turing Machines in Action

Rating: 2.5
October 7th, 2007

tmbinaryaddreverse.gif In this post I will define turing machines and demonstrate a simple one in action.

Read the rest of this entry »

Galois Theory for Dummies – Part I

Rating: 3.5
September 27th, 2007

galois.jpg Galois Theory is an algebraic theory providing a powerful connection between fields and groups. Many complicated problems involving fields can be converted to (possibly) simpler problems involving groups.

Galois Theory, albeit being extremely beautiful (it answers some very elementary questions, which were all open problems until its arrival), is far from being wildly known (i.e. by non-mathematicians). One of the reasons for this, in my opinion, is that is it a vast subject and most books on the topic are filled with too many details and so are inadequate for a quick read.

Read the rest of this entry »

Seam Carving

Rating: 5
August 27th, 2007

carved_pagoda.jpg I recently watched this interesting video by Shai Avidan and Ariel Shamir from MERL. They developed an extremely cool image resizing technique called seam carving. They explain all about it in this article.

One of the coolest things about their idea is that is it easy to implement. I implemented a semi-optimized version of their algorithm in a couple of hours of coding. All the images in this post were generated by my code.

Read the rest of this entry »