1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
BlackZzzverrR [31]
3 years ago
13

What is a perfect hashing function?

Computers and Technology
1 answer:
antiseptic1488 [7]3 years ago
3 0

Answer:

First we understand what is hash function.A hash function is mostly used in Hashmaps. It maps different keys to a set of values.There may occur a case when we have same key but different values.This case is called collision.So we have to use different collision handling techniques that are open addressing and separate chaining.

A perfect hash function maps key-value pair such that there are no collisions.

You might be interested in
What is renewable energy
faust18 [17]

Answer:

Energy that can be used over again

Explanation:

Examples include biofuel,hydroelectric power,and wind.

8 0
4 years ago
Read 2 more answers
Rock, Paper, Scissors
telo118 [61]

import random

computer_choice = random.choice(['rock', 'paper', 'scissors'])

player_choice = input('Choose rock, paper, or scissors: ')

if player_choice == computer_choice:

   print('Tie. Both players chose '+player_choice)

elif (player_choice == 'rock' and computer_choice == 'scissors') or (player_choice == 'paper' and computer_choice == 'rock') or (player_choice == 'scissors' and computer_choice == 'paper'):

   print('You won! '+player_choice +' beats '+computer_choice)

else:

   print('You lost! '+computer_choice+' beats '+player_choice)

I wrote my code in python 3.8. I hope this helps. Note the elif statement is actually one line of code but it looks like it takes up more than one line.

7 0
3 years ago
Read 2 more answers
When you cite your sources and give credit to the authors, you are: (select all that apply)
zimovet [89]

When you cite your sources and give credit to the authors, you are: (select all that apply) is option A: practicing ethical behavior.

<h3>Why is ethical behavior important?</h3>

In order to tell the truth, maintain our word, or assist a stranger in need, we must follow ethical principles. Everyday decisions we make are guided by an ethical framework that helps us avoid unjust results and helps us make decisions that have good effects on the world.

Therefore, Honesty, fairness, and equity in interpersonal, professional, and academic relationships as well as in research and scholarly pursuits are characteristics of ethical behavior. The rights, diversity, and dignity of both individuals and groups of people are respected in ethical behavior.

Learn more about ethical behavior from

brainly.com/question/27962109
#SPJ1

8 0
2 years ago
I will make you brainless Just answer this question!!
Cerrena [4.2K]

Answer:

ryuwtyyfdzhufyi6rfjiryj

7 0
3 years ago
If all of the logical conditions are true, the and function returns the logical value _____.
S_A_V [24]
<span>If all of the logical conditions are true, the and function returns the logical value true</span>
6 0
3 years ago
Other questions:
  • What does the CMYK tab let you do
    7·2 answers
  • PLEASE HELP TAKING A TEST!!!
    10·2 answers
  • Are lenovo margins expected to be stable in the china operations
    10·2 answers
  • You have a network that occupies the top floor of a three-story building. The WAN service provider has installed the line for th
    11·1 answer
  • Array Challenge Have the function ArrayChallenge (arr) take the array of numbers stored in arr and return the string true if any
    9·1 answer
  • You have searched a database to locate US cities with population counts above 1 million people. You need to present the results
    6·2 answers
  • Savings accounts _____.
    15·1 answer
  • A _____ is an Access database object that allows you to arrange the fields of a record in any layout so you can enter, edit, and
    6·1 answer
  • What is an Array? 20 POINTS!!!
    15·1 answer
  • How to achieve competitive advantage using information systems models
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!