ZC-App AVL 0.6

Programming, for all ages and all languages.
User avatar
elderK
Member
Member
Posts: 190
Joined: Mon Dec 11, 2006 10:54 am
Location: Dunedin, New Zealand
Contact:

Post by elderK »

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.
User avatar
B.E
Member
Member
Posts: 275
Joined: Sat Oct 21, 2006 5:29 pm
Location: Brisbane Australia
Contact:

Post by B.E »

Sorry. I was looking for a way to get it to rotate incorrectly. anyway,
Image
Microsoft: "let everyone run after us. We'll just INNOV~1"
User avatar
elderK
Member
Member
Posts: 190
Joined: Mon Dec 11, 2006 10:54 am
Location: Dunedin, New Zealand
Contact:

Post by elderK »

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... :P

Thanks for the warning though, B.E :) If you find other ways to crash the heck out of it, Itd be appreciated.

~zeii.
User avatar
elderK
Member
Member
Posts: 190
Joined: Mon Dec 11, 2006 10:54 am
Location: Dunedin, New Zealand
Contact:

Post by elderK »

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 :P)

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.
Post Reply