×

Method and system for creating a perfect hash using an offset table

  • US 6,014,733 A
  • Filed: 06/05/1997
  • Issued: 01/11/2000
  • Est. Priority Date: 06/05/1997
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer system including a range of values, a method of converting a non-contiguous subset of values in the range into a contiguous or mostly contiguous smaller range with a perfect hash, comprising the steps of:

  • selecting the subset of values from among the values in the range;

    organizing the range into a two-dimensional matrix, one dimension of the matrix representing pages and the other dimension representing offsets into the pages, the matrix at each intersection of a page and offset into the page including mapping information therein indicative of whether the value represented by that intersection is a selected value in the subset; and

    converting the matrix into a one-dimensional array by selecting each page, testing the mapping information on each page for conflicts with mapping information in the one-dimensional array, shifting each page an amount until no conflicts are detected, overlaying the mapping information in the page onto the one-dimensional array at the shifted position, and recording the shift amount.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×