Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: How to get this not the usual round robin looping

by Anonymous Monk
on Oct 13, 2015 at 06:56 UTC ( [id://1144626]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to get this not the usual round robin looping
in thread How to get this not the usual round robin looping

This is good, but can be considerably simplified:  H1 => [1, 10, 11, 20, 21],

hmm, OP has  H1-> 1,8,9

Weird question :)( i need this sequence ... imagine the equation which I won't tell you )

Replies are listed 'Best First'.
Re^4: How to get this not the usual round robin looping
by Athanasius (Archbishop) on Oct 13, 2015 at 07:15 UTC
    hmm, OP has H1-> 1,8,9

    My reply was addressed to kcott, not the OP, and so I used kcott’s dataset.

    imagine the equation which I won't tell you

    I thought the same at first, but if you lay out the sequence, the pattern becomes obvious when you read vertically:

    { H1 => [1, 8, 9], H2 => [2, 7, 10], H3 => [3, 6], H4 => [4, 5] }

    Discipulus, in the Chatterbox, identified it as an example of Boustrophedon, which seems like a pretty good description. :-)

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

      Ah, see that is the kind of crucial detail the homework would have specified .... my version came out like :)
      { H1 => [1, 8, 9], H2 => [2, 7, 10], H3 => [3, 6, 11], H4 => [4, 5, 12], H5 => [13, 20, 21], }
Re^4: How to get this not the usual round robin looping
by dsheroh (Monsignor) on Oct 13, 2015 at 07:07 UTC
    The difference is because the OP only had H1-H4, while the post with the simplified version added an H5, making the loop longer.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1144626]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found