¡@

Home 

2014/10/15 ¤U¤È 10:14:39

iphone Programming Glossary: successor

Fastest cross-platform A* implementation?

http://stackoverflow.com/questions/2107601/fastest-cross-platform-a-implementation

n open.remove closed.insert n Return if goal state reached. if n.equals goal return new Solution initial n Compute successor moves and update OPEN CLOSED lists. DepthTransition trans DepthTransition n.storedData int depth 1 if trans null depth trans.depth.. for Iterator IMove it moves.iterator it.hasNext IMove move it.next Make move and score the new board state. INode successor n.copy move.execute successor Record previous move for solution trace and compute evaluation function to see if we have.. it.hasNext IMove move it.next Make move and score the new board state. INode successor n.copy move.execute successor Record previous move for solution trace and compute evaluation function to see if we have improved upon a state already..