[algogeeks] Re: birthday panga

2009-08-29 Thread ankur aggarwal
@shyam hmm gud try.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to

[algogeeks] Re: N-Ary Tree and Resource management

2009-08-29 Thread priya k
// Data Structure for the n-ary tree struct node { int data; node * child[m]; bool lockFlag; // Indicates if a node is locked or not node *parent; //Holds the immediate parent of the node int LockCount; //Holds how many nodes arrested this node }; // Takes logm(N) in the worst