Question #148108
Let S be a finite set, with |S|=n. If the bit matrix MR representing R contains exactly r entries that are 0, how many entries of MRbar are 0?

Note: "MRbar" is supposed to be just like MR, which you should know has R as a subscript, but with a bar over R. Just in case that got confusing.
1
Expert's answer
2020-12-10T20:04:26-0500

If RR  is a binary relation on a set SS, then RR  can be represented by the logical matrix MRM_R  whose row and column indices index the elements of SS, such that the entries of MRM_R  are defined by:

mi,j={1(xi,yj)R0(xi,yj)∉R{\displaystyle m_{i,j}={\begin{cases}1&(x_{i},y_{j})\in R\\0&(x_{i},y_{j})\not \in R\end{cases}}}

Let S=n|S|=n. If RR is a binary relation on a set SS , then Rˉ={(x,y)S×S  (x,y)R}\bar{R}=\{(x,y)\in S\times S\ |\ (x,y)\notin R\}.


It follows from defenition of Rˉ\bar{R} that mˉi,j={0(xi,yj)R1(xi,yj)∉R{\displaystyle \bar{m}_{i,j}={\begin{cases}0&(x_{i},y_{j})\in R\\1&(x_{i},y_{j})\not \in R\end{cases}}} .  If the bit matrix MRM_R representing RR contains exactly rr entries that are 0, then R=r|R|=r. Since Rˉ=(S×S)R=n2r|\bar{R}|=|(S\times S)\setminus R|=n^2-r, we conclude that the bit matrix MRˉM_{\bar{R}} representing Rˉ\bar{R} contains exactly n2rn^2-r entries that are 0.



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS