Using a genetic algorithm to solve constraint satisfaction problems generated by an image interpreter