BFS do with php
2016-08-23
0 0 0
no vote
Other
Earn points
In this algorithm we use the language php to interpreter the puzzle 8, 8 puzzle is one of the classic problems that is used to test intelligence. Here is how classic 8 puzzle problem looks like In a 3X3 box all the boxes are filled with numbers from 1 to 8, except one box The blank can be moved to left, right, top and down.
In the initial state the numbers are unordered, in the final state the numbers are ordered. Our goal is to find out the sequence of moving blank states such that final goal is reached. In this problem we tried to solve it by breadth first search. We used the special Que available in PHP to store states of puzzl
php
bfs
实现
Related Source Codes
CRMEB open source mall system (including h5 offici
0
0
no vote
PHP source code of CRMEB multi port and multi lang
0
0
no vote
ALLLIGHT music player, adaptive to all mobile phon
0
0
no vote
DSMALL multi-merchant mall system
0
0
no vote
WeChat H5 payment source code
0
0
no vote
No comment