Suppose that we are looking for an $m\times n$ matrix that contains only zeros and ones and that we desire certain numbers of ones for each row and each column: $x_i$ ones for row $i$ and $y_j$ ones for column $j$.
How many matrices are there that respect those conditions ? Optionally, how can one efficiently find them ?
This seems connected to Gale–Ryser theorem and bipartite realization problem (https://en.wikipedia.org/wiki/Bipartite_realization_problem) as user antkam pointed out.
Related question: Number of $(0,1)$ $m \times n$ matrices with exactly $k$ ones and no row or column contains only zeros
Related article: https://www.sciencedirect.com/science/article/pii/S0012365X08003981