Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #50919

Re: Rosetta Code: Zig-zag matrix

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.forth
Subject Re: Rosetta Code: Zig-zag matrix
Date Mon, 12 Sep 2016 14:15:33 -0700
Organization A noiseless patient Spider
Lines 14
Message-ID <87poo8g6q2.fsf@jester.gateway.pace.com> (permalink)
References <nr558f$3l8$1@dont-email.me> <87oa3thfmd.fsf@jester.gateway.pace.com> <nr64qr$jbm$1@cherry.spenarnc.xs4all.nl> <87y42wg9mn.fsf@jester.gateway.pace.com> <nr73ne$n1g$1@cherry.spenarnc.xs4all.nl>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="590ea01354cf4bcbcd857d7ebbd88128"; logging-data="6012"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KLFkDiri7/U3LWUDrv4WT"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:o6yiMDTOUGMS/v+C7gDDqESxBwI= sha1:V3JSKy1oSQ+xsYeogOkwk+1inRU=
Xref csiph.com comp.lang.forth:50919

Show key headers only | View raw


albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) writes:
> I don't want to see WJ's code, but I can't appreciate your code
> unless I know what problem is supposedly solved.

If you look at that matrix, the upper left entry is 0, then 1 is
adjacent to it, then 2 is diagonally adjacent to the 1, and if you
follow the path through 3,4,...143 it takes a zig-zag pattern through
the 12x12 square.  Not exactly a thesis project.  

Also, it's a Rosetta problem: http://rosettacode.org/wiki/Zig-zag_matrix

and it looks like someone has already put a Forth solution there.

It would be nice if the Rosetta tasks were numbered like Euler problems.

Back to comp.lang.forth | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Rosetta Code: Zig-zag matrix "WJ" <w_a_x_man@yahoo.com> - 2016-09-12 02:52 +0000
  Re: Rosetta Code: Zig-zag matrix Paul Rubin <no.email@nospam.invalid> - 2016-09-11 22:05 -0700
    Re: Rosetta Code: Zig-zag matrix albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-09-12 13:50 +0200
      Re: Rosetta Code: Zig-zag matrix Paul Rubin <no.email@nospam.invalid> - 2016-09-12 13:12 -0700
        Re: Rosetta Code: Zig-zag matrix albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-09-12 22:38 +0200
          Re: Rosetta Code: Zig-zag matrix Paul Rubin <no.email@nospam.invalid> - 2016-09-12 14:15 -0700

csiph-web