Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
europeanplaice committed Mar 27, 2022
1 parent 861cbcb commit ae225f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/find_subset/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<meta charset="utf-8">
<title>Multiple Subset Sum Solver</title>
<meta name="description"
content="Solves subset sum problem and multiple subset sum. It returns a set of decomposed integers." />
content="Solves subset sum problem and multiple subset sum problem. It returns a set of decomposed integers." />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
</head>

Expand Down
9 changes: 7 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,13 @@ <h2 id="what-is-subset-sum-problem" class="subtitle">What is subset sum problem?

<h2 id="what-is-dpss" class="subtitle">What is DPSS?</h2>
<p><a href="https://github.com/europeanplaice/subset_sum">DPSS</a> provides a tool to solve this problem without
any specialized math knowledge.
It also offers a method to solve multiple subset sum problem.</p>
any specialized math knowledge.</p>
<p>It also offers a method to solve multiple subset sum problem. For example, if you are a travel planner, and you have to allocate families to some cars, you can count on this tool to make a plan of allocation.
Given each member of the family are [2, 3, 2, 4, 5, 3, 2] and the capacities of each car are [4, 5, 8, 4],
you can allocate the families to the cars as follows:</p>
<p>[pattern => [([4, ] [4, ]), ([2, 2, ] [4, ]), ([2, 3, ] [5, ]), ([3, 5, ] [8, ])]
, pattern => [([4, ] [4, ]), ([5, ] [5, ]), ([2, 2, ] [4, ]), ([2, 3, 3, ] [8, ])]
]</p>

<h2 id="how-to-use-dpss" class="subtitle">How to use DPSS?</h2>
<p>The easiest way to use this tool is the <a
Expand Down

0 comments on commit ae225f9

Please sign in to comment.