in reply to Re: perl array matrix
in thread perl array matrix

Hi ; Je suis Charlie. : This is due to the "2,7,12,16" and "2,4,7,12" numbers are nearby each others . and the others are not. in term of matrix x and y position.

Replies are listed 'Best First'.
Re^3: perl array matrix
by Corion (Patriarch) on Apr 12, 2015 at 12:01 UTC

    Maybe it would help if you define the distance function for your matrix and tell us that function?

      it is something like word search puzzle games . but word search puzzle ONLY return horizontal,vertical + X direction . I need to see Y , Z , L or zigzag directional as well.

        Maybe you can then explain to us what "nearby" means? Maybe show a concrete example and explain why one set is "nearby" and another, very similar set is not "nearby"?

        Just telling us "word puzzle" does not help. There are many types of word puzzles and your numbers don't explain at all how they relate to word puzzles.