# US 2017/0255634 A1 · Method for Extracting Maximal Repeat Patterns and Computing Frequency Distribution Tables

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0255634 A1
- Document ID: US20170255634A1
- Status: Published application
- Kind: A1
- Application number: 15/208,994
- Filed: 2016-07-13
- Published: 2017-09-07
- Earliest claimed: 2016-03-01
- Inventors: Ching-Tu Wang
- Web page: https://patentgrep.com/patent/US20170255634A1

## CPC

- G06F 16/3331: Query processing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Pattern discovery in sequential data mining is valuable for many applications, such as genomic signature (biomarker) identification, trend analysis, sequential logs analysis, user action (behavior) analysis and production line analysis. An approach can extract maximal repeat patterns from tagged sequences based on MapReduce programming model, and meanwhile compute the frequency distribution of these patterns according to the tags. Most of all, the components of sequences may be characters, words or records while the types of tags may be timestamps or classes given by users.

## Claims

### Claim 1

A method for extracting maximal repeat patterns and computing frequency distribution tables, executed in a computing system across multiple nodes of a cluster of machines, wherein the maximal repeat patterns are extracted from sequences attached with tags, and the frequency distribution tables of candidate patterns are computed according to classes or categories derived from the tags, the method comprising the following steps:
splitting the sequences into fixed-size partitions;
assigning each of the partitions to a map task that is run on a worker node;
generating suffixes of the sequences in the same partition by each of the map tasks, wherein each of the suffixes is attached with one tag belonging to a corresponding sequence;
partitioning the suffixes into groups, wherein each of the groups contains the suffixes whose first k components are the same;
sorting the suffixes within one group;
assigning each of the groups to a reduce task that is run on a worker node;
allowing each of the reducers to scan the sorted suffixes in the same group and to extract a longest common prefix of two successive suffixes as one candidate maximal repeat pattern for each of the reduce tasks; and
computing a frequency distribution of the candidate maximal repeat pattern according to classes or categories derived from the tags.

### Claim 2 (depends on 1)

The method of claim 1, wherein the tags comprise at least one of: timestamps, classes and categories.

### Claim 3 (depends on 1)

The method of claim 1, wherein each of the sequences is a sequential data, and the sequential data comprises at least one of: characters, words and records.

### Claim 4 (depends on 1)

The method of claim 1, wherein the candidate maximal repeat pattern is extracted according to at least one of a sequence with right boundary verification and the reverse of the sequence with left boundary verification

### Claim 5 (depends on 1)

The method of claim 1, wherein a maximal repeat is a repeat which is unable to be extended to the left or right to a longer repeat; and a maximal repeat pattern is a repeat pattern if the maximal repeat pattern is satisfied with right boundary verification and the reverse of the maximal repeat pattern is satisfied with left boundary verification at the same time.

### Claim 6 (depends on 1)

The method of claim 1, wherein the step of sorting the suffixes within one group includes sorting the suffixes with the same key collected from all of the partitions.

### Claim 7 (depends on 1)

The method of claim 1, wherein the reducer executes the step of scanning the sorted suffixes, extracting the candidate maximal repeat patterns, and computing the frequency distributions.

### Claim 8 (depends on 1)

The method of claim 1, wherein the process of generating suffixes of the sequences is modified as the process of generating the fixed length p prefixes of suffixes of the sequences; the maximal length of candidate maximal repeat patterns extracted is limited to p.

### Claim 9 (depends on 1)

The method of claim 1, wherein the computing system across multiple nodes of a cluster of machines comprises hardware components having worker nodes for running map tasks and reduce tasks.

### Claim 10 (depends on 5)

The method of claim 5, wherein the right and left boundary verification of one maximal repeat pattern can be done simultaneously, if each of suffixes is attached with one more prefix word just ahead of the suffix in the original sequence of the suffix.
