Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

binary trees

Status
Not open for further replies.

nurbs

Programmer
May 14, 2001
1
GB
hey all,
is it posible to create binary trees in perl?
Found many c tutorials but nothing covering binary trees in perl.

point me in the right direction => i.ll get me coat
cheers

 
'course it is. go to cpan, look for 'tree'. skip past the 'Btree', that's not what you're looking for. in fact, go way down to Tree::MultiNode, and the other one's that are around there. these'll do fairly well, although i didn't see just a plain and simple binary tree (but how wants plain anyway?). and remember, you can do anything computably possible on a turing machine ^_^ "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
If you want to try to code your own binary tree read the manual pages on references (perlref) and data structures cookbook (perldsc). References are definitely the way to handle it. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top