Question

1.Note that the skip list defines MAX_LEVEL as the largest number of levels a particular node...

1.Note that the skip list defines MAX_LEVEL as the largest number of levels a particular node could have. Is there a point when this MAX level would tend to reduce performance? Can you quantify that point? What happens to performance?

Homework Answers

Answer #1

We have Linked Lists for Easy to insert & delete in O(1) time and we don’t need to estimate total memory needed .But we have some drawbacks of Linked List too i.e. in Linked list it is hard to search in less than O(n) time and hard to jump to the middle for eg. binary search doesn’t work.

So to fix these drowbacks we have Skip list that has good data structure for a dictionary ADT. Skip list was invented around 1990 by Bill Pugh. It is a generalization of sorted linked lists so simple to implement . Expected search time in Skip list is O(log n).It has randomized data structure that uses random coin flips to build the data structure.

Here is the example of perfect skip list because it has-

  1. Keys in sorted order.
  2. O(log n) levels
  3. Each higher level contains 1/2 the elements of the level below it.

Header & sentinel nodes are in every level

  1. Nodes are of variable size: - contain between 1 and O(log n) pointers.
  2. Pointers point to the start of each node (picture draws pointers horizontally for visual clarity).
  3. Called skip lists because higher level lists let you skip over many items.

When search for k:

If k = key, done!

If k < next key, go down a level

If k ≥ next key, go right

In other words we can say to find an item, we scan along the shortest list until we would “pass” the desired item. At that point, we drop down to a slightly more complete list at one level lower.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
C PROGRAMMING Doubly Linked List For this program you’ll implement a doubly linked list of strings....
C PROGRAMMING Doubly Linked List For this program you’ll implement a doubly linked list of strings. You must base your code on the doubly linked list implementation given in my Week 8 slides. Change the code so that instead of an ‘int’ each node stores a string (choose a suitable size). Each node should also have a next node pointer, and previous node pointer. Then write functions to implement the following linked list operations: • A printList function that prints...
C++ Goals  Build single linked lists using pointers  Learn how to manipulate linked lists...
C++ Goals  Build single linked lists using pointers  Learn how to manipulate linked lists In this lab, you will create simple single linked structures consisting of Node objects. Each node will have a pointer to the next node. You will use a head pointer to keep track of the first node in the linked list, and a tail pointer to keep track of the last node in the linked list. Set both head and tail to NULL when...
1. As we increase the quantum number of an electron in a one-dimensional, infinite potential well,...
1. As we increase the quantum number of an electron in a one-dimensional, infinite potential well, what happens to the number of maximum points in the probability density function? It increases. It decreases. It remains the same 2. If an electron is to escape from a one-dimensional, finite well by absorbing a photon, which is true? The photon’s energy must equal the difference between the electron’s initial energy level and the bottom of the nonquantized region. The photon’s energy must...
You have a list of IQ scores for a classroom in a particular university. The IQ...
You have a list of IQ scores for a classroom in a particular university. The IQ scores are: 118, 123, 124, 125, 127, 128, 129, 130, 130, 133, 136, 138, 141, 142, 149, 150, 154. Construct the frequency diagram with 5 class intervals. Compute the mean, median and mode for this frequency distribution using the formulas for grouped data. Construct the histogram. Using the data of #1 a sample of 100 students will be taken to estimate the average mark...
(1 point) Matt thinks that he has a special relationship with the number 1. In particular,...
(1 point) Matt thinks that he has a special relationship with the number 1. In particular, Matt thinks that he would roll a 1 with a fair 6-sided die more often than you'd expect by chance alone. Suppose ? is the true proportion of the time Matt will roll a 1. (a) State the null and alternative hypotheses for testing Matt's claim. (Type the symbol "p" for the population proportion, whichever symbols you need of "<", ">", "=", "not ="...
2. Performance Measurement: You have been hired to develop a performance evaluation tool for the job...
2. Performance Measurement: You have been hired to develop a performance evaluation tool for the job of a Starbucks Barista. The barista’s primary duties and responsibilities are: Assisting customers, processing customer payments, explaining menu items and making drink suggestions, determining inventory supplies and needs, maintaining store cleanliness, and, of course, preparing outstanding drinks. In developing an evaluation tool, you have decided to include three objective and three judgmental performance measures. For each of your measures, explain what it is, how...
In one sentence describe Target’s business. (1 point) Who is Target’s Auditor? (1 point) What opinion...
In one sentence describe Target’s business. (1 point) Who is Target’s Auditor? (1 point) What opinion do Target’s auditors express on the financial statements? (1 point) Which footnote provides Target’s summary of accounting policies?   (1 point) When does Target’s fiscal year-end? (1 point) Which sales revenue stream was the largest in 2018? (1 point) Which sales revenue stream had the largest growth between 2017 to 2018? (1 point) What inventory costing method (discussed in class) does Target use for recording...
Previous Problem for Context (1. The year is 2053, and the researchers have been working hard...
Previous Problem for Context (1. The year is 2053, and the researchers have been working hard on trying to fill up the next row of the periodic table. In particular, they are trying to determine all electronic properties of the element (potential name Eiteneerium, Ei) whose atomic number is 141. (Note: as of right now we do not think that anything beyond Z = 126 is stable, but in 2053... who knows). A. Determine the electronic configuration of the last...
CASE STUDY 7 – RECEIVABLES Max is very happy with the work you have done in...
CASE STUDY 7 – RECEIVABLES Max is very happy with the work you have done in tidying up his inventory recording and valuation systems and is quite confident that his reports will now give him more useful information and provide him with a truer picture of the position and performance of the business. However, Max is now concerned that some of the other areas of his business could need a review given some the problems found with the recording of...
URGENT: Question-related individual support(age care) 1. What should you do if you identify any hazards, risks...
URGENT: Question-related individual support(age care) 1. What should you do if you identify any hazards, risks or client-related risk factors in the workplace? 2. How can you follow safe work practices for infection control? 3. What is the procedure for “after exposure” to blood or other body substances? 4. How can you remain current with the information required for safety in the workplace? 5.Plan your own safe work practices then answer the following questions: How can you maintain your knowledge...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT