Well, No... it shouldnt.
Why do you think it should core dump?
a) It accounts for the Tree being null. Thats no problem.
b) It is the only node in the Tree, Its insertion completely sidesteps the usual insertion routine (which accounts for balances, etc).
c) Why in gods name would you do that?
~zeii.
ZC-App AVL 0.6
That being said, Insertion into the Tree - after doing that, will cause a lot of hell. It shouldn't crash, but it will most definately not be balanced correctly.
Messed up balances leads to the Dark side of the source...
Thanks for the warning though, B.E If you find other ways to crash the heck out of it, Itd be appreciated.
~zeii.
Messed up balances leads to the Dark side of the source...
Thanks for the warning though, B.E If you find other ways to crash the heck out of it, Itd be appreciated.
~zeii.
Alrighty, Ive got a minimalistic site setup.
Its meant to be supercorny / mock-horror.
Anyways, The library so far, is simply called "Portable ADT Library".
(Might codename it Molecule )
Anywho, When it has a basic page up for it, I will continue to post the 'latest' sources for the library, as it evolves.
http://www.node-networks.net/~zit
~zeii.
Its meant to be supercorny / mock-horror.
Anyways, The library so far, is simply called "Portable ADT Library".
(Might codename it Molecule )
Anywho, When it has a basic page up for it, I will continue to post the 'latest' sources for the library, as it evolves.
http://www.node-networks.net/~zit
~zeii.