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 Cubic at 2005-08-06 06:29:58 on Problem 2054
In Reply To:my sol. Posted by:gush at 2004-12-22 21:18:30
1、每次都是找最大值吗?如果最大值不用移动是算法终止还是继续找下一个值?重复这一过程是要到长度减为1还是不能移动?
如果是不能移动就终止条件似乎不对,那么只要我的根结点是最大值算法不就直接终止了么?
2、如果2、3都是1的儿子,当1和2合并后,要是最大值为结点3,那么要把1、2、3都合并还是3不动?如果再接下来是2的儿子4的话,也把4合并到123后面吗?
实在不懂,还望指点,谢谢~~

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