JohnnyLang™

Computer Science Level pending

Johnny is writing his own programming language: JohnnyLang™. He starts thinking about hash tables . He decides to implement a hash table that resolves collisions by chaining. For the simplicity, he decides that it will implement simple uniform hashing ( SUHA ) i.e., each key is equally likely to be hashed into each slot. Suppose we have a table of size 2 n 2n and n n keys are inserted into the table. The expected number of elements that hash into any slot i i can be expressed as a fraction a b \dfrac{a}{b} , where a a and b b are coprime positive integers . Find a + b a+b .


The answer is 3.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...