Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Pattern:how to transform this table?' topicStudent Support Forum > General > Archives > "Pattern:how to transform this table?"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Pattern:how to transform this table?')
Author Date Posted
Pattern:how to transform this table? Morgan 01/17/04 5:30pm
Re: Pattern:how to transform this table? Henry Lamb 01/19/04 04:03am
Re: Pattern:how to transform this table? Robert 01/19/04 11:57am
Next Comment >Help | Reply To Topic