0.0.1 • Published 7 years ago
subset-sum-finder v0.0.1
subset-sum-finder
A Branch-and-Bound technique that is selective about nodes to create in an attempt to solve the Subset Sum Problem quickly.
To run program:
- Have installed Nodejs 10.0 or better
- Have installed NPM
- Download and unzip project folder.
- Open a terminal up inside the subset-sum-finder-master folder, or Change Directory to the subset-sum-finder-master folder.
- Use the command "npm start"
The program will run in the terminal, asking you for a set of integers and target sum.
Note: Be sure the list of integers is in similair format number comma number comma... no trailing comma. Example: 5,4,2,-1,-3,0,4
You may use positives, signed negatives, zeroes, duplicates and be unordered. (The array is sorted before processing math)
The Code is based on a technique for solving Subset-sum problems by hand. In which a general tree is constructed, by asking if each element in the given set is Either Too Big or Too small to be a parent node, then recursively doing so for each subproblem created.
0.0.1
7 years ago