PATTERN INDEX