Question

When is it preferable to use a dense index rather than a sparse index? Explain.

When is it preferable to use a dense index rather than a sparse index? Explain.

Homework Answers

Answer #1

​​​​​​​The following lines explain the use case when it is more preferred to use dense index instead of sparse index.

Suppose you have a file which is not sorted on the indexed field (this is very common when the index is a secondary index).

Example: data in table is sorted on ID:

  ID    Last Name
   1    Smith
   2    Francis
   3    Jones
   4    Zygoski
   5    Bohr
   6    Josephson
   7    Michaels
   8    Able

And, imagine this is a sparse index on Last Name (with pointers to the appropriate records:

Index
  Able
  Francis
  Jones
  Smith

Now, to find "Bohr", You go to "Able" and then search sequentially. Unfortunately, "Able" is the last record in the file, so, you can't get to "Bohr" from there.

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
Q:Why is it preferable to use a metal ion buffer to achieve pM = 9, rather...
Q:Why is it preferable to use a metal ion buffer to achieve pM = 9, rather than just dissolving enough M to give a 10-9 M solution?
Canola oil is less dense than water, so it floats on water, but its index of...
Canola oil is less dense than water, so it floats on water, but its index of refraction is 1.47, higher than that of water. When you are adding oil and water to a bottle to make salad dressing, you notice a silvery reflection of light from the boundary between the oil and water. What is the critical angle for light going from the oil into the water?
Are the hydrocarbons more dense or less dense than water? Explain why based on your observations....
Are the hydrocarbons more dense or less dense than water? Explain why based on your observations. You may have seen some reaction of bromine with toluene. Compare this with your observations of the reaction of bromine with chlorobenzene. Based on the structure of toluene where do you think the reaction occurred (aromatic ring or side chain)? Is this reaction similar to the reaction of bromine with an alkane or an alkene? Explain.
a) Is dichloromethane more dense than water? Explain your reasoning. b) Is caffeine more soluble in...
a) Is dichloromethane more dense than water? Explain your reasoning. b) Is caffeine more soluble in water or dichloromethane? Explain your reasoning.
Use the concept of practical significance to explain why a confidence interval is (usually) preferable to...
Use the concept of practical significance to explain why a confidence interval is (usually) preferable to a hypothesis test.
When would you use a one-tailed rather than a two-tailed t-test when checking significance levels?
When would you use a one-tailed rather than a two-tailed t-test when checking significance levels?
When is it more appropriate for a researcher to adopt a qualitative technique rather than a...
When is it more appropriate for a researcher to adopt a qualitative technique rather than a quantitative one? Explain with example.
Why is it important to use adjusted r2 rather than r2 (the coefficient of determination) when...
Why is it important to use adjusted r2 rather than r2 (the coefficient of determination) when comparing the fit of different regression models with the same dependent variable ? need help answering this question cant afford to get it wrong :( Thank you
State whether you agree with the use of historical cost rather than current market values, and...
State whether you agree with the use of historical cost rather than current market values, and explain your position.
1a)Explain how you would make the decision to take an honors class rather than a regular...
1a)Explain how you would make the decision to take an honors class rather than a regular class. Make sure to use the terms self-interest and benefits in your response. 1b) What costs are there when you take an honors class instead of a regular class?