//buddy allocator
// allocated to Vamsi Krishna
//

class BuddyMemory {

 public: 
	void initialize (int k); // initializes free memory of size 2^k e.g. k may be 10.

	int alloc (int m);   // ask for free block of size 2^m 

		// return start address if successfull else return -1

	int dealloc (int address, int size); // returns 1 if successful else 0 

	void dump ();  //dumps the current status of the system on screen

};


