Question

Provide an explanation of hashtables, including a description of a realistic scenario that could be solved...

Provide an explanation of hashtables, including a description of a realistic scenario that could be solved with the application of a hashtable. Then, compare the purpose and usage of hashtables to JTrees as well as one of the following additional data structures: Arraylist, array, or JList. In your comparison, be sure to include an explanation of one way hashtables are similar to your selected data structure and one way in which they are different. please gives examples

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hashtable :It uses functions called as hash function to calculate the index of key value into an array of buckets.

The idea behind hashing is to distribute the enteries to given keys in an array.

We can find the application of hashing :

example:PASSWORD VERIFICATION

Whenever a password is entered by an user in any software.the entered password is hashed and then it sends it to the sever for validation or verification.passwords in server are in hash values of original one.

It ensures the correctness of password entered by user.

comparison with jtrees:

purpose of Jtree and hashtable->JTree is uesd to display elements through tree data structure ,hence it is a complex component .It has a root (parent of all node).

hashtable shows the elements in key-value pair which are computed using hash functions in an array .

usage of jtrees and hash table:

jtree->It is a swing data structure to present elements in tree -structured form.

hashtable->It computes the index position of key in table using some calculations.

comparison with array-list and hashtable:

similarity->A hash table is like arrayy list data structure which is used to store element.

difference->an array is an ordered list of elements where hash is collection of key/value pairs.

Add a comment
Know the answer?
Add Answer to:
Provide an explanation of hashtables, including a description of a realistic scenario that could be solved...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Project Description: In this project, you will combine the work you’ve done in previous assignments to...

    Project Description: In this project, you will combine the work you’ve done in previous assignments to create a separate chaining hash table. Overview of Separate Chaining Hash Tables The purpose of a hash table is to store and retrieve an unordered set of items. A separate chaining hash table is an array of linked lists. The hash function for this project is the modulus operator item%tablesize. This is similar to the simple array hash table from lab 5. However, the...

  • WRITTEN ASSIGNMENT (CASE STUDY) DESCRIPTION AND RUBRIC Scenario You are the Chief Executive Officer [CEO] of...

    WRITTEN ASSIGNMENT (CASE STUDY) DESCRIPTION AND RUBRIC Scenario You are the Chief Executive Officer [CEO] of a health services organization. This organization has inpatient and outpatient facilities, home healthcare services, and other services that meet your patient population’s needs. It also has a world-renowned AIDS treatment center. The organization has always enjoyed an excellent reputation and its quality of care is known to be excellent.   Unfortunately, your organization has recently been featured in every media vehicle known to man. The...

  • Question: Task 2 Scenario: You are currently working for a consultancy firm that provides advice and market... Task 2 Sc...

    Question: Task 2 Scenario: You are currently working for a consultancy firm that provides advice and market... Task 2 Scenario: You are currently working for a consultancy firm that provides advice and market intelligence to small businesses and entrepreneurs. As part of updating the new website, you have been assigned to investigate different types of ventures and their impact on the economy to put on a webpage. This is a mini research project that is based on a range of...

  • Please help me with this answer. Performance Comparison for Dijkstra Algorithm and Bellman-Ford Algorithm Problem Description...

    Please help me with this answer. Performance Comparison for Dijkstra Algorithm and Bellman-Ford Algorithm Problem Description The shortest path problem is one of most important problems in graph theory and computer science in general. Shortest path problem is one of typical optimization problems. Given a graph G = (V,E), the goal is to nd a minimum cost path from s → t, s,t ∈ V . This variant is called one-to-one shortest path problem. Other variants are one-to-all (compute shortest...

  • The purpose of this homework is to practice OOP programming covering Inheritance in java. The scenario...

    The purpose of this homework is to practice OOP programming covering Inheritance in java. The scenario is to design an online shopping system for a local supermarket (e.g., Europa Foods Supermarket or Wang Long Oriental Supermarket) and is mostly concentrated on the product registration system. Design and draw a UML diagram, and write the code for the following classes: ID: The identification number must start with 1 and follows with 6 numbers, e.g., “1123456”. Description, e.g. “Banana” Recommended Price per...

  • Hi, it's C++ question. Only can use <iostream> and <fstream>libraries Please help me, thanks Question Description:...

    Hi, it's C++ question. Only can use <iostream> and <fstream>libraries Please help me, thanks Question Description: For this project you will write a program to: a) read-in the 10 first names from a file (the file is a priori given to have exactly 10 entries, of a maximum length of 8 letters each) into a 2-dimensional character array, b) output the names to the terminal with each one preceded by a number indicating its original order in the list, c)...

  • CIS363 Web Interface Design With Lab Lab 4: Navigation, Graphics and Slideshows Instructions Scenario Obtain 10...

    CIS363 Web Interface Design With Lab Lab 4: Navigation, Graphics and Slideshows Instructions Scenario Obtain 10 original photos. Research on the Internet and find some code that will allow you to create a slideshow. Create a page with your photos and the code that you find. Create a Word document showing the source for your slideshow code. Be sure to document your HTML code as well. Lab Steps Part A: Get Photos The photos can be obtained through http://quest.eb.com.proxy.devry.edu/ or...

  • Create a draft of a Marketing Research Proposal of your choice. The topic for this proposal...

    Create a draft of a Marketing Research Proposal of your choice. The topic for this proposal must be related to MARKETING research, not just a generically interesting research topic. It is vital that you include all of the parts of the proposal outlined in your draft, the parts being: Research Purpose – Here the firm or organization must succinctly provide an overarching reason to conduct the research. The Research Purpose provides the justification as well as the integrated reasoning. Research...

  • The purpose of this is to use inheritance, polymorphism, object comparison, sorting, reading binary files, and...

    The purpose of this is to use inheritance, polymorphism, object comparison, sorting, reading binary files, and writing binary files. In this application you will modify a previous project. The previous project created a hierarchy of classes modeling a company that produces and sells parts. Some of the parts were purchased and resold. These were modeled by the PurchasedPart class. Some of the parts were manufactured and sold. These were modeled by the ManufacturedPart class. In this you will add a...

  • AA. Final Project - Improved JavaFX GUI Personal Lending Library Description: In this project we will...

    AA. Final Project - Improved JavaFX GUI Personal Lending Library Description: In this project we will improve our personal lending library tool by (1) adding the ability to delete items from the library, (2) creating a graphical user interface that shows the contents of the library and allows the user to add, delete, check out, or check in an item. (3) using a file to store the library contents so that they persist between program executions, and (4) removing the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT