
-----------------------------------
jimjim168
Tue Feb 16, 2010 11:01 pm

CCC-2003-S5   help!
-----------------------------------
I've been solving the problem CCC-2003-S5 and always got a zero as a result...
Following is my Pascal code, could anyone tell me where is wrong?
Tks.


program CCC_2003_s5l;

uses math;

var i,xx,yy,ww,cities,roads,dests,max_weight,now_node,sign,max:longint;
    map:array

-----------------------------------
A.J
Tue Feb 16, 2010 11:05 pm

RE:CCC-2003-S5   help!
-----------------------------------
Er...mind telling us a bit more about your program, what algorithm it is implementing, any debugging you have done so far, etc...

Try fixing this yourself first, then if you can't seem to get it working, tell us what you encountered so far and then ask us for help.

-----------------------------------
jimjim168
Tue Feb 16, 2010 11:13 pm

Re: RE:CCC-2003-S5   help!
-----------------------------------
Er...mind telling us a bit more about your program, what algorithm it is implementing, any debugging you have done so far, etc...

Try fixing this yourself first, then if you can't seem to get it working, tell us what you encountered so far and then ask us for help.

Um... Maybe...  I guess something's wrong with my algorithm when using the Prim's algorithm to get the MST...
I ain't quite familiar with this part...
