|
Advertisement
|
Forum posts by Jian Chen:1 page [ 1 ]
Posted in Java Answers Forum, Apr 4, 2003, 1:15 PM
I try to convert following algorithm to java code, but have trouble with the object reference. Thanks very much if any of you can help me.proc generate([c], m, k, list)if (m > M) thenlist.insert([c])elsefor i :=1 to min(k+1, K)generate([c].prepend(i), m+1, max(i, k), list)endforendifendprocproc mainlist();generate([1], 1, 1, list)endprocwhere c...
1 page [ 1 ]
|