Question: 1 . In controlled prefix expansion with variable stride, what is the minimum number of trie nodes we need so that no more than two

1. In controlled prefix expansion with variable stride, what is the minimum number of trie nodes we need so that no more than two memory accesses are needed to perform an IP lookup (i.e., longest prefix match) against the rule set below. Please show some dynamic programming steps if you would like
to receive partial credits.
P1=0000*
P2=0001*
P3=0010*
P4=001*
P5=01*
P6=1*
P7=110*
P8=111*
2. Spell out the digital logic of the following 4-bit digital-to-analog converter
we mentioned in class that is roughly equivalent to the bit-mask function.
The inputs are i1(the least significant bit), i2, i3, and i4. The outputs are
j1, j2,, j15. If the binary number (i4i3i2i1)2 has value k, then j1= j2=
= jk =1 and the rest is 0. You need to spell out the formula for each jl
(1<= l <=15) as a logic function of the inputs. Please use notations (for
OR),(for AND), and (for NOT).
3. Suppose 1 million nodes are hashed into a hash table that contains 1 mil-
lion buckets. On average, what is the total number of overflows if each bucket
can hold at most 3 nodes. You may assume that the hash function is strictly
uniform (across the 1 million indices/buckets). You may also approximate
the Bernoulli random variable you will encounter in this case with a Poisson
random variable (since 1 million is a large enough number). Please write the
(approximate) formula and calculate the numerical value (say using Matlab).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!