Question: Write a computer program that takes integers m, n, r i for 1 i m and s j for 1 j n as
Write a computer program that takes integers m, n, ri for 1 ≤ i ≤ m and sj for 1≤ j≤ n as input and that either outputs a 0–1 matrix with m rows and n columns with row sums ri and column sums sj , or says that no such matrix can exist (some programming experience required).
Step by Step Solution
3.36 Rating (159 Votes )
There are 3 Steps involved in it
The problem youre describing belongs to the domain of combinatorial optimization Luckily it can be a... View full answer
Get step-by-step solutions from verified subject matter experts
