MilchRatchet / PAL

Polytime Algorithm Libraries
zlib License
0 stars 0 forks source link

knapsack related issues #12

Open Mathemalsky opened 3 years ago

Mathemalsky commented 3 years ago

I thought and read a bit about the knapsack problem.

MilchRatchet commented 3 years ago
Mathemalsky commented 3 years ago

You can now have a look at the performance comparison. As suspected the pointer version is considerably faster than the initial version. In my test it took about 1.3 s in contrast to the older version, which consumed > 6 s. So if you agree to that point than merge the performance improved version into master. Do we need the performance test any more and should also merge into master?

MilchRatchet commented 3 years ago

Ok, the performance difference is indeed quite massive.

I merged the improved version now. I don't think we should merge the performance test right now. Maybe we could later do a performance test which compares every algorithm for a given problem.