Question
Given a set of N positive integers S={x1, x2, x3,, xk, xN}, decide whether S can be partitioned into two sets S0 and S1 such
Given a set of N positive integers S={x1, x2, x3,…, xk,… xN}, decide whether S can be partitioned into two sets S0 and S1 such that the sum of numbers in S0 equals to the sum of numbers in S1. This problem can be formulated as a minimisation problem using the objective function which takes the absolute value of the difference between the sum of elements in S0 and the sum of elements in S1. Assuming that such a partition is possible, then the minimum for a given problem instance would have an objective value of 0. A candidate solution can be represented using a binary array r=[b1, b2, b3,…, bk,… bN], where bk is a binary variable indicating which set the k-th number in S is partitioned into, that is, if bk =0, then the k-th number is partitioned in to S0, otherwise (which means bk =1) the k-th number is partitioned in to S1. For example, given the set with five integers S={4, 1, 2, 2, 1}, the solution [0,1,0,1,1] indicates that S is partitioned into S0={4, 2} (first and third numbers in S) and S1={1, 2, 1} (second, fourth and fifth numbers in S), and this solution has an objective value of 2 which is computed by |(4+2)−(1+2+1)│, while the optimal solution for this instance is [0,0,1,1,1] indicating that the first and second numbers are in partition S0 while the remaining numbers are in S1 yielding the objective value of |(4+1)−(2+2+1)| = 0
- How many different candidate solutions can be encoded with the proposed candidate solution representation scheme? Provide your answer in terms of N.
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
Step: 1
Sokition For Prow fon how Candidetes the answer mary Soutios Con be estimated we need to thinb the ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started