The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 6 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
6.13Â Â Â Â Â Â Â Each deleteMin operation uses 2 log N comparisons in the worst case.
* a. Propose a scheme so that the deleteMin operation uses only log N + log log N +
O(1) comparisons between elements. This need not imply less data movement.
** b. Extend your scheme in part (a) so that only log N + log log log N + O(1) comparisons are performed.
** c. How far can you take this idea?
d. Do the savings in comparisons compensate for the increased complexity of your algorithm?
6.14Â Â Â Â Â Â Â If a d-heap is stored as an array, for an entry located in position i, where are the parents and children?
Â
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------