darij grinberg wrote:
Sorry, I really don't follow.
Sorry, I'm not able to express it too well
We need to find the values of matrix $A$. We have defined the elements of $A$ in such a way that $x_i$'s and $y_i$'s value doesn't matter only their relative value matters, i.e which is greater.
Sum of each row means number of values of $y_i$'s greater than that particular $x_j$.
We'll take an example:
Suppose $n = 3$, sum of row$_1 = 2$, sum of row$_2 = 3$, sum of row$_3 = 3$, sum of column$_1 = 3$, sum of column$_2 = 3$, sum of column$_3= 2$.
We'll try to find the values of matrix $A$ with this information.
[asy][asy]
/* Geogebra to Asymptote conversion, documentation at artofproblemsolving.com/Wiki, go to User:Azjps/geogebra */
import graph; size(4cm);
real labelscalefactor = 0.5; /* changes label-to-point distance */
pen dps = linewidth(0.7) + fontsize(10); defaultpen(dps); /* default pen style */
pen dotstyle = black; /* point style */
real xmin = -5.664651162790702, xmax = 17.033023255813966, ymin = -6.063255813953488, ymax = 6.141395348837212; /* image dimensions */
/* draw figures */
/* dots and labels */
dot((0.,0.),linewidth(4.pt) + dotstyle);
dot((3.,0.),dotstyle);
dot((5.,0.),dotstyle);
clip((xmin,ymin)--(xmin,ymax)--(xmax,ymax)--(xmax,ymin)--cycle);
/* end of picture */
[/asy][/asy]
Sum of row$_1 = 2$ means $x_1$ is less than one ($3-2 = 1$) $y_i$.
[asy][asy]
import graph; size(4cm);
real labelscalefactor = 0.5; /* changes label-to-point distance */
pen dps = linewidth(0.7) + fontsize(10); defaultpen(dps); /* default pen style */
pen dotstyle = black; /* point style */
real xmin = -5.664651162790702, xmax = 17.033023255813966, ymin = -6.063255813953488, ymax = 6.141395348837212; /* image dimensions */
pair A = (0.,0.), B = (3.,0.), C = (5.,0.), x_1 = (3.7493023255813975,0.);
/* draw figures */
/* dots and labels */
dot(A,linewidth(4.pt) + dotstyle);
dot(B,dotstyle);
dot(C,dotstyle);
dot(x_1,dotstyle);
label("$x_1$", (3.8237209302325605,0.1879069767441865), NE * labelscalefactor);
clip((xmin,ymin)--(xmin,ymax)--(xmax,ymax)--(xmax,ymin)--cycle);
/* end of picture */
[/asy][/asy]
Sum of row$_2 = 3$ means $x_2$ is less than zero ($3-3 = 0$) $y_i$.
[asy][asy]
/* Geogebra to Asymptote conversion, documentation at artofproblemsolving.com/Wiki, go to User:Azjps/geogebra */
import graph; size(4cm);
real labelscalefactor = 0.5; /* changes label-to-point distance */
pen dps = linewidth(0.7) + fontsize(10); defaultpen(dps); /* default pen style */
pen dotstyle = black; /* point style */
real xmin = -5.664651162790702, xmax = 17.033023255813966, ymin = -6.063255813953488, ymax = 6.141395348837212; /* image dimensions */
pair A = (0.,0.), B = (3.,0.), C = (5.,0.), x_1 = (3.7493023255813975,0.), x_2 = (5.795813953488376,0.);
/* draw figures */
/* dots and labels */
dot(A,linewidth(4.pt) + dotstyle);
dot(B,dotstyle);
dot(C,dotstyle);
dot(x_1,dotstyle);
label("$x_1$", (3.8237209302325605,0.1879069767441865), NE * labelscalefactor);
dot(x_2,dotstyle);
label("$x_2$", (5.870232558139539,0.1879069767441865), NE * labelscalefactor);
clip((xmin,ymin)--(xmin,ymax)--(xmax,ymax)--(xmax,ymin)--cycle);
/* end of picture */
[/asy][/asy]
Repeating this for columns gives:
[asy][asy]
/* Geogebra to Asymptote conversion, documentation at artofproblemsolving.com/Wiki, go to User:Azjps/geogebra */
import graph; size(4cm);
real labelscalefactor = 0.5; /* changes label-to-point distance */
pen dps = linewidth(0.7) + fontsize(10); defaultpen(dps); /* default pen style */
pen dotstyle = black; /* point style */
real xmin = -5.664651162790702, xmax = 17.033023255813966, ymin = -6.063255813953488, ymax = 6.141395348837212; /* image dimensions */
pair y_1 = (0.,0.), y_2 = (3.,0.), y_3 = (5.,0.), x_1 = (3.7493023255813975,0.), x_2 = (5.795813953488376,0.), x_3 = (6.744651162790702,0.);
/* draw figures */
/* dots and labels */
dot(y_1,linewidth(4.pt) + dotstyle);
label("$y_1$", (0.06558139534883684,0.1506976744186051), NE * labelscalefactor);
dot(y_2,dotstyle);
label("$y_2$", (3.079534883720932,0.1879069767441865), NE * labelscalefactor);
dot(y_3,dotstyle);
label("$y_3$", (5.070232558139538,0.1879069767441865), NE * labelscalefactor);
dot(x_1,dotstyle);
label("$x_1$", (3.8237209302325605,0.1879069767441865), NE * labelscalefactor);
dot(x_2,dotstyle);
label("$x_2$", (5.870232558139539,0.1879069767441865), NE * labelscalefactor);
dot(x_3,dotstyle);
label("$x_3$", (6.819069767441865,0.1879069767441865), NE * labelscalefactor);
clip((xmin,ymin)--(xmin,ymax)--(xmax,ymax)--(xmax,ymin)--cycle);
/* end of picture */
[/asy][/asy]
This gives the matrix \[\begin{bmatrix}
1 & 1 & 0\\
1 & 1 & 1\\
1& 1 & 1
\end{bmatrix}\]
Was this kinda clear?