The Exact Cover Algorithm 

exact_cover_wiki.png