i want to know how buddy heap algo works or what datastructure is being used in it .
+3
A:
I'm guessing you're thinking of buddy memory allocation? There's the link to the Wikipedia page. It does mention:
Typically the buddy memory allocation system is implemented with the use of a binary tree to represent used or unused split memory blocks.
If you have difficulty understanding the Wikipedia entry, can you perhaps update your question to state more specifically what part you're having problems with?
Curt Sampson
2009-05-21 07:39:58