Question: Please explain well with a diargram with answer. backtracking and tree to design a Branch && Bound algorithm. Thank you > Given a N N
Please explain well with a diargram with answer. backtracking and tree to design a Branch && Bound algorithm. Thank you
Given a N N M atrix M filled with nonnegative integers, find all the possible cells M i j
where indexes i and j are unique and the sum of those cells is maximized or minimized for all the
possible solutions found.
The formal definition of the problem is the following:
Let P P Pk Pn be a set of solutions for this problem where Pk M i jM i j
M i j M i jm M i jm S is a set of coordinates for integers values in a matrix,
and S the sum of those integers for that solution Pk The S sum is valid only if:
All the indexes i and j for that sum of Pk are unique
The integer in M i j is not zero
Index j in M i jx must be the same as index i in M i jx
Index i in M i j and index j in M i jm must be zero for all the solutions Pk
A possible solution Pk is considered optimal only if the sum S of all its integers is the minimum
or the maximum sum S from all the solutions Pk
All the vertices but the source vertex must be visited only once. The source vertex is visited
twice because it plays the role of the source and destination vertex in this algorithm
For example, given the following matrix M filled with integers and zeros find all the possible
results that met the above conditions.
infty
infty
infty
infty
infty
infty
All possible solutions are:
P M M M M M M
P M M M M M M
P M M M M M M
P M M M M M M
A Create a statespace tree to design a backtracking algorithm to find all the solutions
for the following matrix M Note that approaches other than creating a statespace tree for
this algorithm wont get credit. Show all your work
infty
infty
infty
infty
infty
infty
BCreate a statespace tree to design a Branch && Bound algorithm to find all the
solutions for the matrix given in problem # Note that approaches other than creating a
statespace tree for this algorithm wont get credit. Show all your work
c Create pseudocode to solve both or your algorithms from part #Aand #B Note
that your algorithms must work for all the N xN matrices where N is an integer. Students
wont get credit for this problem if they provide code instead of pseudocode.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
