Re: adjusting an image



David Epstein <dbae@xxxxxxxxxxxxxxxxxxx> wrote:

Let A be a matrix of zeros and ones. We imagine A to be extended in all
directions by zeros, so we don't need to worry about edge effects. For
each entry x of A, we look at a 3x3 window centred at x, see whether
zeros or ones predominate, and replace x by whichever entry
predominates.

I'm assuming that the replacement is done simultaneously for all points;
otherwise the result depends on the order in which the changes are made.

Since the situation is finite, the procedure must terminate in a finite
cycle. My question is: does it always terminate in a cycle of length
one (that is, no change)?

No. It can result in a cycle of length 2:

.oo...... .oo......
oooo..... oooo.....
oooo..... oooo.....
.ooo..... .oooo....
...ooo... <--> ....o....
.....ooo. ....oooo.
.....oooo .....oooo
.....oooo .....oooo
......oo. ......oo.

(Here 'o'=1 and '.'=0.)

I don't know if other periods are possible.

Meta questions: is this sort of question more appropriate to some
specialized mathematical newsgroup?

Try comp.theory.cell-automata. You're asking about periodic patterns in
the cellular automaton with the Conway neighborhood and the totalistic
rule B5678/S45678.

Dean Hickerson
dean@xxxxxxxxxxxxxxxx

.



Relevant Pages

  • demo: huge number calculator and library
    ... Executed from the command line, it prompts for a formula, calculates ... move zeros to a, b, c ... entry 'CALCADD' using a, b, c. ...
    (comp.lang.cobol)
  • Re: Listview and threaded filecopy
    ... why pass it another entry? ... cycle through the list and perform the file copy. ... the destination) and then pass that as your thread routine. ... Then, in CopyFolders, enumerate through the keys, and get the values, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Add leading zeros fill space
    ... range has text in the format of 6 characters albeit they look like ... numbers with leading zeros eg. '000100. ... could check the length of their entry, I could fill with leading zeros to ... Any pointers of sample code would be appreciated. ...
    (microsoft.public.excel.programming)
  • Re: Add leading zeros fill space
    ... range has text in the format of 6 characters albeit they look like numbers ... with leading zeros eg. '000100. ... The entry that I enter if '000100 returns ... Any pointers of sample code would be appreciated. ...
    (microsoft.public.excel.programming)
  • Re: pivot = leading entry
    ... She even says "pivot, or leading entry ... entries below it in the column. ... automatically with zeros below it (thus not needing to use this leading ...
    (sci.math)