Write a computer program that takes integers m, n, r i for 1 i m

Question:

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).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

A First Course In Mathematical Modeling

ISBN: 9781285050904

5th Edition

Authors: Frank R. Giordano, William P. Fox, Steven B. Horton

Question Posted: