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

1 Expert Approved Answer
Step: 1 Unlock

The problem youre describing belongs to the domain of combinatorial optimization Luckily it can be a... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related A First Course In Mathematical Modeling Questions!