Question
Exercise 2.7 Consider a postings intersection between this postings list, with skip pointers: and the following intermediate result postings list (which hence has no skip
Exercise 2.7\ Consider a postings intersection between this postings list, with skip pointers:\ and the following intermediate result postings list (which hence has no skip pointers):\
3,5,89,95,97,99,100,101
\ Trace through the postings intersection algorithm in Figure 210 (page 37).\ a. How often is a skip pointer followed (i.e.,
p_(1)
is advanced to
{:skip(p_(1)))
?\ b. How many postings comparisons will be made by this algorithm while intersect-\ ing the two lists?\ c. How many postings comparisons would be made if the postings lists are inter-\ sected without the use of skip pointers?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started