Identify the "head and tail" of a generalized table