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
Sergeeva-Olga [200]
3 years ago
8

How do you do 2b and please explain?

Computers and Technology
1 answer:
klemol [59]3 years ago
5 0

Answer:

Key = k mod 10

for 13

     =13 mod 10 =3

for 44 =44 mod 10 =4

for 103 = 103 mod 10 =3 which collides

hence, we use quadratic probing (u + i ^2) mod 10 for i = 0 to m-1

     =(103 + 0)mod 10 =3

     =(103 +1) mod 10 =4

      =(103 +4) mod 10 =7

Now for 113

         = (113+ 0) mod 10 =3

         =(113 + 1) mod 10 = 4

         =(113 +4) mod 10 =7

          =(113 + 9) mod 10 = 1

for 2

          = 2 mod 10 =2

   so position filled are =[ -, 113, 2, 13, 44,-. -, 103,-.-]

Now we need to search for 33  and 22

= list.contains(33), and this will probe in one go, and will return false

= list.contains(22) will also probe in one go, and will return false.

In fact hashset has response time O(1), and hence it searches the two numbers in one go, and returns true or false.

Hash set has unique values always, and hence there will be no collision.

Explanation:

Please check the answer section.

You might be interested in
The _______________ database structure is considered one of the key technologies of a new generation of Web-based applications.
Ilya [14]
The " Object - Oriented" database structure is considered one of the key technologies of a new generation of Web-based applications.
6 0
4 years ago
HOW DO I HACK PUBG MOBILE WITH PROOF <br>GIVE ME LINK​
muminat

Answer:

why do u want to do that i have an acc i dont even use that is so good with so much uc and other skins on it

Explanation:

5 0
3 years ago
Read 2 more answers
Which of the following is a benefit, as well as a risk, associated with client/server networks?
melomori [17]
A. IT professional, who maintains the network, must be added and removed from the network. - risk 
B. Clients work independently; therefore, if one computer is not working, other computers can still do their jobs.  - benefit (scalability is always a benefit)
C. Security levels are set up by individuals; therefore, these networks may not be as secure. - risk
D. There is no need for a big IT department to keep the network up and running. - benefit (it is simple for maintenance)
7 0
4 years ago
Read 2 more answers
Which of the following are examples of structured data?
Burka [1]

Answer:taffif

Explanation:

4 0
4 years ago
Hallo! Was ist die Hauptstadt von Northdakote wirklich schätzen, wenn jemand gefragt
timama [110]

Hallo!

I'm thinking you're speaking German so I'm gonna translate


Die Hauptstadt von North Dakota ist Bismark. Hoffe das hilft! Ich wünsche ihnen einen wunderbaren Tag!



~CoCo

5 0
3 years ago
Read 2 more answers
Other questions:
  • Any method of determining whether an event or object is older or younger than others
    13·2 answers
  • The merge process involves which two types of files?
    5·1 answer
  • Which examples demonstrate common Network Systems workplaces and employers? Check all that apply.
    13·2 answers
  • We will pass in 2 values, X and Y. You should calculate XY XY and output only the final result. You will probably know that XY X
    13·1 answer
  • Someone pls help me with this question (Java)
    5·2 answers
  • Cryptography has requirements include:
    8·1 answer
  • All of the following are technical solutions to protecting user privacy except: Group of answer choices Data use policies Anonym
    12·1 answer
  • This assignment is based on Exercise 8.4 from your textbook. Each of the following Python functions is supposed to check whether
    11·1 answer
  • The lost boy gave the correct
    10·2 answers
  • The firewall protects a computer or network from network-based attacks along with _____________ of data packets traversing the n
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!