Question: Problem definition: Use the backtracking algorithm to solve the subset sum problem, n = 6 , w 1 = 3 , w 2 = 3

Problem definition: Use the backtracking algorithm to solve the subset sum
problem, n=6,w1=3,w2=34,w3=4,w4=12,w5=5,w6=2,M=9
Step1: Based on Pseudocode in slide 20, implement the algorith
m
Step2: Run the algorithm and get the solution using given input
Step3: Draw the pruned state tree, and compare and discuss the
result to the one we got in step 2.
- Write the pseudo-code
- Source code(python)
 Problem definition: Use the backtracking algorithm to solve the subset sum

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!