# US 2012/0259897 A1 · Determination of landmarks

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

- Number: US 2012/0259897 A1
- Document ID: US20120259897A1
- Status: Published application
- Kind: A1
- Application number: 13/081,497
- Filed: 2011-04-07
- Published: 2012-10-11
- Earliest claimed: 2011-04-07
- Assignees: Microsoft Corporation
- Inventors: Mark S. Manasse; Arnd Christian König; Paul Adrian Oltean
- Web page: https://patentgrep.com/patent/US20120259897A1

## CPC

- G06F 16/1748: {De-duplication implemented within the file system, e.g. based on file segments (de-duplication techniques in storage systems for the management of data blocks G06F3/0641)}
- G06F 21/10: Protecting distributed programs or content, e.g. vending or licensing of copyrighted material (protection in video systems or pay television H04N7/16) {; Digital rights management [DRM]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Hash values corresponding to a file are processed in windows to determine a minimum hash value for each window. Each window may begin at a minimum hash value determined for a previous window and end after a fixed number of hash values. If a hash value is less than a threshold hash value, it is added to a buffer that is used to store the hash values in sorted order for a current window. If a hash value is greater than the threshold, it is added to another buffer whose hash values are not stored in sorted order. At the end of the current window, the minimum hash value in the first buffer is selected as the landmark for the window. If the first buffer is empty, then the hash values in the other buffer are sorted and the minimum hash value is selected as the landmark for the window.

## Claims

### Claim 1

A method comprising:
receiving a data value at a computing device, wherein the data value is associated with a position in a sequence of data values;
adding the received data value to a first data structure by the computing device;
determining one or more data values from the first data structure that are greater than the received data value according to a predefined ordering method by the computing device;
removing the one or more determined data values from the first data structure by the computing device;
determining, based on the position associated with the received data value, if the received data value is a last data value for a current window by the computing device, wherein the current window is associated with a range of positions in the sequence of data values; and
if so, associating a minimum data value from the first data structure with the window by the computing device.

### Claim 2 (depends on 1)

The method of claim 1, wherein the data value is a hash value.

### Claim 3 (depends on 1)

The method of claim 1, wherein the sequence of data values is associated with a file or a data stream, and the minimum data value is associated with the file or the data stream.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first data structure comprises a ring buffer.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining one or more data values from the first data structure that have an associated position that is outside of the range of positions associated with the window; and
removing the determined one or more data values from the first data structure.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
determining if the received data value is greater than a threshold value according to the predefined ordering method; and
if so, adding the received data value to a second data structure.

### Claim 7 (depends on 6)

The method of claim 6, wherein adding the received data value to the first data structure comprises adding the received data value to the first data structure if the received data value is not greater than the threshold value according to the predefined ordering method.

### Claim 8 (depends on 6)

The method of claim 6, further comprising:
determining if the first data structure is empty; and
if so, determining a minimum data value from the second data structure, and associating the determined minimum data value from the second data structure with the window.

### Claim 9

A method comprising:
receiving a file comprising a plurality of portions at a computing device;
generating a hash value for each of the portions by the computing device, wherein each hash value is associated with a position in the received file;
for each hash value:
if the hash value is less than a threshold hash value according to a predefined ordering method:
adding the hash value to a first data structure; and
removing one or more hash values from the first data structure that are greater than the hash value according to the predefined ordering method;
if the hash value is greater than the threshold value according to the predefined ordering method:
adding the hash value to a second data structure;
if the hash value is a last hash value for a current window:
if the first data structure is empty, determining a minimum hash value from the second data structure according to the predefined ordering method as a landmark;
if the first data structure is not empty, determining a minimum hash value from the first data structure according to the predefined ordering method as the landmark; and
associating the landmark with the file; and
providing one or more landmarks associated with the file by the computing device.

### Claim 10 (depends on 9)

The method of claim 9, wherein the first data structure comprises a ring buffer.

### Claim 11 (depends on 9)

The method of claim 9, wherein the file comprises an entity that stores data.

### Claim 12 (depends on 9)

The method of claim 9, further comprising compressing the received file using the one or more landmarks associated with the file.

### Claim 13 (depends on 9)

The method of claim 9, wherein adding the hash value to a first data structure further comprises clearing the second data structure.

### Claim 14

A system comprising:
at least one computing device; and
a landmark engine adapted to:
add a generated hash value to a first data structure, wherein the generated hash value is associated with a position in a sequence of hash values;
determine, based on the position associated with the generated hash value, if the generated hash value is a last hash value for a current window, wherein the current window is associated with a range of positions in the sequence of hash values; and
if so, associate a minimum hash value from the first data structure according to a predefined ordering method with the window.

### Claim 15 (depends on 14)

The system of claim 14, wherein the landmark engine is further adapted to receive a file or a data stream, and generate the sequence of hash values from the received file or data stream.

### Claim 16 (depends on 15)

The system of claim 15, wherein the landmark engine is further adapted to associate the minimum hash value with the received file or data stream as a landmark.

### Claim 17 (depends on 14)

The system of claim 14, wherein the landmark engine is further adapted to:
determine one or more hash values from the first data structure that are greater than the generated hash value according to the predefined ordering method; and
remove the one or more determined hash values from the first data structure.

### Claim 18 (depends on 14)

The system of claim 14, wherein the landmark engine is further adapted to:
determine one or more hash values from the first data structure that have an associated position that is outside of the range of positions associated with the current window; and
remove the determined one or more hash values from the first data structure.

### Claim 19 (depends on 14)

The system of claim 14, wherein the landmark engine is further adapted to:
determine if the generated hash value is greater than a threshold value according to the predefined ordering method; and
if so, add the generated hash value to a second data structure.

### Claim 20 (depends on 19)

The system of claim 19, wherein the landmark engine is further adapted to add the generated hash value to the first data structure if the generated hash value is not greater than the threshold value according to the predefined ordering method.
