Thursday, November 6, 2008

creating a red black tree

what you shall encounter right now is the report im probably going to be turning in on monday as part of my programming assignment....the assignment is to create an implementation of a red black tree...
as most of you probably guessed I have other things on my mind which are quite more important than creating red black trees...if someone came up to me and informed me of the fact that the world was going to end in another hour, day, week or month I can think of a gazillion other things I would rather do than go about creating red black trees....and besides I myself am partial to the green ones that the gods have already created for us..leave it to a software engineer to go and try to outengineer the creators of the universe..
I am ashamed to admit that I have failed to create the required red black tree.. however I shall explain as to why I was not able to acheive the required objective.
I asked around in all the nearby shops, and even did an extensive search of the internet...no one stocks red black tree seeds, I wont say that the journey was entirely wasted, I learned a lot of interesting things about trees, mainly connected with what a guy and a girl could do given a tree and a reasonable amount of privacy...fascinating reading..
so then I figured maybe a red black tree was not created from the ground up, but maybe it was the result of an ordinary tree's transformation.. what followed were cruel and sadistic experiments on all the trees in my neighborhood, i tried everythin, trash talkin to it...swearin at it..insulting its tree ancestors (i hated myself for that by the way)...kicking it (physical therapys been goin ok..)..punching it (boxing gloves saved my hands from becoming pulp)..and then I started with the chemical warfare..pouring this and that on it..the trees turned...green went to brown, and then varying degrees of brown, and so on....but never a hint of red or black..darn it..!!
the closest I ever came was when I threw some of the lunch my roomate cooked onto it...the real deep brown tree seemed to contemplate for a moment the meaning of existence, and time, and life in the way only a tree can..it sighed, it shuddered, it shivered, it belched, farted and keeled over and crashed into the ground.. and yes, I did send samples of that meal to the forsenics people..it had enough poison to kill a blue whale.. oh dont worry about payback, its gonna happen as soon as my "BOOM!! blow it up yourself..!! for dummies aka beginners" package comes in..
so to conclude I realized that creating a tree which is red and black is impossible, unless one paints it...oh my god....thats the frikkin secret...I have found the path....happy day..!! 
will write report of how painting job goes, and will also include gps coordinates of where resultant tree/work of art can be found..im so gonna ace this assignment...wonder what im supposed to program though....mebbe my teevo at home....

runs off to hardware store, all the surviving trees in neighborhood let out enormous sighs/burps/farts....and then return to doing tree-like things

magus..!!

No comments: