Hello there guys, I have finally come up with a rough draft of my Binary Tree program. Could you please try it and comment it?
Your suggestions are welcome. OH... And don't worry, I added the Source Code if you want to compile and run it rather than running the exe file.
Things provided in this Program:
1.- Node Structure
2.- Binary Tree Structure
3.- Adding Nodes to the Tree
4.- Searching Nodes to the Tree
5.- Erasing Nodes of the Tree
6.- Balancing the Tree
-> a) Most-Left Rotation
-> b) Most-Right Rotation
-> c) RR
-> d) LL
-> e) RL
-> f) LR
7.- Graphing the Tree
8.- Calculate Level, Left Height, Right Height, etc. Of a Node
9.- Showing Node Statistics by clicking on it (Also moving the mouser over will trigger a tooltip showing them)
10.- InOrder, PreOrder, PostOrder code supporting a call to other procedure
New Characteristics (In the new version): 1.- Search Engine Added
2.- You can enter the number inside the node to erase it
3.- Some Resizing Bugs fixed (Well, the code for resizing was not my priority before, but it seems to be popular... )
4.- It won't let you resize the form to be less than a certain amount in Width and Height (Yet it blinks, I wonder why, Still Blinking)
5.- First Erase Bug fix
6.- Tab Indexes corrected
7.- Scrolling Bar Issue corrected (It used to overlap)
8.- Letting clear the Tree (I forgot to add "CG = 0")
9.- Auto-Selects the Text of the Search and Erase
10.- Clears All Text boxes when clearing the Tree
Remember "Gosh, are you really a programmer?" is the worst grade you can give it.
Binary Tree's Program: (Updated Version)
Last edited by Tec-Nico; Nov 4th, 2002 at 07:08 PM.
We miss you, friend... Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico