A method of searching a lattice for problem-solving in artificial intelligence using a data processor, the lattice including nodes having present and next nodes each having node scores, and the lattice having depth and breadth, said method comprising the steps of:(a) inputting pattern data sets using an input device and storing the pattern data sets in a memory; (b) determining candidate patterns