Construct a hash table with a load factor near

Assignment Help C/C++ Programming
Reference no: EM132083580

The NIRVANA HILTON contains 100 rooms. We wish to create a hotel register that can be used to access each occupant by name with a minimum amount of searching. We also wish to keep track of all occupants by room number.

Assignment: Write a C++ program to accomplish the above objectives using the following techniques:

1. Construct a hash table with a load factor near 90%. For this problem, use a table of 114 elements with subscripts ranging from 0 to 113.

2. Resolve collisions by chaining.

3. Maintain a chain of empty table positions.

4. Use an array of tags to access occupants by room number.

5. Maintain necessary counters to compute the following at the end of the run:

a) probes per successful search

b) probes per unsuccessful search

c) probes per search (overall)

6) Use the names given in this handout to initially fill up the hotel. (may be in any order desired)

7) Use the action requests given in this handout as the action input cards to your program. These cards must be input to your program in the same order they are listed in this handout.

8) You must submit flowcharts with your program. The logic involved in maintaining the chains in the hash table can be quite tricky, if you write your flowchart first, you may save yourself a lot of agony when you begin testing your program.

Reference no: EM132083580

Questions Cloud

Estimate for the root of a nonlinear equation : Using the Taylor Polynomial below, derive the equations for calculating an improved estimate for the root of a nonlinear equation using Newton's method.
What is the role of social workers in supporting clients : What is the role of social workers in supporting clients with varying abilities while recognizing and honoring those clients other identity characteristics?
Calculate warren non-separately computed income : Warren, Inc., a calendar year S corporation, incurred the following items in 2015. Calculate Warren's non-separately computed income
Rube corporation had the stockholders equity accounts : Rube Corporation had the stockholders' equity accounts on January 1, 2011: Common Stock ($5 par) $400,000, Paid-in Capital in Excess of Par Value
Construct a hash table with a load factor near : Construct a hash table with a load factor near 90%. For this problem, use a table of 114 elements with subscripts ranging from 0 to 113.
Calculate distance among genes separately and compare : Nike company have a test contains missing values. The entries in the matrix are the expression values of genes(rows) under different conditions(columns).
Compute income from operations : Compute income from operations and Compute the gross profit rate.
Calculate the total dollar amount of discount : Calculate the total dollar amount of discount or premium amortization during the first year (5/1/12 through 4/30/13) these bonds were outstanding
Describe the characteristics of each user : Describe the characteristics of each user. Certain requirements may affect (relate) only to certain users.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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