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 Lp-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.
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 Lp-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.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education