Write some program in c++

Analysis Coalesced Hashing

Problem Definition: In this project you are to make a serious study of Coalesced Hashing. This technique is discussed in the paper “Implementations for Coalesced Hashing” by Jeffrey Scott Vitter, CACM, Dec 1982. This paper, the link is on the web site, divides a hash table into an address region and a cellar. The cellar is used to store records that collide when inserted. The paper indicates that near optimal performance occurs at B=.86 where B is the ratio of the size of the address region to the size of the entire table. You project is to write a simulation that supports this statement. Run your simulation for a variety of hash table sizes and B values. Draw graphs to support you work. Write up the project in word using the graphs (as generated by PIL) embedded. Attach the source to this paper, place a header page and staple. Turn in on the above date.

NOTES: Your main focus in this project is to obtain data that would allow you to draw a graph such as that on page 925. Here we will restrict the project to successful searching via successful probe counting only so don’t worry about unsuccessful searching. Once a table is loaded it is very easy to determine (by a calculation) the average probe count for that set of data. See Fig 1 (a) for an example. It would suffice to create four curves on the same graph having the following different loadings ( .7,.8,.9. and 1.0). The graph on page 925 has a loading of 1.0. You will need to execute multiple runs for the range of address factors that go from say .4 to 1.0 in whatever step size you choose as long as a minimum on the curve around .86 would be visible. You only need to implement the basic algorithm, ie late-insertion. Also make enough runs so that averaging them will make the curves somewhat smooth.

As a final comment please note that you can use any address size you choose. It does not have to be a prime number. We are not hashing real data that may be clustered. We are loading the table with data that is randomly generated so placement in the table is properly spread out. You can use the usual division method discussed in the overheads ie. n mod m where m is the size of the address region. This makes selection of the address region size for a specific array size easy. Let me say this again, you pick an array size, say 1000, and then use a variety of address region sizes in that array to collect data. IE m’ is assumed to be constant for data collection. If you change m’ then data collection on these should be shown on different graphs.

Habilidades: Programação C++

Veja mais: write paper for me, where are graphs used, web programming in c, use of algorithm in programming, study web programming, study programming, study algorithm, statement problem example, statement of the problem example, statement of problem definition, specific problem statement example, specific problem statement, set in c, searching program in c, searching in c programming, searching in c, searching in array in c, searching a number in an array, searching algorithm in c, searching algorithm, program problem statement, programming technique, programming statement, programming hash, programming graphs

Acerca do Empregador:
( 1 comentário ) wichita falls, United States

ID do Projeto: #6775558

3 freelancers estão ofertando em média $33 para esse trabalho


A proposal has not yet been provided

$20 USD em 1 dia
(886 Comentários)

I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the language is c++ under linux. I used Mais

$50 USD em 1 dia
(77 Comentários)

Hello, Greetings from GirnarSoft! GirnarSoft is an offshore IT firm with its presence in USA & India. Located in 3 major cities of India we have 700+ skilled professionals working on various domains to deliver rema Mais

$30 USD em 1 dia
(0 Comentários)