
CMSC424: Homework 4
Due: Dec 9, 2008
1. What is an “interesting sort order” and why are they important ? Exercise 14.9 (4th Edition: 14.12).
2. Exercises 15.5, 15.6 (4th Edition: 15.9, 15.10).
3. Exercise 15.11 (4th Edition: 15.8).
4. (Exercise 16.21) Consider a variant of the tree protocol called the forest protocol. The database is
organized as a forest of rooted trees. Each transaction Timust follow the following rules:
•The first lock in each tree may be on any data item.
•The second, and all subsequent, locks in a tree may be requested only if teh parent of the re-
quested node is currently locked.
•Data items may be unlocked at any time.
•A data item may not be relocked by Tiafter it has been unlocked by Ti.
Show that the forest protocol does not ensure serializability.
5. Exercise 16.29 (4th Edition: Exercise 16.27).
6. Exercise 17.11 (4th Edition: Exercise 17.9)