Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions