Problem 1286. MatCAT - Reconstruct X from Its X-rays
Solution Stats
Problem Comments
-
4 Comments
regarding the discussion question, my guess is that the only cases where the answer becomes unique are those 'trivial' single-vector or equivalent cases. More precisely those cases where min(nnz(row_sums),nnz(col_sums))<=1. The reasons is that if one solution exist where x(a,b)>0 and x(c,d)>0 (and a~=c and b~=d; i.e. they are not in the same row or column), then you could simply subtract one from x(a,b) and x(c,d), and add one to x(c,b) and x(a,d), and the result will also be a valid solution... thoughts?
Nice problem
good problem.
See also this: https://it.mathworks.com/matlabcentral/cody/problems/47618
There is a nice video explaining how to solve these problems.
Solution Comments
-
1 Comment
That's brilliant!
-
1 Comment
Hello, I am a beginner. I tried a lot but couldn't figure out the solution. Can you please help me with this problem?
-
1 Comment
I confess, I found the results using intlinprog.
-
2 Comments
I would love to know how you came up with that.
I have no idea how you came up with this... So elegant.
Problem Recent Solvers92
Suggested Problems
-
6735 Solvers
-
1371 Solvers
-
Rotate and display numbered tile
294 Solvers
-
708 Solvers
-
429 Solvers
More from this Author50
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!