# US 2011/0252068 A1 · Creating edit scripts for conversion of data tables

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

- Number: US 2011/0252068 A1
- Document ID: US20110252068A1
- Status: Published application
- Kind: A1
- Application number: 13/082,767
- Filed: 2011-04-08
- Published: 2011-10-13
- Earliest claimed: 2010-04-09
- Assignees: Tait Electronics Limited
- Inventors: Hamish Andrew Smith
- Web page: https://patentgrep.com/patent/US20110252068A1

## CPC

- G06F 8/658: Incremental updates; Differential updates
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the invention assist conversion of an old data table to a new data table in a communication terminal. An edit script is created by creating an old and new data trees from the old and new tables respectively. A first partial script which converts the old tree to an intermediate tree having the same length as the new tree is then determined. A second partial script which converts the intermediate tree to the new tree is also determined. The first and second partial scripts are then combined to provide a script which can be sent the terminal. The first partial script is preferably a minimum cost series of edits causing only insertions and deletions in the old data tree. The second partial script is preferably a minimum cost series of edits causing only substitutions in the intermediate tree.

## Claims

### Claim 1

A method of creating an edit script for conversion of an old data table to a new data table, the method comprising:
creating an old data tree and a new data tree from the old table and the new table respectively;
determining a first partial script which converts the old tree to an intermediate tree having the same length as the new tree; and
determining a second partial script which converts the intermediate tree to the new tree, and combining the first and second partial scripts.

### Claim 2 (depends on 1)

A method according to claim 1 wherein the first partial script is determined as a minimum cost series of edits causing only insertions and deletions in the old data tree.

### Claim 3 (depends on 2)

A method according to claim 2 wherein the first partial script inserts or deletes only complete sub-trees in the old data tree.

### Claim 4 (depends on 1)

A method according to claim 1 wherein the second partial script is determined as a minimum cost series of edits causing only substitutions in the intermediate tree.

### Claim 5 (depends on 1)

A method according to claim 1 wherein the first partial script is determined using an edit distance matrix with the old tree and the intermediate tree in row major form.

### Claim 6 (depends on 1)

A method according to claim 1 wherein the second partial script is be determined using an edit distance matrix with the intermediate tree and the new tree in row major form.

### Claim 7 (depends on 1)

A method according to claim 1 wherein the second partial script is determined using an edit distance matrix with the intermediate tree and the new tree in column major form.

### Claim 8 (depends on 1)

A method according to claim 1 further comprising:
determining a secondary script which converts the intermediate tree to the new tree using row major forms;
determining a secondary script which converts the intermediate tree to the new tree using column major forms; and
selecting the second partial script from the secondary scripts based on cost.

### Claim 9 (depends on 1)

A method according to claim 1 wherein the data trees are rooted, ordered, labelled trees formed from data in a respective table.

### Claim 10 (depends on 9)

A method according to claim 9 wherein the data trees contain only nodes having a degree of 0, 1, 2 and only nodes of degree 2 contain data from the respective table.

### Claim 11

A method of updating data in a mobile communication terminal, comprising:
determining an old data table which exists in the device;
determining a new data table which is required in the device;
determining an edit script which converts the old data table to the new data table, transmitting the edit script to the device; and
actuating the device to implement the edit script, wherein the edit script is determined using a method as outlined above.

### Claim 12

A system for creating an edit script for conversion of an old data table to a new data table, the system comprising:
a processor; and
a memory coupled to the processor to store instructions, which when executed from the memory, cause the processor to
create an old data tree and a new data tree from the old table and the new table respectively,
determine a first partial script which converts the old tree to an intermediate tree having the same length as the new tree, and
determine a second partial script which converts the intermediate tree to the new tree, and combining the first and second partial scripts.

### Claim 13 (depends on 12)

A system according to claim 12 wherein the first partial script is determined as a minimum cost series of edits causing only insertions and deletions in the old data tree.

### Claim 14 (depends on 13)

A system according to claim 13 wherein the first partial script inserts or deletes only complete sub-trees in the old data tree.

### Claim 15 (depends on 12)

A system according to claim 12 wherein the second partial script is determined as a minimum cost series of edits causing only substitutions in the intermediate tree.

### Claim 16 (depends on 12)

A system according to claim 12 wherein the first partial script is determined using an edit distance matrix with the old tree and the intermediate tree in row major form.

### Claim 17 (depends on 12)

A method according to claim 12 wherein the second partial script is be determined using an edit distance matrix with the intermediate tree and the new tree in row major form.

### Claim 18 (depends on 12)

A method according to claim 12 wherein the second partial script is determined using an edit distance matrix with the intermediate tree and the new tree in column major form.

### Claim 19 (depends on 12)

A system according to claim 12 wherein the data trees are rooted, ordered, labelled trees formed from data in a respective table.

### Claim 20 (depends on 9)

A system according to claim 9 wherein the data trees contain only nodes having a degree of 0, 1, 2 and only nodes of degree 2 contain data from the respective table.
