Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

题解

Posted by 117474335 at 2010-09-16 22:26:32 on Problem 2449
dijstra + A* (最优化搜索, 按估计值排序) 
h[n] = d[n] ;//估价函数为最短距离;
g[n] = cost[n] ;//赋值实际长度;
然后再在A*框架下搜到第k遍终点即可;

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator