Domino Matching Problem

An efficient algorithm to solve Domino Matching Problem