I am looking for an algorithm to fidn the longest path between two points on a grid, with the added restriction that you cannot revisit a cell on the grid. (Also, you can only move up, down, left, and right).
Given these restrictions, I imagine that walking the longest path is the same as trying to fill as much of the space as possible. However, I have some difficulting in figuring out how to do this.