关闭

Write java code to build an open-address hashtable

该项目收到19 来自天才威客的竞标,平均竞标价格为$50 USD

为像这样的项目获取免费报价
雇主工作
项目预算
$10 - $20 USD
全部竞标
19
项目描述

Build an open-address Hash Table to store with size Z=100 social security numbers(SSN) using arrays only. Build the following classes :

• [url removed, login to view]

• [url removed, login to view]

1.A) Use Hash function H(x) = Key%Size.

1.B) [url removed, login to view] is a class for building and processing Hash Tables, see the description in “[url removed, login to view]”.

1.C) [url removed, login to view] is a class/program for testing the HashBag class. [url removed, login to view] must do the following:

1) Generate a random set S of 10 social security numbers (XXXXXXXXX). Write it to a text file called “[url removed, login to view]” using format F.

2) Read the SSN from “[url removed, login to view]” and insert them to an array(Hash Table) T, one-by-one using the chosen Hash function H(x).

3) Display the given Hash Table(array).

4) Let the user enter a SSN: A. Search to see if A is in T. Display the search result(if A is found or not and index of A if it is found).

5) Let the user enter a SSN: B. Remove B if there is B in T. Display B and the remove result(if B is found and removed or not and index where B is removed).

6) Let the user enter a SSN: C. Insert/add C to Hash Table/array T.

7) Display the new Hash Table(array) after the removal and addition.

MORE DETAILS IN DOC FILE

在寻找赚取金钱的机会?

  • 设定您的预算和时间框架
  • 大致描述您的建议方案
  • 为您的工作领取工资

雇用同样在该项目上竞标的威客

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online