| Author |
Comment/Response |
Morgan
|
01/17/04 5:30pm
i have this k*k table randomly manipulated with 1 and 0 (eg.k=5):
{{d, 1, 0, 0, 0},
{0, 1, 1, 0, 0},
{0, 0, 0, 1, 1},
{d, 1, 0, 0, 0},
{0, 1, 0, 0, 1}}
the '1's NEXT to,ABOVE or BELOW 'd' become 'd'; the '0's remain unchanged. so eventually, the table reads:
{{d, d, 0, 0, 0},
{0, d, d, 0, 0},
{0, 0, 0, 1, 1},
{d, d, 0, 0, 0},
{0, d, 0, 0, 1}}
(the last 2 elements in the third row and the last element in the last row remain unchanged because there is no 'd' near them.)
can anyone tell me how to write this transformation, pls pls pls~~~?
URL: , |
|