Skip to content

Implementation of 0-1 Knapsack problem solver

Notifications You must be signed in to change notification settings

toseni/Knapsack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knapsack

0-1 Knapsack solver implementation using branch and bound algorithm.

Getting started

This instruction will help you to install and run this solver.

Prerequisites

C compiler supporting OpenMP

cmake

python3 if you want to generate random problems

Building

  1. Create directory for build files.

$ mkdir debug-build

  1. Enter the directory.

$ cd debug-build

  1. Run cmake

$ cmake ../

For release build run

$ cmake -DCMAKE_BUILD_TYPE=Release ../

  1. Run Makefile

$ make

Running

To run build application call executable and pass file with problem data.

$ ./Knapsack ../knapsack_data/knapsack_12.out

About

Implementation of 0-1 Knapsack problem solver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published