# US 2022/0291925 A1 · Parametric filter using hash functions with improved time and memory

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

- Number: US 2022/0291925 A1
- Document ID: US20220291925A1
- Status: Published application
- Kind: A1
- Application number: 17/674,710
- Filed: 2022-02-17
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Raytheon BBN Technologies Corp.
- Applicants: Raytheon Bbn Technologies, Corp.
- Inventors: Andrew Phillips Wagner
- Web page: https://patentgrep.com/patent/US20220291925A1

## CPC

- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30032: {Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE}
- G06F 9/3004: {to perform operations on memory}
- G06F 16/2255: {Hash tables}
- G06F 16/9014: {hash tables}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Method for searching an item using a parametric hash filter includes forming an input vector from input data stream; forming a hash matrix having a first portion and a second portion; multiplying the hash matrix with the input vector to generate a second input vector including a hash values of the first input vector; generating a perfect hash vector and a universal hash vector, by applying a smooth periodic function to the second input vector; mapping onto a Markov random field the coordinates of locations of hash values in a search domain for which there is no possibility of collisions in the perfect hash vector to form an energy function; minimizing the energy function to generate a compressed hash table; fitting a band of acceptable locations in the compressed hash table, based on a predetermined false positive rate; and searching for a new item in the band of acceptable locations.

## Claims

### Claim 1

A method for searching an item in a search domain using a parametric hash filter, the method comprising:
receiving the item in a data stream;
forming an input vector from the data stream;
forming a second data structure as a hash matrix having a first portion and a second portion;
multiplying the hash matrix with the input vector to generate a second input vector including a data structure for hash values of the first input vector;
generating a third data structure for a perfect hash vector including coordinates of locations of hash values in the search domain for which there is no possibility of collisions and a fourth data structure for a universal hash vector including coordinates of locations of hash values in the search domain for which there is a possibility of collisions, by applying a smooth periodic function to the second input vector, wherein the first portion of the hash matrix ensures that there is no possibility of collisions between the hash values in the search domain;
mapping onto a Markov random field the coordinates of locations of hash values in the search domain for which there is no possibility of collisions in the perfect hash vector to form an energy function;
minimizing the energy function to generate a compressed hash table;
fitting a band of acceptable locations in the compressed hash table, based on a predetermined false positive rate; and
searching for a new item in the band of acceptable locations.

### Claim 2 (depends on 1)

The method of claim 1, wherein minimizing the energy function is executed by plugging in Δ in the energy function, where Δ is slope of each nearest neighbor value in the hash matrix.

### Claim 3 (depends on 1)

The method of claim 1, wherein minimizing the energy function is executed by mapping the hash matrix onto a Markov random field.

### Claim 4 (depends on 1)

The method of claim 1, wherein minimizing the energy function is executed using a numerical minimization software library (MINUIT).

### Claim 5 (depends on 1)

The method of claim 1, wherein minimizing the energy function is executed using a steepest descent minimization approach.

### Claim 6 (depends on 1)

The method of claim 1, wherein the parametric hash filter varies a last
log
⁡
(
1
ϵ
)
rows of the hash matrix to find parameters that minimize a Markov energy function, where E is a predetermined false positive rate.

### Claim 7 (depends on 1)

The method of claim 1, wherein membership in the search domain is determined by evaluating the band of acceptable locations for a given input and comparing the value of Q′ to a function of P, by verifying |f(P)−Q′|<δ where δ is chosen to satisfy a predetermined false positive rate ϵ, where Q′ and P are hash keys.

### Claim 8

A parametric hash filter for searching an item in a search domain, comprising:
an input circuit for receiving the item in a data stream;
a shift register for forming a first data structure as an input vector from the data stream;
matrix circuitries for forming a hash matrix having a first portion and a second portion;
a matrix multiplier for multiplying the hash matrix with the input vector to generate a second input vector including a data structure for hash values of the first input vector; and
a controller for generating a third data structure for a perfect hash vector including coordinates of locations of hash values in the search domain for which there is no possibility of collisions and a fourth data structure for a universal hash vector including coordinates of locations of hash values in the search domain for which there is a possibility of collisions, by applying a smooth periodic function to the second input vector, wherein the first portion of the hash matrix ensures that there is no possibility of collisions between the hash values in the search domain, wherein the controller maps the coordinates of locations of hash values in the search domain for which there is no possibility of collisions in the perfect hash vector onto a Markov random field to form an energy function; minimizes the energy function to generate a compressed hash table; and fits a band of acceptable locations in the compressed hash table, based on a predetermined false positive rate, and wherein
a new item is searched in the band of acceptable locations.

### Claim 9 (depends on 8)

The parametric hash filter of claim 8, wherein minimizing the energy function is executed by plugging in Δ in the energy function, where Δ is slope of each nearest neighbor value in the hash matrix.

### Claim 10 (depends on 8)

The parametric hash filter of claim 8, wherein minimizing the energy function is executed by mapping the hash matrix onto a Markov random field.

### Claim 11 (depends on 8)

The parametric hash filter of claim 8, wherein minimizing the energy function is executed using a numerical minimization software library (MINUIT).

### Claim 12 (depends on 8)

The parametric hash filter of claim 8, wherein minimizing the energy function is executed using a steepest descent minimization approach.

### Claim 13 (depends on 8)

The parametric hash filter of claim 8, wherein the parametric hash filter varies a last
log
⁡
(
1
ϵ
)
rows of the hash matrix to find parameters that minimize a Markov energy function, where E is a predetermined false positive rate.

### Claim 14 (depends on 8)

The parametric hash filter of claim 8, wherein membership in the search domain is determined by evaluating the band of acceptable locations for a given input and comparing the value of Q′ to a function of P, by verifying |f(P)−Q′|<δ where δ is chosen to satisfy a predetermined false positive rate ϵ, where Q′ and P are hash keys.
