Question

How significant is the hashing-algorithm, or formula, when using hashing as a searching technique? What could...

How significant is the hashing-algorithm, or formula, when using hashing as a searching technique? What could a poor choice of a hashing formula lead to?

(This question is from a data structures course that uses C++ as the primary language)

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

Searching a list of values is a common task. An application program might retrieve a student record, bank account record, credit record, or any other type of record using a search algorithm.

Hashing algorithm plays a vital role in determining the time complexity of the search technique.

For example, a bad hashing may lead to lots of collisions and as a result, the worst-case time complexity of the search may become linear O(n).

Whereas a good hashing may avoid collisions leading to search time complexity to constant O(1).

Add a comment
Know the answer?
Add Answer to:
How significant is the hashing-algorithm, or formula, when using hashing as a searching technique? What could...
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
  • Sorting Sort the following array using the quick sort algorithm: (4 Marks) a. 12 26 8...

    Sorting Sort the following array using the quick sort algorithm: (4 Marks) a. 12 26 8 9 7 0 4 Pivot selection is defined to be the first element of each sub-list. Show the array before and after each quicksort round (when the array is partitioned after placing the pivot at its correct position). Also, clearly highlight the pivot in each partition b. Consider an unsorted array of integers of size n. Write a Java program to arrange the array...

  • Implement a software program in C++ t stores and searches the Student records using double-hashing algorithm.  Double...

    Implement a software program in C++ t stores and searches the Student records using double-hashing algorithm.  Double hashing uses the idea of applying a second hash function to key when a collision occurs.   The software program will be based on the following requirements: Development Environment: If the software program is written in C++, its project must be created using Microsoft Visual Studio 2017. If the software program is written in Java, its project must be created using NetBeans v8.2. Algorithm: If...

  • In the Spectrophotometric Analysis of Aspirin lab, a student with poor technique overfills the 250.00 mL...

    In the Spectrophotometric Analysis of Aspirin lab, a student with poor technique overfills the 250.00 mL volumetric flask when making up the standard solution. The meniscus ends up well above the line on the neck of the flask when the delonized water is added to the acetylsalicylic acid in the flask. Instead of starting over, the student pours out some of the solution in the flask so that the bottom of the meniscus is below the line. The student then...

  • Knowing when to apply a data structure for a given business problem is an important skill for developers to know. Resea...

    Knowing when to apply a data structure for a given business problem is an important skill for developers to know. Research the following .NET data structures:     List     ArrayList     LinkedList Discuss examples of business problems that could be solved using each of the data structures. Knowing how to sort data in an array and knowing which sorting algorithm to use makes implementing sorting easier. Discuss different ways to sort an array in C#. What do you see as the advantages and...

  • Insert elements into a hash table implemented using chain hashing, as an array of linked list...

    Insert elements into a hash table implemented using chain hashing, as an array of linked list in which each entry slot is as a linked list of key/value pairings that have the same hash (outcome value computed using certain hash function). You are allowed to use “Hash Function”, h(k) = k % x where, x is the value you will need to decide to use, that you find appropriate for this implementation. The main requirements are the following: 1. Input:...

  • c++ using i think the assignment want hashing function to check date if was efficiently transferred or missing any data...

    c++ using i think the assignment want hashing function to check date if was efficiently transferred or missing any data if transferred please look for the graph like in L1 AND L2 they transfer data then when they all match then i think means transferred correctly or missing anything pleas help im not sure if question want with hashing but please do any coding with hashing anything will help Given the attached Merkle Tree from Let L1=Then out spake brave...

  • In reference to working with Microsoft Excel, what problems could you run into when using a...

    In reference to working with Microsoft Excel, what problems could you run into when using a large worksheet? How can you prevent these problems? When is it appropriate to delete an entire row or column, as opposed to deleting data in the row or column?

  • COSC 359 User Authentication Description A widely used password security technique is the use of hashed...

    COSC 359 User Authentication Description A widely used password security technique is the use of hashed passwords and a salt value. This scheme is found on virtually all UNIX variants as well as on a number of other operating systems as shown in Figure 3.1 bellow. To load a new password into the system, the user selects or is assigned a password. This password is combined with a fixed-length salt value. In older implementations, this value is related to the...

  • Question 7 0 / 10 points What is a Java Interface and what role can it...

    Question 7 0 / 10 points What is a Java Interface and what role can it have in developing Data Structures? Support your answer with an example of such an interface. No text entered - Question 8 (10 points) What is meant by a static data structure? In your opinion, what are the advantages and disadvantages of such structures? Do you feel that the advantages outweigh the disadvantages? Question 9 0 / 10 points Describe the basic operations that can...

  • Question 28 Using the formula Using the formula method and the label below, determine how many...

    Question 28 Using the formula Using the formula method and the label below, determine how many ml of furosemide the patient will receive per dose when the order reads: Lasix 80 mg IV q8h. Show your work. NDC 0517-5704-25 furosemide Injection, USP 20 mg/2mL (10 mg/mL) 4 mL SINGLE DOSE VIAL FOR IV OR IM USE Rx only WARNING: USE ONLY IF SOLUTIONS IS CLEAR AND COLORLESS. PROTECT FROM LIGHT. Store at controlled room temperature 150-30°C (590-86°F) (See USP) Direction...

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