# US 2015/0178382 A1 · Data object with common sequential statements

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

- Number: US 2015/0178382 A1
- Document ID: US20150178382A1
- Status: Published application
- Kind: A1
- Application number: 14/139,920
- Filed: 2013-12-24
- Published: 2015-06-25
- Earliest claimed: 2013-12-24
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Vaibhav Srivastava
- Web page: https://patentgrep.com/patent/US20150178382A1

## CPC

- G06F 8/4434: {Reducing the memory space required by the program code}
- G06F 16/35: Clustering; Classification
- G06F 16/355: Creation or modification of classes or clusters
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for determining a common sequence of statements from one or more sets of ordered statements. A data object is created that has a first group of data entries, which is created from a first sequence of statements of a first set of statements. Each data entry defines a link between a source and destination statement from the first sequence. Data entries created from a second sequence of statements of a second set are added to the first group of data entries. Each data entry from the second sequence defines a link between a source statement and a destination statement from the second sequence. A second group of data entries is created, which is determined from the first group of data entries that have an equivalent source and destination statements. The second group of data entries is stored in a database as the common sequence of statements.

## Claims

### Claim 1

A computer implemented method for determining a common sequence of statements from one or more sets of ordered statements comprising:
creating a data object having a first group of data entries, the first group of data entries created from a first sequence of statements of a first set of statements, each data entry defining a link between a source statement and a destination statement from the first sequence of statements;
adding to the first group of data entries, data entries created from a second sequence of statements of a second set of statements, each data entry from the second sequence of statements defining a link between a source statement and a destination statement from the second sequence of statements;
creating a second group of data entries determined from the first group of data entries that have an equivalent source statement and an equivalent destination statement; and
storing the second group of data entries in a database as the common sequence of statements.

### Claim 2 (depends on 1)

The computer implemented method of claim 1, further comprising:
determining a third group of data entries, the data entries each having a common sequence of statements by:
determining whether a first data entry of the second group has a destination statement equivalent to a source statement of a second data entry of the second group, and
determining whether the first data entry and the second data entry appear in two or more common sets, when the first data entry destination statement is equivalent to the source statement of the second data entry;
creating a data entry of the third group with a source statement of the first data entry and a destination statement of the second data entry when the first data entry and the second data entry appear in two or more common sets and when the destination statement of the first data entry is equivalent to the source statement of the second data entry; and
storing the third group of data entries in the database.

### Claim 3 (depends on 2)

The computer implemented method of claim 2, further comprising:
determining a fourth group of data entries, the data entries of the fourth group having a common sequence of statements by:
determining a first condition of whether a first data entry of the third group has an equivalent destination statement as a source statement of one of the data entries of the second group,
determining a second condition of whether the first data entry of the third group appears in two or more common sets of the data entry in the second group that has a source statement equivalent to the destination statement of the data entry in the third group;
creating the fourth group of data entries with the source statement of the first data entry of the third group and the destination statement of the data entry of the second group when the first condition and second condition are satisfied; and
storing the fourth group of statements in a data object.

### Claim 4 (depends on 3)

The computer implemented method of claim 3, further comprising:
creating groups of data entries of longer common sequential statements until the destination statements of data entries from a previous group of data entries are not equivalent to any of the source statements of data entries in the second group.

### Claim 5 (depends on 3)

The computer implemented method of claim 3, further comprising:
creating groups of data entries of longer common sequential statements until data entries in a previous group share less than two common sets with data entries in the second group.

### Claim 6 (depends on 3)

The computer implemented method of claim 3, wherein at least one of the data entries having a common sequence of statements is assigned a keyword.

### Claim 7 (depends on 1)

The computer implemented method of claim 1, wherein the one or more sets are one or more test scripts and the statements are steps of test scripts.

### Claim 8

A computer comprising:
a processor; and
memory communicatively coupled to the processor, wherein the memory is encoded with instructions for determining a common sequence of statements from one or more sets of ordered statements, and wherein the instruction when executed by the processor include:
creating a data object having a first group of data entries, the first group of data entries created from a first sequence of statements of a first set of statements, each data entry defining a link between a source statement and a destination statement from the first sequence of statements;
adding to the first group of data entries, data entries created from a second sequence of statements of a second set of statements, each data entry from the second sequence of statements defining a link between a source statement and a destination statement from the second sequence of statements;
creating a second group of data entries determined from the first group of data entries that have an equivalent source statement and an equivalent destination statement; and
storing the second group of data entries in a database as the common sequence of statements.

### Claim 9 (depends on 8)

The computer of claim 8, wherein the instructions when executed by the processor further include:
determining a third group of data entries, the data entries each having a common sequence of statements by:
determining whether a first data entry of the second group has a destination statement equivalent to a source statement of a second data entry of the second group, and
determining whether the first data entry and the second data entry appear in two or more common sets, when the first data entry destination statement is equivalent to the source statement of the second data entry;
creating a data entry of the third group with a source statement of the first data entry and a destination statement of the second data entry when the first data entry and the second data entry appear in two or more common sets and when the destination statement of the first data entry is equivalent to the source statement of the second data entry; and
storing the third group of data entries in the database.

### Claim 10 (depends on 9)

The computer of claim 9, wherein the instructions when executed by the processor further include:
determining a fourth group of data entries, the data entries of the fourth group having a common sequence of statements by:
determining a first condition of whether a first data entry of the third group has an equivalent destination statement as a source statement of one of the data entries of the second group,
determining a second condition of whether the first data entry of the third group appears in two or more common sets of the data entry in the second group that has a source statement equivalent to the destination statement of the data entry in the third group;
creating the fourth group of data entries with the source statement of the first data entry of the third group and the destination statement of the data entry of the second group when the first condition and second condition are satisfied; and
storing the fourth group of statements in a data object.

### Claim 11 (depends on 10)

The computer of claim 10, wherein the instructions when executed by the processor further include:
creating groups of data entries of longer common sequential statements until the destination statements of data entries from a previous group of data entries are not equivalent to any of the source statements of data entries in the second group.

### Claim 12 (depends on 10)

The computer of claim 10, wherein the instructions when executed by the processor further include:
creating groups of data entries of longer common sequential statements until data entries in a previous group share less than two common sets with data entries in the second group.

### Claim 13 (depends on 10)

The computer of claim 10, wherein at least one of the data entries having a common sequence of statements is assigned a keyword.

### Claim 14 (depends on 8)

The computer of claim 8, wherein the one or more sets are one or more test scripts and the statements are steps of test scripts.

### Claim 15

A computer program product for determining a largest common sequence of statements from one or more sets of ordered statements, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code executable by a computer to:
create a data object having a first group of data entries, the first group of data entries created from a first sequence of statements of a first set of statements, each data entry defining a link between a source statement and a destination statement from the first sequence of statements;
add to the first group of data entries, data entries created from a second sequence of statements of a second set of statements, each data entry from the second sequence of statements defining a link between a source statement and a destination statement from the second sequence of statements;
create a second group of data entries determined from the first group of data entries that have an equivalent source statement and an equivalent destination statement; and
store the second group of data entries in a database as the common sequence of statements.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the program code executable by a computer further include to:
determine a third group of data entries, the data entries each having a common sequence of statements by:
determining whether a first data entry of the second group has a destination statement equivalent to a source statement of a second data entry of the second group, and
determining whether the first data entry and the second data entry appear in two or more common sets, when the first data entry destination statement is equivalent to the source statement of the second data entry;
create a data entry of the third group with a source statement of the first data entry and a destination statement of the second data entry when the first data entry and the second data entry appear in two or more common sets and when the destination statement of the first data entry is equivalent to the source statement of the second data entry; and
store the third group of data entries in the database.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the program code executable by a computer further include to:
determine a fourth group of data entries, the data entries of the fourth group having a common sequence of statements by:
determining a first condition of whether a first data entry of the third group has an equivalent destination statement as a source statement of one of the data entries of the second group,
determining a second condition of whether the first data entry of the third group appears in two or more common sets of the data entry in the second group that has a source statement equivalent to the destination statement of the data entry in the third group;
create the fourth group of data entries with the source statement of the first data entry of the third group and the destination statement of the data entry of the second group when the first condition and second condition are satisfied; and
store the fourth group of statements in a data object.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein the program code executable by a computer further include to:
create groups of data entries of longer common sequential statements until the destination statements of data entries from a previous group of data entries are not equivalent to any of the source statements of data entries in the second group.

### Claim 19 (depends on 16)

The computer program product of claim 16, wherein the program code executable by a computer further include to:
create groups of data entries of longer common sequential statements until data entries in a previous group share less than two common sets with data entries in the second group.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the one or more sets are one or more test scripts and the statements are steps of test scripts.
