Partition of closed intervals