in reply to Re: How many triangles does your perl script "see"?
in thread How many triangles does your perl script "see"?

Actually the latter case can not be logically resolved, as the number of triangles not only depends on the linkage, but also the geo-location of each point (things like what if three points are located on one straight line etc.)

In the latter case, the question needs to be changed to something like "what is the maximum number of triangles can be formed" or something similar.

  • Comment on Re^2: How many triangles does your perl script "see"?

Replies are listed 'Best First'.
Re^3: How many triangles does your perl script "see"?
by Perl Mouse (Chaplain) on Oct 27, 2005 at 15:32 UTC
    Actually the latter case can not be logically resolved, as the number of triangles not only depends on the linkage, but also the geo-location of each point (things like what if three points are located on one straight line etc.)
    That's what I wrote, wasn't it? Three co-linear points form a trivial 3-cycle. And we want to avoid those.
    Perl --((8:>*