Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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.
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
      princepawn

      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?
      Chebby
        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

      here
      http://pages.poly.edu/~ygelfa01/stuff/DTL/

      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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-09-23 16:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (229 votes), past polls