Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

###__write the proper code in C language.__##.

1. HashMap: Prepare a hashTable with two functions.
Insert, Search
Double Hashing , mod 19, mod 11,
Final Mod : 19
h(k, i) = (h,(k) + i h(k)) mod 5
h, (k) = k mod 19
k mod 11
Insert: i = 0,1, If empty don't insert, No chaining
78, 77,25, 22, 34, 12,89
34
77
78
22
25
Input: N = size of array (hash) = 5
Input: n = number of inputs = 7
78, 77,25, 22, 34, 12,89
Success,
Failed
Input: m = number of search input (3)
34, 22, 89
Found
Not Found
Transcribed Image Text:1. HashMap: Prepare a hashTable with two functions. Insert, Search Double Hashing , mod 19, mod 11, Final Mod : 19 h(k, i) = (h,(k) + i h(k)) mod 5 h, (k) = k mod 19 k mod 11 Insert: i = 0,1, If empty don't insert, No chaining 78, 77,25, 22, 34, 12,89 34 77 78 22 25 Input: N = size of array (hash) = 5 Input: n = number of inputs = 7 78, 77,25, 22, 34, 12,89 Success, Failed Input: m = number of search input (3) 34, 22, 89 Found Not Found
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY