A simple brute force approach (backtracking) for solving puzzles of the game Flow Free https://play.google.com/store/apps/details?id=com.bigduckgames.flow
It works in reasonable times for puzzles up to 9x9
For larger matrixes the time grows exponentially.