# US 2014/0208195 A1 · Representation of an element in a page via an identifier

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

- Number: US 2014/0208195 A1
- Document ID: US20140208195A1
- Status: Published application
- Kind: A1
- Application number: 13/745,020
- Filed: 2013-01-18
- Published: 2014-07-24
- Earliest claimed: 2013-01-18
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Khalil A. Ayoub; Gregor Von Bochman; Suryakant Choudhuary; Mustafa Emre Dincturk; Paul Ionescu; Guy-Vincent Jourdan; Iosif Viorel Onut; Seyed M. Mir Taheri
- Web page: https://patentgrep.com/patent/US20140208195A1

## CPC

- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments are directed to computing, by an apparatus comprising a processing device, an identifier (ID) for an element in a page using an algorithm responsive to encountering the element a first time, causing, by the apparatus, the ID to be stored in a storage device, encountering, by the apparatus, the element a second time, determining, by the apparatus, that the element is encountered the second time, and responsive to determining that the element is encountered the second time, representing, by the apparatus, the element by the ID at the time of the second encounter by retrieving the ID from the storage device.

## Claims

### Claim at position 1

1-10. (canceled)

### Claim 11

A computer program product comprising:
a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising:
computer readable program code configured for:
computing an identifier (ID) for an element in a page using an algorithm responsive to encountering the element a first time;
causing the ID to be stored in a storage device;
encountering the element a second time;
determining that the element is encountered the second time; and
responsive to determining that the element is encountered the second time, representing the element by the ID at the time of the second encounter by retrieving the ID from the storage device.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the algorithm comprises at least the following characteristics:
that the ID is capable of being computed in a bottom-up fashion starting with leaf nodes and continuing to a root node, and
that the ID is capable of being computed in a deterministic way so that computing the ID two or more times with respect to the element yields the ID.

### Claim 13 (depends on 11)

The computer program product of claim 11, wherein the method comprises:
encountering the element the second time in the page.

### Claim 14 (depends on 11)

The computer program product of claim 11, wherein the method comprises:
encountering the element the second time in a second page.

### Claim 15 (depends on 11)

The computer program product of claim 11, wherein the method comprises:
causing the ID to be stored in the storage device using a hash representation of the ID.

### Claim 16 (depends on 11)

The computer program product of claim 11, wherein the method comprises:
computing a second ID for a second element in the page based on having encountered the element the first time,
wherein the second element is derived from the element.

### Claim 17 (depends on 11)

The computer program product of claim 11, wherein computing the ID for the element in the page using the algorithm responsive to encountering the element the first time comprises determining that a history is unavailable for the element in the storage device.

### Claim 18

An apparatus comprising:
at least one processor; and
memory having instructions stored thereon that, when executed by the at least one processor, cause the apparatus to:
compute an identifier (ID) for an element in a page using an algorithm responsive to encountering the element a first time,
cause the ID to be stored in a storage device,
encounter the element a second time,
determine that the element is encountered the second time, and
responsive to determining that the element is encountered the second time, represent the element by the ID at the time of the second encounter by retrieving the ID from the storage device.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the instructions, when executed by the at least one processor, cause the apparatus to:
cause the ID to be stored in the storage device using a hash representation of the ID.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein the instructions, when executed by the at least one processor, cause the apparatus to:
recursively compute a unique ID for each of one or more elements that are derived from the element responsive to encountering the element the first time, and
store the unique ID for each of the one or more elements in the storage device.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein the instructions, when executed by the at least one processor, cause the apparatus to:
recursively compute the unique ID for each of the one or more elements that are derived from the element based on a determination that a termination condition is not reached,
wherein the termination condition is reached for a given element included in the one or more elements when at least one of the following conditions is satisfied:
the given element corresponds to a leaf,
the given element is at a level in the page that exceeds a predefined maximum depth, and
a size of a history stored in the storage device is larger than a maximum predefined value.
