Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:这题为什么要A* 和BFS? 是什么思路?还有hash?In Reply To:这题为什么要A* 和BFS? 是什么思路?还有hash? Posted by:cer at 2009-09-24 14:55:10 用BFS。。是因为要枚举状态。。保存状态(入队)。。然后检测队列中的状态是否是目标状态,即12345678x。。。因为状态会有重复。。hash是为了加快检测当前产生的状态是否已经被检测过。。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator