Anonymous user
Knapsack problem/Continuous: Difference between revisions
m
→version 1: re-aligned comment boundaries.
Walterpachl (talk | contribs) m (→version 1: typo) |
m (→version 1: re-aligned comment boundaries.) |
||
Line 1,945:
call show 'unsorted item list' /*display a header and the @ list*/
/*for short lists, method is ok. */
do sorts=2 to items /*sort
_n=n.sorts; _w=w.sorts; _v=v.sorts /*calc. placeholders for DO loop.*/
do k=sorts-1 by -1 to 1 while v.k/w.k < _v/_w /*order it*/
|