Question: Java 21. Assuming keys are comprised of upper- and lowercase letters, give the bit pattern and base 10 numeric value of the pseudo key that

Java

21. Assuming keys are comprised of upper- and lowercase letters, give the bit pattern and base 10 numeric value of the pseudo key that would result from processing the key Mary using the algorithm illustrated in Figure 5.17.

Java 21. Assuming keys are comprised of upper- and lowercase letters, give

22. What would be the base 10 value of the pseudo key produced by fold-shifting the key Bob-Jones to produce a 16-bit numeric pseudo key. Use the characters bJ as a pivot.

23. A pseudorandom preprocessing scheme is being used in a hashed data structure with the primes p1 = 11 and p2 = 5. Give the pseudo keys for the following keys:

a) 198

b) 24

For the numeric key: 987845369, the key is folded about 845 The addition is performed as: 845 987 369 2201 Thus, the pseudo key would be 201 For the non-numeric key: "A1McAllister", the key is folded about the second grouping, Alli The addition is performed as: Alli 0100 0001 0110 1100 0110 1100 0110 1001 +Al Mc 0100 0001 0110 1100 0100 1101 0110 0011 + ster+ Treating this result as a positive 32 bit integer, the pseudo key would be 4, 132, 249, 406. Figure 5.17 Fold-Shifting Key Conversion For the numeric key: 987845369, the key is folded about 845 The addition is performed as: 845 987 369 2201 Thus, the pseudo key would be 201 For the non-numeric key: "A1McAllister", the key is folded about the second grouping, Alli The addition is performed as: Alli 0100 0001 0110 1100 0110 1100 0110 1001 +Al Mc 0100 0001 0110 1100 0100 1101 0110 0011 + ster+ Treating this result as a positive 32 bit integer, the pseudo key would be 4, 132, 249, 406. Figure 5.17 Fold-Shifting Key Conversion

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 Databases Questions!