# US 9,355,114 B1 · Graph-based compression of data records

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

- Number: US 9,355,114 B1
- Document ID: US9355114B1
- Status: Granted
- Kind: B1
- Application number: 14/727,591
- Filed: 2015-06-01
- Granted: 2016-05-31
- Earliest claimed: 2014-06-25
- Assignees: Groupon, Inc.
- Applicants: Groupon, Inc.
- Inventors: Ricardo Andrés Zilleruelo-Ramos; Hernan Enrique Arroyo Garcia; Joe Frisbie; Gaston L'Huillier; Francisco Jose Larrain
- Web page: https://patentgrep.com/patent/US9355114B1

## CPC

- G06Q 30/0246: {Traffic}
- G06F 16/1744: {using compression, e.g. sparse files}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/951: Indexing; Web crawling techniques
- G06F 16/955: using information identifiers, e.g. uniform resource locators [URL]
- H03M 7/30: Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M 7/70: {Type of the data to be coded, other than image and sound}
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

In general, embodiments of the present invention provide systems, methods and computer readable media for data record compression using graph-based techniques.

## Claims

### Claim 1

A computer-implemented method for generating a compressed list of impression data records, the method comprising:
receiving a set of impression data records describing a sequence of consumer behavior instances collected during a time window, wherein the set of impression data records is associated with a particular consumer; and wherein each of the set of impression data records is a compound data record including data components;
generating a directed link graph representing the consumer behavior instances, wherein the graph nodes respectively represent the consumer behavior instances and each of the graph edges connecting a pair of the nodes represents a hyperlink between the nodes; and
generating, by a processor, the compressed list of the impression data records based at least in part on properties of the directed link graph.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating the compressed list of the impression data records comprises:
determining a first component of the data record to be an index component;
generating a sorted list of the data records by ordering the data records using the respective value of the index component in each data record;
identifying a set of unique index component values within the sorted list of data records;
generating an ordered list of the unique index component values using the sorted list of the data records;
determining whether there are duplicates of at least one unique index component value within the sorted list of data records;
in an instance in which there are duplicates of at least one unique second component value within the sorted list of data records,
associating, for each duplicated unique index component value, an encoding representing a quantity of duplicates of the value within the sorted list of data records and an identifier of the position of the unique index component value within the ordered list of the unique index component values; and
generating the compressed list of the data records using the ordered list of unique index component values and their respective associated encodings.

### Claim 3 (depends on 2)

The method of claim 2, wherein each data record includes a second component that is different from the index component, and wherein generating the compressed list of the impression data further comprises:
identifying a set of unique second component values within the sorted list of data records;
associating, for each unique second component value, a list of positions of the data records within the sorted list that contain the unique second component value;
generating a second encoding by associating the second component with an ordered list of the unique second component values and their respective associated lists of data record positions; and
generating the compressed list of the data records using the second encoding.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
generating a hash table entry in which a unique identifier of the consumer is the key and the generated compressed list is the value; and
adding the hash table entry to a hash table storing impression data records.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
storing the hash table as an array of bytes, wherein the hash table entry is stored at an offset location in the array of bytes; and
associating the offset location with the unique identifier of the consumer.

### Claim 6 (depends on 1)

The method of claim 1, wherein each data record represents an interaction between the particular consumer and a promotion displayed in an impression containing content describing one or more available promotions.

### Claim 7 (depends on 6)

The method of claim 6, wherein the data record components include at least one of an identifier of the promotion, a date on which the interaction occurred, and a position of the promotion within the impression display layout.

### Claim 8

A computer program product, stored on a computer readable medium, comprising instructions that when executed on one or more computers cause the one or more computers to perform operations implementing generating a compressed list of impression data records, the operations comprising:
receiving a set of impression data records describing a sequence of consumer behavior instances collected during a time window, wherein the set of impression data records is associated with a particular consumer; and wherein each of the set of impression data records is a compound data record including data components;
generating a directed link graph representing the consumer behavior instances, wherein the graph nodes respectively represent the consumer behavior instances and each of the graph edges connecting a pair of the nodes represents a hyperlink between the nodes; and
generating, by a processor, a compressed list of the impression data records based at least in part on properties of the directed link graph.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein generating the compressed list of the impression data records comprises:
determining a first component of the data record to be an index component;
generating a sorted list of the data records by ordering the data records using the respective value of the index component in each data record;
identifying a set of unique index component values within the sorted list of data records;
generating an ordered list of the unique index component values using the sorted list of the data records;
determining whether there are duplicates of at least one unique index component value within the sorted list of data records;
in an instance in which there are duplicates of at least one unique second component value within the sorted list of data records,
associating, for each duplicated unique index component value, an encoding representing a quantity of duplicates of the value within the sorted list of data records and an identifier of the position of the unique index component value within the ordered list of the unique index component values; and
generating the compressed list of the data records using the ordered list of unique index component values and their respective associated encodings.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein each data record includes a second component that is different from the index component, and wherein generating the compressed list of the impression data further comprises:
identifying a set of unique second component values within the sorted list of data records;
associating, for each unique second component value, a list of positions of the data records within the sorted list that contain the unique second component value;
generating a second encoding by associating the second component with an ordered list of the unique second component values and their respective associated lists of data record positions; and
generating the compressed list of the data records using the second encoding.

### Claim 11 (depends on 9)

The computer program product of claim 9, further comprising:
generating a hash table entry in which a unique identifier of the consumer is the key and the generated compressed list is the value; and
adding the hash table entry to a hash table storing impression data records.

### Claim 12 (depends on 11)

The computer program product of claim 11, further comprising:
storing the hash table as an array of bytes, wherein the hash table entry is stored at an offset location in the array of bytes; and
associating the offset location with the unique identifier of the consumer.

### Claim 13 (depends on 8)

The computer program product of claim 8, wherein each data record represents an interaction between the particular consumer and a promotion displayed in an impression containing content describing one or more available promotions.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein the data record components include at least one of an identifier of the promotion, a date on which the interaction occurred, and a position of the promotion within the impression display layout.

### Claim 15

A system comprising:
one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations implementing generating a compressed list of impression data records, the operations comprising:
receiving a set of impression data records describing a sequence of consumer behavior instances collected during a time window, wherein the set of impression data records is associated with a particular consumer; and wherein each of the set of impression data records is a compound data record including data components;
generating a directed link graph representing the consumer behavior instances, wherein the graph nodes respectively represent the consumer behavior instances and each of the graph edges connecting a pair of the nodes represents a hyperlink between the nodes; and
generating, by a processor, a compressed list of the impression data records based at least in part on properties of the directed link graph.

### Claim 16 (depends on 15)

The system of claim 15, wherein generating the compressed list of the impression data records comprises:
determining a first component of the data record to be an index component;
generating a sorted list of the data records by ordering the data records using the respective value of the index component in each data record;
identifying a set of unique index component values within the sorted list of data records;
generating an ordered list of the unique index component values using the sorted list of the data records;
determining whether there are duplicates of at least one unique index component value within the sorted list of data records;
in an instance in which there are duplicates of at least one unique second component value within the sorted list of data records,
associating, for each duplicated unique index component value, an encoding representing a quantity of duplicates of the value within the sorted list of data records and an identifier of the position of the unique index component value within the ordered list of the unique index component values; and
generating the compressed list of the data records using the ordered list of unique index component values and their respective associated encodings.

### Claim 17 (depends on 16)

The system of claim 16, wherein each data record includes a second component that is different from the index component, and wherein generating the compressed list of the impression data further comprises:
identifying a set of unique second component values within the sorted list of data records;
associating, for each unique second component value, a list of positions of the data records within the sorted list that contain the unique second component value;
generating a second encoding by associating the second component with an ordered list of the unique second component values and their respective associated lists of data record positions; and
generating the compressed list of the data records using the second encoding.

### Claim 18 (depends on 16)

The system of claim 16, further comprising:
generating a hash table entry in which a unique identifier of the consumer is the key and the generated compressed list is the value; and
adding the hash table entry to a hash table storing impression data records.

### Claim 19 (depends on 18)

The system of claim 18, further comprising:
storing the hash table as an array of bytes, wherein the hash table entry is stored at an offset location in the array of bytes; and
associating the offset location with the unique identifier of the consumer.

### Claim 20 (depends on 15)

The system of claim 15, wherein each data record represents an interaction between the particular consumer and a promotion displayed in an impression containing content describing one or more available promotions.

### Claim 21 (depends on 20)

The system of claim 20, wherein the data record components include at least one of an identifier of the promotion, a date on which the interaction occurred, and a position of the promotion within the impression display layout.

### Claim 22

A computer-implemented method for retrieving a set of compressed consumer behavior data records in response to receiving a query, comprising:
receiving a query comprising search terms, wherein the search terms include a unique identifier associated with a particular consumer;
responsive to receiving the query, accessing, by a processor, impression data records describing consumer behavior instances associated with the particular consumer collected during a time window by performing retrieval operations comprising:
retrieving a stored compressed set of impression data records, wherein each data record includes at least one component, and wherein the compressed set was generated using properties of a directed link graph representation of the impression data records; and
identifying a subset of the impression data records associated with the particular consumer using the unique identifier; and
uncompressing the subset of impression data records.

### Claim 23 (depends on 22)

The method of claim 22, wherein the stored compressed set of impression data records is an array of bytes, and identifying the subset of the impression data records associated with the particular consumer comprises:
determining an offset location in the array of bytes using the unique identifier associated with the particular consumer; and
unpacking a segment of the array of bytes beginning at the offset location.

### Claim 24 (depends on 23)

The method of claim 23, wherein each data record is a compound data record comprising at least two components, wherein the search terms include a component identifier associated with a particular data record component, and wherein unpacking the segment of the array of bytes further comprises:
determining a second offset location in the array of bytes using the component identifier, wherein the second offset location is within the segment of the array of bytes beginning at the offset location; and
unpacking the segment of the array of bytes beginning at the second offset location.

### Claim 25

A computer program product, stored on a computer readable medium, comprising instructions that when executed on one or more computers cause the one or more computers to perform operations implementing retrieving a set of compressed consumer behavior data records in response to receiving a query, the operations comprising:
receiving a query comprising search terms, wherein the search terms include a unique identifier associated with a particular consumer;
responsive to receiving the query, accessing, by a processor, impression data records describing consumer behavior instances associated with the particular consumer collected during a time window by performing retrieval operations comprising:
retrieving a stored compressed set of impression data records, wherein each data record includes at least one component, and wherein the compressed set was generated using properties of a directed link graph representation of the impression data records; and
identifying a subset of the impression data records associated with the particular consumer using the unique identifier; and
uncompressing the subset of impression data records.

### Claim 26 (depends on 25)

The computer program product of claim 25, wherein the stored compressed set of impression data records is an array of bytes, and identifying the subset of the impression data records associated with the particular consumer comprises:
determining an offset location in the array of bytes using the unique identifier associated with the particular consumer; and
unpacking a segment of the array of bytes beginning at the offset location.

### Claim 27 (depends on 26)

The computer program product of claim 26, wherein each data record is a compound data record comprising at least two components, wherein the search terms include a component identifier associated with a particular data record component, and wherein unpacking the segment of the array of bytes further comprises:
determining a second offset location in the array of bytes using the component identifier, wherein the second offset location is within the segment of the array of bytes beginning at the offset location; and
unpacking the segment of the array of bytes beginning at the second offset location.

### Claim 28

A system comprising:
one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations implementing retrieving a set of compressed consumer behavior data records in response to receiving a query, the operations comprising:
receiving a query comprising search terms, wherein the search terms include a unique identifier associated with a particular consumer;
responsive to receiving the query, accessing, by a processor, impression data records describing consumer behavior instances associated with the particular consumer collected during a time window by performing retrieval operations comprising:
retrieving a stored compressed set of impression data records, wherein each data record includes at least one component, and wherein the compressed set was generated using properties of a directed link graph representation of the impression data records; and
identifying a subset of the impression data records associated with the particular consumer using the unique identifier; and
uncompressing the subset of impression data records.

### Claim 29 (depends on 28)

The system of claim 28, wherein the stored compressed set of impression data records is an array of bytes, and identifying the subset of the impression data records associated with the particular consumer comprises:
determining an offset location in the array of bytes using the unique identifier associated with the particular consumer; and
unpacking a segment of the array of bytes beginning at the offset location.

### Claim 30 (depends on 29)

The system of claim 29, wherein each data record is a compound data record comprising at least two components, wherein the search terms include a component identifier associated with a particular data record component, and wherein unpacking the segment of the array of bytes further comprises:
determining a second offset location in the array of bytes using the component identifier, wherein the second offset location is within the segment of the array of bytes beginning at the offset location; and
unpacking the segment of the array of bytes beginning at the second offset location.
