In this task, each item has a two-dimensional value. Let element i have value c [i] = <a, b> where a is the value of gold coins and b is the value of silver coins.
Now the elements can be partially ordered so that the element i is βno more expensiveβ than the element j if
c[i] = <a, b> c[j] = <a', b'> and a <= a' AND b <= b'
, . < 1, 2 > < 2, 1 > ; , .
, , " " , , (, ) .
,
<1, 1>
<2, 1>
<1, 2>
<3, 3>
:
<1, 1>
/ \
<2, 1> <1, 2>
\ /
<3, 3>
( ). < 1, 1 > . < 2, 1 > < 1, 2 > . < 2, 1 > , < 1, 2 > , , (< 3, 3 > ).
. < 2, 1 > , < 1, 2 > , < 3, 0 > = 4, = 2, < 1, 2 > <, 3, 0 > , < 2, 1 > , ( < 2, 1 > , ).
, . , .