Connecting Tech Pros Worldwide Help | Site Map

Build a tree in perl

Newbie
 
Join Date: Dec 2007
Posts: 1
#1: Dec 23 '07
Hi, all
I want written a tree but not binarry tree (ternay tree). and get all values of tree. Example i have 3 node and values of each node following:
1
1, 0, x
v,x
Number values of each node must is: 1 or 0 or x, v or x
Diagram of tree:
1
1 0 x
v x v x v x
and get all values of tree, which have:
1 - 1 - v
1 - 1 - x
1 - 0 - v
1 - 0 - x
1 - x -v
1 - x - x
Please help me?
eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 900
#2: Dec 23 '07

re: Build a tree in perl


Please read Guidelines To Ensuring Better Answers and Assistance To Your Thread(s)

--Kevin
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#3: Dec 23 '07

re: Build a tree in perl


The List::Permutor module could be used for what you are trying to do.

http://search.cpan.org/~phoenix/List...22/Permutor.pm

But we need to see some effort on your part before helping you with any code.
Reply