Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Find out about Online Training
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 11 Professional
Maple 11 Academic
Maple 11 Student Use
Recorded Online Seminars
FREE Training Resources


MapleNet
Maple T.A.
MapleConnect
BlockImporter for Simulink
BlockBuilder for Simulink
Maple Toolboxes
Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

View Maple 10 in Action
Product Comparison Chart

Latest Information

New Features: Professional
New Features: Academic
The Maple Reporter
The Maple Reporter Online
Numerical Algorithms Group
(NAG)


Service & Support

Maple 10 Training Videos
MaplePrimes, blogs, forums
Elite Maintenance Program
Application Centre
Powertools
Maple User Group (MUG)
Join the Maple User Group
(MUG)

Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] Binary Tree Data Structure

Search email archive for  

[MUG] Binary Tree Data Structure
Author: Bruno Guerrieri    Posted: Mon, 3 Feb 2003 17:52:58 -0500

>> From: "Bruno Guerrieri" "bruno.guerrieri"

Dear MUG

I am trying to use Maple to set up binary trees and work with them. Is =
there a person in the community who has already written the standard =
procedures for insertion, deletion of nodes etc.. and would not mind =
sharing?

In addition, although I do not want to go the route of C, C++, etc, the =
concept of pointer is especially useful when dealing with trees. Since =
speed is not paramount to what I am doing, is there a "construct", (be =
it artificial and to be refined in future versions), a definition-like =
"thing" that someone could set up at the beginning of the worksheet that =
would allow one to almost translate word for word certain C procedures =
such as node deletion in a tree, exploiting the recursive nature of the =
situation.=20
The construct would, of course, be the equivalent of the pointer concept =
p->left or p->right as one can see in the following example:

Here is an example of a C procedure
void printtree(node *p)
{ if (p !=3D NULL)
{ printtree(p->left);
printf(........,p->count, p->pword);
printtree(p->right);
}
}

I tried the network package to plot some binary trees and that was like =
to trying to ride a wild bronco.

Sincerely,

Bruno Guerrieri

Previous by date: [MUG] maple printing question,  Clearthink
Next by date: [MUG] FuzzySets package, Douglas Wilhelm Harder
Previous thread: [MUG] How to control colors in plot3d (option shading), Erik Leunissen
Next thread: [MUG] FuzzySets package, Douglas Wilhelm Harder



Ready to buy?

Maple - single user licence
Add to shopping basket
$ 1,895.00
Upgrade to Maple 12 from v11
Add to shopping basket
$ 995.00
Upgrade to Maple 12 from v10 & below
Add to shopping basket
$ 1,395.00

Featured Downloads

Maple White Paper: Technical Knowledge - An Asset You Can Afford to Lose?
Maple in Electronics Application Pack
Maple in Robotics & Aerospace Application Pack
Maple in Finance Application Pack

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055