Question

In: Computer Science

Q1. under what circumstances would static hashing be better than extendible hashing? Q2. under what circumstances...

Q1. under what circumstances would static hashing be better than extendible hashing?

Q2. under what circumstances would extendible hashing be better than static hashing?

Solutions

Expert Solution

1.

The advantages of using Static Hashing in the DBMS are as follows:

  1. Performance is exceptional for smaller databases.
  2. Aids in Storage management.
  3. Hash key values help in faster access to the storage addresses.
  4. The Primary key values can be used in the place of the hash value.

Limitations Of Extendible Hashing:

  1. The directory size may increase significantly if several records are hashed on the same directory while keeping the record distribution non-uniform.
  2. Size of every bucket is fixed.
  3. Memory is wasted in pointers when the global depth and local depth difference becomes drastic.
  4. This method is complicated to code.

2.

Advantages:

The advantages of using the extendible Hashing method in the DBMS are as follows:

  1. Data retrieval is less expensive (in terms of computing).
  2. No problem of Data-loss since the storage capacity increases dynamically.
  3. With dynamic changes in hashing function, associated old values are rehashed w.r.t the new hash function.

Disadvantages:

The disadvantages of using the Static Hashing method in the DBMS are as follows:

  1. Static Hashing is not a good option for largely sized databases.
  2. Time taken for this function is higher than normal, as the hash function has to go through all the addresses of the storage memory in order to perform operations in the DBMS system.
  3. It doesn’t work well with scalable databases.
  4. The ordering process is not efficient compared to other hashing techniques.

Related Solutions

Why is the home often a better investment than renting? Under what circumstances would renting be...
Why is the home often a better investment than renting? Under what circumstances would renting be preferred?
Q1: Explain under what circumstances eddy currents occur, and what is their direction. Q2: Explain how...
Q1: Explain under what circumstances eddy currents occur, and what is their direction. Q2: Explain how magnetic braking works. Q3: Define magnetic flux. What, if anything is flowing? Q4: Accurately describe Lenz's rule and give an example. Q5: If a MRI experiences the current breakdown over a period of 0.2 seconds, meaning, the magnetic field drops from 3 T to 0, what currents can one expect in patient's body? Cf. Example 30.9
Under what circumstances would it be more efficient for the circus owner, rather than the tamers...
Under what circumstances would it be more efficient for the circus owner, rather than the tamers themselves, to be liable for injuries to audience members? What is this principle called in Common Law?
-Why is diversification more difficult to achieve for companies than investors? -Under what circumstances would diversification...
-Why is diversification more difficult to achieve for companies than investors? -Under what circumstances would diversification create an economic advantage for companies considering merger?
U(q1,q2)= q1^0.5 + q2^0.5, which ones are correct (can be more than 1) 1. Q2 in...
U(q1,q2)= q1^0.5 + q2^0.5, which ones are correct (can be more than 1) 1. Q2 in as inferior good 2. The indifference curves are downward sloping 3. Preference satisy “more is better” 4. Demand function for q2 is downward sloping 5. Engel curve for q1 is downward slopping 6. Income-consumption curve is a straight line
Q1. What are ideal and practical standards? Which do you think is better? Q2. How are...
Q1. What are ideal and practical standards? Which do you think is better? Q2. How are standard costs developed? Take one of the standards and tell how it is developed. Q3. What is the difference between a standard costing and a budget?
a) Under what circumstances is Everyday Low Pricing (EDLP) likely to work? Does it work better...
a) Under what circumstances is Everyday Low Pricing (EDLP) likely to work? Does it work better for retailers or manufacturers? Is it more applicable for urban or rural areas? b) What are some additional trends in retailing and distribution? Mention one such trend. c) How has the emergence of the Internet and E-commerce challenged the existing marketing channels? Explain to what extent e-retailers have been successful in gaining market share, and why.
Is sampling always necessary? Discuss under what circumstances it is necessary and under what circumstances it...
Is sampling always necessary? Discuss under what circumstances it is necessary and under what circumstances it would not be.
Under what circumstances would favor the foreign earned income exclusion
Under what circumstances would favor the foreign earned income exclusion
In what circumstances is data visualization better than using text explanations and tables of numeric data?...
In what circumstances is data visualization better than using text explanations and tables of numeric data? In what situations is it worse? Justify your reasoning.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT