Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

large test data for knapsack problem

i am researcher student. I am searching large data for knapsack problem. I wanted test my algorithm for knapsack problem. But i couldn't find large data. I need data has 1000 item and capacity is no matter. The point is item as much as huge it's good for my algorithm. Is there any huge data available in internet. Does anybody know please guys i need urgent.

like image 855
user347918 Avatar asked May 22 '10 18:05

user347918


People also ask

Which method is best for knapsack problem?

A greedy algorithm is the most straightforward approach to solving the knapsack problem, in that it is a one-pass algorithm that constructs a single final solution. At each stage of the problem, the greedy algorithm picks the option that is locally optimal, meaning it looks like the most suitable option right now.

What is the maximum value of the items you can carry using the knapsack?

What is the maximum value of the items you can carry using the knapsack? Clarification: The maximum value you can get is 160.

What is the best time complexity to solve knapsack problem?

Time complexity for 0/1 Knapsack problem solved using DP is O(N*W) where N denotes number of items available and W denotes the capacity of the knapsack.

What are the constraints for knapsack problem?

We first present an integer formulation for this knapsack problem, so couple constraints related with load balance, vertical (cargo) stability and fragility of the items also called load bearing.


1 Answers

You can quite easily generate your own data. Just use a random number generator and generate lots and lots of values. To test that your algorithm gives the correct results, compare it to the results from another known working algorithm.

like image 130
Mark Byers Avatar answered Sep 21 '22 08:09

Mark Byers