The keys 5, 28, 19, 15, 26, 33, 12, 17, 10 are inserted into a hash table using the
hash function β(π) = π πππ 9. The collisions are resolved by chaining. After all
the keys are inserted, the length of the longest chain is __________. (answer in
integer)
We insert the keys \(5, 28, 19, 15, 26, 33, 12, 17, 10\) into a hash table of size 9 using \(h(k) = k \bmod 9\), with collisions resolved by chaining.
Step 1: Compute the hash value for every key.
Step 2: Group keys by bucket, in insertion order.
Step 3: Find the maximum chain length. Bucket 1 holds three keys (28, 19, 10), the longest chain among all buckets; every other bucket has at most 2 keys.
Final Answer: The length of the longest chain is \(\boxed{3}\)
A schedule of three database transactions \(T_1\), \(T_2\), and \(T_3\) is shown. \(R_i(A)\) and \(W_i(A)\) denote read and write of data item A by transaction \(T_i\), \(i = 1, 2, 3\). The transaction \(T_1\) aborts at the end. Which other transaction(s) will be required to be rolled back?
