Recall that a skiplist stores elements in a sequence of smaller and smaller lists Lo, ..., Lh. The list L, is obtained from Lp-1 by tossing a fair coin for each element in Lr-1 and including the...


Recall that a skiplist stores elements in a sequence of smaller and smaller lists<br>Lo, ..., Lh. The list L, is obtained from Lp-1 by tossing a fair coin for each<br>element in Lr-1 and including the element in L, if that coin comes up heads.<br>In this way, tossing a coin and counting how many times it comes up heads<br>before the first tail is equal to the height of an element x.<br>Suppose instead of a fair coin (a coin in which heads and tails are equally likely at<br>1/2-1/2), we instead have a biased coin that comes up heads 1/3 of the time and tails<br>2/3 of the time. With this new coin, which of the following is expected?<br>The expected height of an element x would increase.<br>) The expected height of an element x would decrease.<br>The expected length of the search path to x would increase.<br>) The expected length of the search path to x would decrease.<br>both a. and d.<br>both b. and c.<br>None of the above.<br>

Extracted text: Recall that a skiplist stores elements in a sequence of smaller and smaller lists Lo, ..., Lh. The list L, is obtained from Lp-1 by tossing a fair coin for each element in Lr-1 and including the element in L, if that coin comes up heads. In this way, tossing a coin and counting how many times it comes up heads before the first tail is equal to the height of an element x. Suppose instead of a fair coin (a coin in which heads and tails are equally likely at 1/2-1/2), we instead have a biased coin that comes up heads 1/3 of the time and tails 2/3 of the time. With this new coin, which of the following is expected? The expected height of an element x would increase. ) The expected height of an element x would decrease. The expected length of the search path to x would increase. ) The expected length of the search path to x would decrease. both a. and d. both b. and c. None of the above.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here