Work Note 13, DM803, fall 2014

Lecture December 2

Exercises December 3

  1. Together we will develop known data structures from basic design ideas. First, a balance idea for binary search trees: For any node, the height of its subtrees may differ by at most one. Before the exercises, try to think about the following questions:
  2. The next idea generalizes B-trees that you may know from a database course. The balance idea is that all leaves have the same distance from the root, but the number of children of a node vary between a minimum of a and a maximum of b.
  3. Consider turning skip lists into a deterministic (non-probabilistic) data structure, i.e., instead of choosing the level of an element probabilistically hoping that we get the right mix of levels, we decide that in between to elements of level l, l > 1, we must have exactly one or two elements of level l-1. Rethink properties and operations on the structure.

Announcements


Last modified: Mon Nov 24 15:30:14 CET 2014
Kim Skak Larsen (kslarsen@imada.sdu.dk)