1 generalize the preceding exercise to obtain anbspk-d


1. Generalize the preceding exercise to obtain a k-d heap, in which each item can have individual keys. You should be able to obtain the following bounds: insert in O(log N), deleteMin in O(2log N), and buildHeap in O(kN).

2. Show that the k-d heap can be used to implement a double-ended priority queue.

3. Abstractly, generalize the k-d heap so that only levels that branch on key #1 have two children (all others have one).

a. Do we need pointers?

b. Clearly, the basic algorithms still work; what are the new time bounds?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: 1 generalize the preceding exercise to obtain anbspk-d
Reference No:- TGS01274810

Expected delivery within 24 Hours