The minimum tree for a given zero-entropy period