• edited by
18,557 views
64 64 votes

In an $M \times N$ matrix all non-zero entries are covered in $a$ rows and $b$ columns. Then the maximum number of non-zero entries, such that no two are on the same row or column, is

  1. $\leq a +b$
  2. $\leq \max(a, b)$
  3. $\leq \min(M-a, N-b)$
  4. $\leq \min(a, b)$

7 Answers

Best answer
40 40 votes

maximum number of non-zero entries, such that no two are on the same row or column

Any entry will be a member of some row and some column. So, with $a$ rows we can have maximum $a$ elements such that no row has a repeated element. Same is applicable for $b$ columns also. So, combining both, answer should be $\leq \min(a,b)$. 

We can also apply pigeonhole principle here. Let $p = \min(a,b)$ be the number of holes. So, we can place up to $p$ non-zero entries (pigeons) and as soon as $(p+1)^{th}$ entry comes it must be making two entries in some column or row. 

Correct Answer: $D$

• edited by
33 33 votes

Suppose a < b, for example let a = 3, b= 5, then we can put non-zero entries only in 3 rows and 5 columns. So suppose we put non-zero entries in any 3 rows in 3 different columns. Now we can't put any other non-zero entry anywhere in matrix, because if we put it in some other row, then we will have 4 rows containing non-zeros, if we put it in one of those 3 rows, then we will have more than one non-zero entry in one row, which is not allowed. So we can fill only "a" non-zero entries if a < b, similarly if b < a, we can put only "b" non-zero entries. So answer is ≤min(a,b), because whatever is less between a and b, we can put atmost that many non-zero entries. So option (D) is correct. 

8 8 votes
- Question is asking for maximum number of elements which are neither in the same row or same column.

In an ideal case such elements are always present on diagonals i.e. no diagonal elements have same row or same column. ( Different permutations of the same matrix will have different positions in the matrix )

and number of diagonal elements depend upon min (number of rows, number of columns)

so, Answer – D

The best way i think to solve such questions are by assuming a sample matrix.
1 1 vote

In a M×N matrix all non zero entries are covered in a rows and b columns , the rest ( M-a rows , N-b columns ) have zero entries. Then the maximum number of non zero entries such that no two are in same row/ column can be found out from the following cases 

Case 1 : a> b . No of non zero rows > non of no zero columns in this case you can have only 1 entry per a no of rows and 1 entry per b number of columns . But since a > b you are bound to have atleast 2 non zero entries in the same column. ( Visualise matrix 3×2 ) . So in this case , one row will become zero . So in this case max entries can be b only 

Case 2 : a<b . For similar reasons as above , opposite variable one column will become zero . So b cannot be greater than a . So in this case max entries can be a only 

Case 3 : a=b . Now this can be easy . Think of simple row echelon form matrix . Now we can say max no of non zero entries can be a/b 

Then max entries <= min(a,b) .  Option D  .we cannot have max entries <=min( M-a , N-b) because it will refer to rows and columns other than a and b which may or may not be equal to a and b  .

Answer:
Position:
Show:

Related questions

53 53 votes
7 answers 7 answers
18.5k
18.5k views
Kathleen asked Sep 18, 2014
18,475 views
Let $A, B, C, D$ be $n \times n$ matrices, each with non-zero determinant. If $ABCD = I$, then $B^{-1}$ is $D^{-1}C^{-1}A^{-1}$ $CDA$ $ADC$ Does not necessarily e...
38 38 votes
10 answers 10 answers
21.2k
21.2k views
Kathleen asked Sep 18, 2014
21,239 views
The number of different $n \times n $ symmetric matrices with each element being either 0 or 1 is: (Note: $\text{power} \left(2, X\right)$ is same as $2^X$)$\text{power} ...
42 42 votes
7 answers 7 answers
16.3k
16.3k views
Kathleen asked Sep 18, 2014
16,342 views
How many solutions does the following system of linear equations have?$-x + 5y = -1$$x - y = 2$$x + 3y = 3$infinitely manytwo distinct solutionsuniquenone
27 27 votes
5 answers 5 answers
8.4k
8.4k views
Ishrat Jahan asked Nov 2, 2014
8,360 views
If matrix $X = \begin{bmatrix} a & 1 \\ -a^2+a-1 & 1-a \end{bmatrix}$ and $X^2 - X + I = O$ ($I$ is the identity matrix and $O$ is the zero matrix), then the inverse of ...