Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Solve all parts and mention each part. Complete all parts on a piece of paper. donot just explain on how to do it . I
Solve all parts and mention each part. Complete all parts on a piece of paper. donot just explain on how to do it I need final answers for all the parts. Given a Matrix filled with nonnegative integers, find all the possible cells
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 dots,dots, be a set of solutions for this problem where
:dots is a set of coordinates for integers values in a matrix,
and the sum of those integers for that solution The sum is valid only if:
All the indexes i and for that sum of are unique
The integer in is not zero
Index in must be the same as index in
Index in and index in must be zero for all the solutions
A possible solution is considered optimal only if the sum of all its integers is the minimum
or the maximum sum from all the solutions
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 filled with integers and zeros find all the possible
results that met the above conditions.
All possible solutions are:
a Create a statespace tree to design a backtracking algorithm to find all the solutions
for the following matrix Note that approaches other than creating a statespace tree for
this algorithm won't get credit. Show all your work
b Create 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 Find the complexity and time complexity of your backtracking algorithm. Show all your work to get credit.
Compute the Tn functions from your pseudocode created in problem d Perform the backsubstitution to your Tn functions and define their Theta time and space complexities
e Explain in plain English if you think that there is a way to optimize the two algorithms covered in this homework. If not, then explain why
f Create a program, using python programming language, that implements your algorithms both of them To get credit for this problem students must provide some unit tests to test that your program performs as per your algorithm specifications. Create this program in an online editor and share here the link to your program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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