Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Cartesian Cross Product Module? Prelude to Decision Trees.

by princepawn (Parson)
on May 16, 2001 at 04:40 UTC ( #80761=perlmeditation: print w/ replies, xml ) Need Help??

I want a module that takes two arrays and returns an array ref to their cartesian cross product.

Such a module is prerequisite for a module I want to write to allow for definitional specification of Decision Trees in Perl.

Comment on Cartesian Cross Product Module? Prelude to Decision Trees.
Replies are listed 'Best First'.
Re: Cartesian Cross Product Module? Prelude to Decision Trees.
by athomason (Curate) on May 16, 2001 at 04:56 UTC
    It looks like japhy has done something along those lines: Cartesian Cross-Products. You could've saved some time with a Super Search on "cartesian cross".

    And though this is falling on deaf ears for certain, "I want..." isn't a question. Monks aren't here to do your dirty work for you when you're more interested in another issue. Newbies are routinely encouraged to try a problem themselves before posting about it... I would certainly expect a veteran to do the same.

Re: Cartesian Cross Product Module? Prelude to Decision Trees.
by runrig (Abbot) on May 16, 2001 at 04:58 UTC

      just give me credit if u gonna use on an open source
      project, or something, k?
      The algorithm is from "Artificial Intelligence A modern
      approach" by Stuart Russull and Peter Norvig

      fuzzy animals unite!!! Cheb

      I want to ask you something. For what purpose are you writing Decision trees? The reason I ask is that I actually wrote a perl Decision tree implementation for the AI assignment in Brooklyn Poly. You wouln't happen to be in the same class as I am in?
        No, I am thrice-graduated and never to return to the halls of academia until it becomes as lucrative as my professional Perl programming career.

        Decision trees allow one to move decision policy out of a nest of if-thens and into an easy-to-follow table.

        Could you email me your code and provide a book reference for it: PrincePawn@Yahoo.COM

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://80761]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2015-11-25 18:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (685 votes), past polls