Here are the results for the comparison of the knapsack algorithms. This has no bearing on your grade, this is just for fun. The comparison is the average result of each of your algorithms run on 10 test cases.
A score of 0.0 means one of three things: 1. An infeasible solution was returned for any of the test cases, 2. The algorithm was not implemented/failed to run, or 3. Your code took all the memory and swap on the test machine before finding an answer (the test machine has 16 gigs of RAM by the way).
You get points equal to your ranking in each of the algorithms, lowest score wins. The final results are in the last list and the average value returned by each algorithm is given in the first four.
The column format is:
The ID corresponding to your results was emailed to your cs account.
Steepest ascent
- 007 361.4
- 009 360.0
- 006 287.2
- 013 224.7
- 004 213.1
- 003 207.5
- 012 199.1
- 011 182.0
- 008 181.5
- 005 119.1
- 010 140.0
- 002 24.4
- 014 0
- 015 0
- 016 0
Steepest ascent w/ restarts
- 007 358.7
- 005 352.9
- 006 307.2
- 013 298.8
- 004 250.5
- 011 238.3
- 008 214.3
- 012 199.1
- 010 192.5
- 009 186.3
- 003 182.3
- 002 139.9
- 014 0
- 015 0
- 016 0
GA
- 013 362.2
- 005 359.2
- 006 336.0
- 010 253.4
- 004 235.9
- 003 226.6
- 012 217.1
- 008 212.6
- 002 145.0
- 009 89.4
- 007 36.0
- 011 0.0
- 014 0.0
- 015 0.0
- 016 0.0
GA w/ constraint violation
- 013 360.8
- 005 358.4
- 006 333.0
- 010 252.4
- 003 237.6
- 004 226.1
- 008 210.2
- 002 128.5
- 009 119.9
- 007 26.2
- 011 0.0
- 012 0.0
- 014 0.0
- 015 0.0
- 016 0.0
Finals
- 013 10
- 006 12
- 005 16
- 004 21
- 007 24
- 003 28 (tie)
- 010 28 (tie)
- 008 31
- 009 32
- 012 33
- 011 37
- 002 42
- 014 49
- 015 49
- 016 49
