How many words will be used for the hash table itself

Assignment Help Computer Engineering
Reference no: EM131847310

Problem

Suppose that each entry in a hash table occupies s words of storage (exclusive of the pointer member needed if chaining is used), where we take one word as the amount of space needed for a pointer. Also suppose that there are n occupied entries in the hash table, and the hash table has a total of t possible positions (t is the same as hash_size), including occupied and empty positions.

(a) If open addressing is used, determine how many words of storage will be required for the hash table. (b) If chaining is used, then each node will require s + 1 words, including the pointer member. How many words will be used altogether for the n nodes?

(c) If chaining is used, how many words will be used for the hash table itself? (Recall that with chaining the hash table itself contains only pointers requiring one word each.)

(d) Add your answers to the two previous parts to find the total storage requirement for chaining.

(e) If s is small (that is, the entries have a small size), then open addressing requires less total memory for a given load factor λ = n/t , but for large s (large entries), chaining requires less space altogether. Find the break-even value for s , at which both methods use the same total storage. Your answer will be a formula for s that depends on the load factor λ, but it should not involve the numbers t or n directly.

(f) Evaluate and graph the results of your formula for values of λ ranging from 0.05 to 0.95.

Reference no: EM131847310

Questions Cloud

What is the probability that at least two people in the room : What is the probability that at least two people in the room will have that same random birthday?
Study about the horizontal integration : In this chapter, we studied horizontal integration and the build-borrow-or-buy framework. One industry currently consolidating is furniture manufacturing.
How does acid rebound occur : How does acid rebound occur? What are the therapeutic actions of sulcrafate and misoprostol?
What are the therapeutic actions for drugs : What are the therapeutic actions for drugs used to decrease acid content( H2 receptor antagonists, antacids, proton pump inhibitors and prostaglandins)?
How many words will be used for the hash table itself : If chaining is used, how many words will be used for the hash table itself? How many words will be used altogether for the n nodes?
Theories about the pathophysiologic process : Question: What are the current theories about the pathophysiologic process for peptic ulcer disease?
What is the state of michigan structure system : What is the state of Michigan's structure system? Include a description of what courts exist and their relationships to each other
What are the two primary lines of security defense : Explain the differences between the types of security offered by the banks in the case. Which bank would you open an account with and why?
Adjustment in pain medication : QUESTION 1: Which adjustment in pain medication may be needed for an elderly person with elevated liver enzymes due to anticonvulsant therapy?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd