CA2130897A1 - Data compression using hashing - Google Patents

Data compression using hashing

Info

Publication number
CA2130897A1
CA2130897A1 CA002130897A CA2130897A CA2130897A1 CA 2130897 A1 CA2130897 A1 CA 2130897A1 CA 002130897 A CA002130897 A CA 002130897A CA 2130897 A CA2130897 A CA 2130897A CA 2130897 A1 CA2130897 A1 CA 2130897A1
Authority
CA
Canada
Prior art keywords
hash
data
subblock size
match
hashing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
CA002130897A
Other languages
French (fr)
Inventor
Mark D. Graybill
Dean K. Gibson
Donald H. Harris
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Intersecting Concepts Inc
Original Assignee
Intersecting Concepts Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US07/843,982 external-priority patent/US5406278A/en
Application filed by Intersecting Concepts Inc filed Critical Intersecting Concepts Inc
Publication of CA2130897A1 publication Critical patent/CA2130897A1/en
Abandoned legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/3084Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction using adaptive string matching, e.g. the Lempel-Ziv method
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/005Statistical coding, e.g. Huffman, run length coding
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/3084Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction using adaptive string matching, e.g. the Lempel-Ziv method
    • H03M7/3086Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction using adaptive string matching, e.g. the Lempel-Ziv method employing a sliding window, e.g. LZ77

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Compressing a sequence of characters drawn from an alphabet uses string substitution with no a priori information. An input data block is processed into an output data block comprised of variable length incompressible data sections and variable length compressed token sections. Multiple hash tables are used based on different subblock sizes for string matching, and this improves the compression ratio and rate of compression. The plurality of uses of the multiple hash tables allows for selection of an appropriate compression data rate and/or compression factor in relation to the input data. Using multiple hashing tables with a recoverable hashing method further improves compression ratio and compression rate. Each incompressible data section contains means to distinguish it from compressed token sections.

Description

-93/17~03 2 ~ ~ PCT/US92~ 97 DATA COMPRESSION USING HASHING

BACKGROUND

.
Compressing digital input data into output data at a high compression ratio and high compression rate is increasingly valuable for efficiently operating computers, transmitting and transferring data over communication channels, and for storing data.
'~:
This invention relates to compressing a stream of inpùlt data into a compressed stream of output data.
In particular, the system is for use, for instance, with ~ -computers, modems, data storage techni~ues, and data transmission and display.
' Lossless data compression involves the process of transforming a body of data to a typically smaller representation from which the original can be reconstructed at a later time. ~hus data that is compressed and then subsequently decompressed must always 2~0 ~ be~identical to the~original.

;Ideally~,~data compression should be at~a high ~ -compression~ratio and/or a high aompression rate. The use ;~
of a minimum amount of storage and steps to effect -~
compression usually is required to achieve these objectives.~
:
; The input data for compression- is represented as a sequence of characters drawn from some alphabet. An alphabet is a finite set containing at least one element.
The elements of an alphabet are characters. A string over an alphabet is a sequence of characters, each of which is an element of that alphabet.

W093/17503 2 1 3 0 89~` ~ PCT/US92/1119?

A common approach to compressing a string of characters is textual substitution. ~ textual substitution data compression method compresses text by identifying repeated substrings and replacing some substrings by references to other copies. Such a reference is commonly known as a pointer and the string to which the pointer refers is called a target.
Therefore, in general, the input to a data compression method employing textual substitution is a sequence of characters over some alphabet and the output is a sequence of characters from the alphabet interspêrsed with pointers.

Various data compression systems are known which utiLlize special purpose compression methods designed for compressing special classes of data. The major drawback to such systems is that they only work well with the special class of data for which they were designed and are inef ficient when used with other types of data.

Processing the input data is effected by viewing the input data in minimum subblock sizes. Thus, the input data can be considered in subblock sizes of three, four or other suitable number of bytes of input data at any one time. The determination of the correct input data subblock size impacts the rate and ratio of data compression.

One known compression technique is the Lempel-Ziv method. One such method maps variable-length segments of symbols into various length binary words. A
problem with this method is that the required memory space grows at a non-linear rate with respect to the 3S input data.

w093/17503 213089~ PCT~US92~11197 Dictionaries An impro~ed variation of the Lempel-Ziv method uses a created dictionary technique. This method requires the creation of a searchtree database. The amount of achievable compression is heavily dependent on the dictionary. Management and searching of the dictionary is time consuming, yielding low data rate-compression f~ctor product.
A different Lempel-Ziv method uses a ~ree node type structure. An input stream of data character signals is stored in a string table as strings of data character signals encountered in the input stream. This has the additional disadvantage of requiring more storage.

Hashina .
Other systems of compressing data use di~ferent techniques, such as a history array means to act as a separate dictionary of input data and an offset array means as a supportive linking table to a hash table. By using a history array means, additional memory and -~
processing time is needed, thereby also relatively reducing the compression ratio and the rate of compression.

A hash table technique for compressing data has , 30 been described in U.S. Patent No. 5,049,881 (Gibson et al.), the contents of which are incorporated by reference herein. ~Hashing avoids the need of a dictionary as used in the Lempel-Ziv methods described above. Hashing is a mechanism where input data is processed in terms of any selected mathematical procedure to produce a hash key, which is the hash table address to a hash entry, which provides storage of hash information in a hash table.

. , . ~ . .. .. . . . . .. . .

Z~13089~ 4 Hashing permits storage and retrieval of data items quickly, since the data stored in the hash table is essentially quickly indexed by a mathematical function of the data. This procedure permits for an increased rate of data compression. A hash key represents any one of a hash table address, hash table index, or a pointer to the head of a hash information list for conditional replacement, or a pointer to hash table entry which is unconditionally replaced. One or more hash table entries are referenced by each hash table key, with each entry containing hash information to identify and locate strings in t~e input data.

While the original Lempel-Ziv method effects a relatively high compression ratio, its rate of compression is relatively low compared to the hash table technique of U.S. Patent No. 5,049,881, which achieves a higher rate of compression, but at a relative loss of compresæion ratioO The present invention improves on the compresc;ion ratio while simultaneously improving the data rate over known hash table techniques. ~ ~

SU~RY ~ ' By this invention, there is provided a highly effective system, method and apparatus for compression of data using hashing. Such invented system achieves both a high ratio and a high rate of data compression.
, According to the invention, a string of input data is compressed into a stream of output data through the use of multiple hashing using at least two hash tables, each respectively for a different input data sub~lock size. A string of input characters of input data is hashed for each of the two different data subblock sizes to produce respective hash table keys.
The hashed information respectively is entered into the ~ 93/17~03 2130~97 PCT/US92~11197 ~ ~
hash table references by these hash keys or key chains of the respective hash tables. Subsequent strings of data of each of the respective subblock sizes are hashed to produce respeotive hash keys.
Searching for a hash match is effected in at least one of the hash tables. If a hash match occurs, the matching length of subsequent occurrence of the string and the backwards distance to the string is outputted as compressed data. If a hash match does not occur, at least the first character of the data-subblock is outputted as uncompressed data.

In a preferred form of the invention, a hash key for at least one of the hash tables is obtained at least in part from a hash key from a second of the hash tables.

In one other preferred form of the invention, where a hash match occurs in a table related to a larger subblock size and a hash match occurs in a table related to a smaller subblock size, the hash match in the hash . . .
table of the larger subblock size is selected as the compressed data output.
In a different preferred form of the invention, ~where a hash match occurs for multiple hash tables, there is the determination of the longer match length of the string of input data for each respective hash table, and the longer match length is outputted as the compressed data.

In yet a further preferred situation, wherein the one subblock size is larger than the second subblock size, hash keys for the larger subblock size are computed using at least part of the hash key of the hash data ~rom the smaller subblock size.
.

` WO93/17503 ` PCT/VS92/1119~
2~3~89~7 6 In another preferred aspect of the invention, wherein a larger .~ubblock size does not match on the minimum match length, the smaller subblock hash key is selected where such smaller subblock key matches for its respactive minimum length. When the hash match occurs in a table related to the larger subblock size relative to :
the hash match in a table related to the smaller subblock size, the hash match of the larger subblock size is selected as the compressed data output.

A further preferred different aspect of the ~
invention relates to employing a hash key from a hash :~.
miss in a hash recovery method whereby a reduced number ~.
of operations is required for hashing. Such system is applicable for a single hash table or multiple hash tablec. A hash miss is a situation whexe there is hash ~:
information at the entry referenced by the hash key referencing a prior string which doe~ not match the current string, and therefore, no hash match occurs. -~~
A ~urther preferred different aspect of the invention reuses a hash key when no hashing match occurs to quickly compute new hash keys ~or the next input source location whereby a reduced number of operations is required for computing hash keys. Such system is applicable for a single hash table or multiple hash tables.

: A further preferred aspect of the invention relates to selectively applying a matched hash from either the larger subblock hash or the smaller subblock hash for compressing the input data, the selection is effected in relatton to the input data and a determination of at lPast one of whether the compression 3S ratio and compression data rate is higher for compression with the larger subblock size match or the smaller subblock size match.

213C~897 . ..~
~-093/17503 ~i ,, )~; PCT/US92/11197 Either one or more of the hash tàbles can selectively retain at each key, hash information which can be only a source pointer to input data, or a pointer to hashed information which contains a source pointer and additional data. The entries in either one or both of the hash tables can be selectively unconditionally replaced or conditionally replaced or removed on the occurrence of subsequent hash keys being computed.

The invention is directed to subblock sizes, preferably of three for a first hash table and four for a second hash table.

The invention provides a method, apparatus and system for data compression. The use of multiple hashing tables provides for an e~hanced compression ratio. The use of the hash recovery method provides an enhanced ~ -compression rate. The systems can be used independently or toge~ler. Both of these methods applied together provide a highly effective data compression ratio and data compression rate.

The invention is further described with reference to the accompanying drawings.
DRAWINGS

Figure 1 is a flow diagram of a compression method of the present invention utilizing two hash tables.

Figure 2 is a flow diagram of a decompression method of the present invention.

Figure 3 is a block diagram of the general ~ ~
encoding strategy of the present invention. ~ ~-': ' wog3/~7s~3 Z1308''''' '~ t~` PCT/US9~/11197~, ~

2~ is a block diagram of a search function for ASCII text.

Figure 5 is a block diagram of compression apparatus used to perform the present invention.

Figure 6 is a block diagram of recoverable hashing apparatus used in Figure 5.
:, Figure 7 is a block diagram of decompression apparatus used to perform the present invention.~ ~ :

Figure 8 is a block diagram illustrating an example hash table.
DESCRIPTION

Data ComPression Throuah Multiple Hashinq _ . -' Input data is scanned creating references to various input data subblock st~ings through the use of a multiple, recoverable, hashing function.

The following definitions are useful:
Hashing -- The act of performing computations on an input data subblock to produce a hash table key.

Hash Table Entry -- An occurrence of the hashed input data reference. May contain an input data source pointer or other information.

Hash Table -- A collection of hash table entries, grouped together by common input data subblock size.
.

2~30897 ~93/17503 ~ . PCT/USg2/11~97 Hash Ta~le Key -- An index or index computed from an input subblock or index of data to locate one or more hash table entries likely to contain references to . ~-matching subblocks. .

Hash Table Information :
-- Contents of a hash table entry that references input data previously hashed.
In Figure 8 there is a hash table block diagram ~:
example illustrated with reference to these definitions.
A typical hashing algo~ithm is illustrated for the string of input: characters "ABC".
An example hash collision would be where a .
different hashed input data subblock would re~ult in the ~ :
same hash key value of 902. An example hash miss would by where. the comparison of string "ABC" with a prior .;
string pointed to be the input source pointer of the hash information contained at hash table entry referenced by ~ .
key 902 does not match.
, Different data subblock sizes are established :~
for each hash table. As each input data subblock for each hash table is scanned, multiple checks for a prior occurrence of the same string are performed~

If a prior occurrence of.a string of da~a is :discovered, an encoding;is effected and a compression : token is stored in the output~data block. The token -contains:, at a minimum, means to identîfy the output ~
token,~means to represent a backwards distance from the .
current:string to the previous occurrence of the string, : and means to represent a count of the number of matching characters in the two strings. This represents an output -~
of the subsequent occurrences of the string as compressed ~ J~ ?~ .. : , WO93~17503 2~3~97 PCT/US92/111~,~7 data. If a hashed match of data for each of the minimum subblocks does not occur, the data is outputted as a string of uncompressed data.
'~
Hashing of input data refers to the process of performing a series of mathematical operations on input data blocks of the selected subblock size to arrive at a result, or hash key which occupies less number of bits than the original input data subblock. In this manner, hash keys can be used with high probability to reference input data subblocks without using inordinate amounts of memory storage. Effective results are obtained with hash table total memory consumption of l.5 kbytes.
...
References that are made in error, that is, when two different data subblocks hash to the same hash key, are called hash collisions. In general, hash computations are chosen as a design trade-off between computation complexity (time) and number of hash collisions. A hash "hit" means a string comparison match to a current input subblock and some prior input subblock refèrenced by the hash information stored in a hash entry referenced by a hash key. Likewise, a hash "miss" means a string comparlson mismatch, or hash collision.
There are many suitable hashing techniques that can be used to effect the multiple hashing system. In general, hash computations which are more complex will offer a reduction of hash collisions (higher compression ;
ratio) at ~he expense of compression rate. An appropriate selection of hashing technique can be made according to design criteria, such as whether data rate or compression has a higher priority in respect of each other. If the designee has a prior knowledge of the statistical distribution of the input data, a preferred ~ -~
selected hashing technique or lgorithm can be used on ;
that data~ ~ ~

~ ~' WO g3/175~3 2~308~7 Pcr/usg2/tl197 11 ' ..
The smallest hash subblock is chosen such that if a hash match occurs, and the match count is exactly ~-the size of the subblock, then the number of bits used in the output block will be no more than the number of hits in the inpu~ data subblock. In this manner, the maximum growth when incompressible data is encountered i5 limited to a very low percentage.

Com~ression Figure 1 presents the general flow diagram for compressing data. The system includes the following characteristics: (1) two hash ta~les, 1 and 2 using respe~t.ively a different input data subblock size; the one has~l table having a larger subblock size and the second hash table being for a smaller subblock size; (2) each hash table entry contains only a source pointer to previous input data;, (3) unconditional replacement of hash table entries is employed as a means of dealing with hash collisions and minimizing required hash table memory; (4) a recoverable hashing function when hash misses occur is employed to minimize processing time, and by this process, at least part of the hash key of one of the hash tables is determined from the hash key of the second of the hash tables; and (5) priority is given to matches by the second hashing function utilizing a larger ~-subblock size. Input characters of respective subblock sizes~ are hashed to provide hash keys. Encoding of the data in the output stream is effected by any appropriate method.

In the flow diagram of Figure 1, the various syr~ols are defined as follows: ~

::

wo 93/17~03 2130897 PCT/US92~11197~
12 ~ `
Hash tables contain only source pointer (i) ;
0 < i S 8195 S0 . . . St = input data block K ~ 8195 i = source index, or source pointer (i) ~-0 ~ i < 8195 M = hash table l subblock size Let j = DES pointer = DES index ~ ~
N = Hash Table 2 subblock size Tl, T2, T3 = Temp Store, H = result of hash computation Referring to (A) in the flow diagram, various initialization steps are performed before an input data block can be processed. A pointer to the current input data character, hereinafter called S~C poin~er (i) is initialized to point to the beginning of the input data block (S0 . . . S~). A pointer to the data area to ~; contain the compressed,or processed input data, (j) hereinafter called DES pointer is also initialized.
Additionally, the hash tables (HM~ HN) are initialized with a reference SRC pointer value to minimize the probability of falsely declaring a string match when a particular hash has yet to be used during the processing of a s~ingle input block. Typically, the reference value is set equal to~the beginning SRC pointer, and later, when the backwards distançe is computed, a check is made ;~
to~make sure~the~ba~kwards distance is greater than zero.
Various~methods exist to one skilled in the art to properly~account~for and~-~reject false matches. Node I
(Nl) is the top of the repetitive portion of the -processing loop, where a check for all of the input data eing processed is performed.

Referring to (B), a temporary store (T~) is ~-3S loaded with the current contents of the SRC pointer.
; Later, when a string match is detected after several increments of the SRC pointer, the amount of ~
~:~: : ::: ~

~vog3/17503 ~3~ `PCT/VS92~11197 incompressible data can be computed. Then a check is made to see if the amount of incompressible data has reached the limit of the encoder. In this embodiment, the encoder uses a count value for incompressible data, though other techniques would be equally suitable. If the incompressible data count has reached the limit of the encoder, then the incompressible data is encoded, the DES pointer is updated by the number of bytes used in the encoding process, and temp store (Tl) is again loaded with the SRC pointer to prepare for the next section of incompressible data.

Referring to (C), input data for the smaller subblocX: for hash table l are read in preparation for the recovera~ble hash computation to be performed in (D). In general, recoverable hash computations have the characteristic of each byte of the input subblock going through the same mathematical operations. These operations are capable of being reversed. The effect of the fir~t byte of the input subblock on the final hash -~
key can be removed from the final hash key by performing yet another set of reversal mathematical calculations using the final hash key and the first byte of the input subblock. This yields a hash key for the remaining bytes of said input subblock.

Consider the string ~'ABCDEABCD", with a subblock size for hash table l of 3, and a subblock size for hash table 2 of 4. To start, hash table l hashes the string "ABC" to produce a key K11, and hash table 2 hashes the string "ABCD" to produce a key K21. Since this -is the first hash computation, a hash match is not found ~ `
in either hash table, and the input source pointer is incremented to point at "BCD" and "BCDE" re~pectively.
Note that key K21 is based on the string "ABCD", while the key about to be computed, K~2, is based on the string "BCD". Rather than computing Kl2 directly from the string W093/17~03 2~30~ P-~ PCT/US92/11197 "BCD", a shorter, faster computation is made using the character "A" and K2~. The computation removes the effect of the character "A" on K2~, yielding Kl2. Utilization of this special recovery hash computation allows for much ~uicker hash computations when hash misses occur, as will be demonstrated in the discussion below. Note 1 provides an example and more details of the recovery hash calculation in step (D).

In step (E), the hash key computed in step (D) is used as an address into hash table 1. The old contents at that address are then unconditionally replaced with the SRC pointer contents at the hash key H~, and the old contents are placed in temp store T2 for later 1~ string comparisons.

In step (F), the number of additional bytes necessary over step (C) to constitute the larger subblock siæe are read in preparation for the second recoverable hash value H2 computed in step (G). The hash table 2, hash key H2 in (G) is computed using the hash key H
computation obtained in (D), and the additional input data bytes read in (F). The characteristics and goals of these computations are identical to those in step (D).
Note 2 provides an example and more details of the recovery hash calculation in step (G).

Step (H) performs for hash table 2 the same function as step (E) does for hash table 1. After completion of step (H), both hash tables have been updated with the SRC pointer at their respective hash -keys Hl and H2, and two temp stores Tl and T2 with previous string match candidate pointers have been prepared.
Giving preference to the longer subblock matches, step -(I) compares the string pointed to by temp store T3, namely the prior contents of H2 with the string pointed to by the SRC pointer.
.

, .. ... .. ... .. ... .... ... .

~093/l7503 2130 ~ ~ t ~ ~ h PCT/US92/1l~97 If the match length at T3 i5 greater than or equal to the length of the smaller subblock M, step (J) is performed. Otherwise step (N) is performed.
. .
Step ~N) is the counterpart of step (I) for the -first hash table 1 containing keys H, based on the smaller subblock size hash computation. If no match for the larger subblock string pointer in temp store T3 is obtained, then ~he same test is made for the string pointed to by temp store T2 and the string pointed to by the SRC pointer. ~f the match length in step (N) is greater than or equal to the length of the smaller subblock M, processing continues at step (J). Otherwise, processing continues at step (O).
In step (J), the backwards distance of the -matching string from the SRC pointer is computed and tested for being valid, i.e., greater than zero, and less -~-than the maximum backwards distance that the encoder can represent. In most embodiments, the backwards distance limit of bytes of data would be 4096 to 8192, depending ~ -on the number of bits used in the encoder for backwards . :
distance.

If the backwards distance computed in step (J) is within limits, then in step (K) incompressible data is encoded and the DES pointer (j) is updated.

Processing continues in step (L), and ~ ~
compression occurs with the encoding of the backwards --distance and match count. Depending on the `
inoompressible data count in step (K), it could be feasible to utilize a special compression token in step (L). This token could also contain an incompressible data count as well as a match count and backwards distance, and would allow the combining of steps (K) and 3 Z ~ PC~/US92/11197 (L) into one "hybrid" token containing both incompressible and compressible data.

In step (M), the SRC pointer is then adjusted by the match count so that the next input data subblock to be considered will be that just beyond the matching string, and processing continues at the top of the loop at node Nl.

If the backwards distance in step (J) is not within limits, or if no matches longer than min mum match length were found in steps (I) or (N), then processing continues at step (0). The SRC pointer (i) is incremented by one to prepare for another multiple recoverable hash computation series. Step (P) is a repeat of the functionality in step (B). A check is made for the incompressible data count being at the limit of the encoder, and encoding of the incompressible data if - -~
necessary.
Processing continues at step (Q), where the first byte of the previous subblock is read in `~;~
preparation for the recovery hash computation performed- ;
. .: .
in step (R).
The conditions present at step (R) permit the hash~key H~ computation for the smaller subblock based hash table 1 to be performed in a reduced number of clocks. The previous hash key H2 computation for hash ~-table 2 obtained in step (U) or step (G) with input data is used, rather than computing directly from the input data. Thus, for the recoverable hashing computation~

HI(~ = F(H2~ S~O) 3 S = F ( S~3 . . O S~l+N I)) w~93~17503 ~ ~CT/US92/11197 Any computation series which obeys the above rules can be used. Note 3 provides an example and more details of the recovery hash calculation in step (R).

Steps (S), (T) and (U) for the smaller hash key Hl are identical to steps (E), (F) and (G), in which the larger subblock hash key H2 is computed.

Processing then continues at step (H) in the manner and sequence described above.

ExamPle of Compression For the preferred embodiment, M=3, N=4, hash ~ :
table 1 size = 2048 bytes, hash table 2 size = 4096 bytes. :~

Note 1: For the preferred embodiment, the -recoverable hash table 1, hash key va~ue H~-= f(S
Sfi+MI) is computed in step (D) using the following steps~

1. Shift left first byte (multiply by 2) ;
2. Exclusive OR ~econd byte with result of 1 :
3. Shift left result of 2 (multiply by 2) :~ :
4. Exclusive OR third byte with result of 3 .::
5. Shift left result of 4 (multiply by 2) Note 2: For the preferred embodiment the recoverable hash table 2, hash key value H2 = f(S~
30 S~I~NI) is computed in steps (G) and (U) using the following StePS: ~ : :
6. Exclusive OR fourth byte with result of Note 1, step 5 7. Shift left result of 6 ~multiply by 2) ~ ~:

0897 PCT~US92/11197 Note 3: For the pref erred embodiment, the recoverable hash table l, hash key value H3 = F(H2, (S~
is computed in step (R) using the following steps:
8. Shift left the byte at SRC pointer minus 1 four times (multiply by 16, because the first byte is represented in the four byte hash multiplied by 16) 9. Exclusive OR previous four byte hash with result of 8 Since operations 8-9 yield the same result as operations 1-5 when hash misses occur, a substantial data rate improvement can be obtained through reduced steps.
This eliminates the steps of reading the input data and performing many computations over again, and hence ~ ~ -improves the rate of data compression.
.. .:, Decomp~ession When the information is decompressed back to its original form, the general form of the decompression as illustrated in ~igure 2 is utilized. An identification header (ID) in the data "output" stream which is to be decompressed may contain a single bit to -~
distinguish between incompressible and compressible data.
Alternatively, there may be multiple bits to distinguish between incompressible data tokens and many different compressible data tokens containing backwards pointers and match counts of varying length.

The flow chart for the decompression method is illustrated in Figure 2. In s ep (AA), both the SRC
pointer which points to the compressed data, and DES
pointer, which points to the decompressed data, are ~-initialized. Next, in step (BB), the count value is obtained from the ID header as well as the indicator as . .

~093/17503 2~31~l39t7 "~ fJ" .~ r. ~P~/US92/11197 to whether this ID header is for a compressed token or if incompressible data follows. If incompressible data follows, step (CC) is performed. A copy pointer is set to be equal to the SRC pointer plus the ID header size, 5 then the SRC pointer is incrPmented by the match count value plus the ID header size. If a compressed token follows, then step (DD) is performed instead. The copy ~ -~
pointer is set to the DES pointer minus the backwards distance in the token, and the SRC pointer is incremented by the ID he~der size plus the compressed token size.

In both the incompressibla data and compressible token cases, the count number of bytes obtained in step (BB) are copied from the copy pointer to the DES pointer in step (EE). In step (FF), the SRC ;
pointer is examined to see if all of the source data has been processed. If not, procPssing resumes again at step (BB)-Encodina Figure 3 diagrams a general encoding format of the compressed output data. The compressed output data consists of variable length sections. An input data block of uncompressed data is shown in relation to an output data block having co~pressed data and uncompressed data.
, The hashing subblock size for hash table 1, namely 3, and the subblock size for hash table 2, namely 4, are shown in Fi~ure 3.

Each se~tion could be one of the following :

(1) an identification header signifying incompressible data, followed by incompressible data W093/~7503 2130~9~ - ` PCT/US92/11197 (incompressible token~ sections l and 3 of Figure 3;
or (2) an identification header signifying compressed data, followed by a match count and backwards pointer (compressed token) sections 2 and 4 of Figure 3, or (3) an identification header signifying both incompressible data and compressed data, followed by a match count, backwards pointer, and incompressible `~
data. For reconstruction purposes, the incompressible data could appear before or after the compressed data, hybrid token.

Sections of type (l) tend to be used for incompressible data counts that grow very large, such that the worst case growth of the section is very small.
Sections of type (2) tend to be used for compressed tokens that have very large match count values, or v~P~
large backwards distances, or both. Such sections need a large number of bits.
,, " ~, Sections of type (3) tend to be used when both the~incompressible count and the match count and the backwards distance reguire a smaller number of bits. In this manner, usage of sections of type (3) will result in `~
less;bits being used in the compressed output data because of eliminating unnecessary ID headers which typically take~8 bits.
`~
Example of Compression and Encodinq An encoding example is demonstrated in Figure 4 of the ASCI I string "ABCDABCJABCDABCIABCDA" using the preferred embodiment of the present invention with section types (l) and ~2), and (3) discussed above with regard to Figure 3.

2130897; i~ RcT/us92/lll97 Two hash tables are used, with hash table 1 ~orking with a subblock size of three bytes, and hash table 2 working with a subblock size of f~ur bytes. Hash table 2 is given preference in matching, i.e., if matches on larger subblocks occurs, any hash hik on the smaller subblock hash table is ignored. Both hash tables usa ~;
unconditional replacement to deal with hash collisions.

In the beginning, the strings "ABC", "ABCD", "BCD", IlBCDAll, "CDA'I, ''CD~BIl, IlDAB'l, and "DABC" are not referenced in either hash table, so the SRC pointer is incremented by one until it reaches a value equal to the starting SRC pointer plus four. At this point, hash table l obtains a hit, because the string "ABC" at offset four, matches the string "ABC" at offset zero. The output, after encoding this hit, consists of an ID header denoting incompressible data, followed by the four bytes -~-of incompressible data. This is followed by an ID header indicat:ing co~pressed data with a count of 3, followed by a backwards pointer of one byte to represent an offset of 4.

Next, the SRC pointer is incremented by the match count, so that the SRC pointer points to the string `~
"JA~" at offset 7. Both hashes miss on the string "JAB"
and "JABC", so the SRC pointer is incremented by one to try the strings "ABC" and "ABCD". Both the 3 byte subblock hash and the 4 byte subbloc~ hash tables now have a "hit", but the 4 byte subblock hash is given preference. The string at offset 8 is compared to the ;~
string at offset 0, and the matching string "ABCDABC" of length 7 is found. The output compressed stream is then updated with an incompressible count of one,followed by the incompressible ~IJI~, followed by a compressible count of 7, followed by a backwards distance of 8, using the "hybrid" token.

WO93/17S03 213~8~ PCT/US92/11197 The SRC pointer is then incremented by 7, and the process continues. At offset 16, a similar "double hit" occurs. The hash match from hash table 2 is given preference, such that a match length of 5 is encoded.
Figure 4 demonstrates the advantage of multiple hashing over a single hashing method. At offsets 8 and 16, the dual hashing method "hits" on string matches of 7 and 5 bytes respectively, while a single 3 byte hashing method would have only matched on 3 bytes and 3 bytes respectively. Although a single 4 byte subblock hash would have found the matches at offsets 8 and 16, it would have missed the 3 byte match at offset 4. The benefit of multiple hashing is that the compression method can be biased towards locating long string matches without sacrificing short string matches.

Ap~aratus and System for Com~ression An example of apparatus used in the preferred compression method is illustrated in Figure 5.

A store logic is responsible for moving input data into a circular buffer for subsequent reference.
After each store, the internal address is incremented.

A recoverable dual hash generator acts as the temp store and remembers the last several bytes and prior hash table 2, hash key, depending on the selected subblock sizes for the hash tables. After a reset/clear signal has been applied, as each input data byte is received, two new hash key values are generated from the recoverable dual hash generator. Each of the two hash tables in memory retrieves the respective key value associated with a respective hash key. The prior address is unconditionally replaced with a new input data address fro~ the store logic.

... ~ . , .. ~ . , ~ , . . ........ .. .

.~093/17503 2~30~ PCT~US92/11197 23 :~
A data comparator resets a match counter, then ~ :~
computes a match count by sequentially comparing bytes in the circular buffer with input bytes. During this process, the data comparator latches the address value from hash table 2 only if the result of the previous byte compare was not equal; otherwise, it increments the previous address value from hash table 2 and increments the match counter.

~his data comparison process repeats for the beginning hash key from hash table 2 until the n~n-match condition occurs. Then, the match count value is evaluated by a minimum count comparator to determine if ~ :
the match count is above the minimum value, which is typically three bytes.
: .:
If the minimum comparator below signal is true, a hash tabl mux control line is switched so that the hash key from hash table l can be evaluated in a similar~
manner, and the match counter is reset. An output sequencer waits until either the queued counter for incompressible bytes reaches its maximum value, or until the minimum comparator shows a match count value from either hash table l or hash table 2 that is equal to or greater than the minimum value and a backwards distance greater than zero.

If the minimum comparator below signal is :~
false, the output sequencer will prepare for a match encoding by first outputting any queued incompressible :
data held in the circular buffer through the load logic, followed by an encoding o~ the backwards pointer and the match count~
-21308~7;
WO93/17503 ii PCT/USg2/11197_ Recoverable Dual Hash Generator A detailed block diagram of the recoverable dual hash generator is illustrated in Figure 6. The recoverable dual hash generator interfaces with the following major components of the compression apparatu~
of Figure 5: store logic, hash table 1, hash table 2, data comparator, minimum comparator, and other timing and control signals.
'' ~ "
After a reset/clear signal has been applied, the hash table mux control is set to select hash table 2, and the beginning accumulators from recoverable hash l logic, "input data" hash l lo~ic~ and hash 2 logic are cleared. The control logic then clocks in input data bytes to provide enough data to compute "input data" hash - l and hash 2, and places hash key value l and hash key value 2 on the output lines to the hash tables. The control logic then waits for the match signal to go false, indicating that the match length for hash 2 has been determined. If the "below minimum match" signal is true, the control logic changes the state of the hash table mux control, 50 the data comparator c~n perform a match length comparison for hash table l. This action will also causerthe data comparator to set the match signal to true, pending a byte-for-byte comparison of the string at the store address and the string in the circular buffer pointed to by the hash table l conte~ts at the hash table l hash key.
When the match signal goes false for the second time, the "below mini~m match" signal is once again tested. If the "below minimum match signal7' is true, the hash index l mux control line is changed so that the hash index l is delivered from the recoverable hash l logic, -the store logic control increments the store address, and the hash table mux control is switched back to hash table ~-~093/17503 ~30~ ~ r~r ~pcT/~s92/ll197 2. The comparison process described in the prior paragraph is then repeated. The hash key l will be -delivered from ~he recoverable hash l logic for so long as no match from hash ta~le l or hash table 2 occurs which causes the ~elow minimum match" signal to become false.
- ~ .
If the "below minimum match" signal is false, the control logic prepares as though it was starting over at the beginniny of the input data ~lock in anticipation ;~
of the output sequencer outputting incompressible data, followed by the backwards distance and match count.
:~ .
Example of Compression Svstem The following is an example utilizing the above compression apparatus.
_, ' ~ ' :
Before starting, the apparatus is reset with the "reset/clear" signal; this resets the output sequencer, clears the store logic and a load logic internal address counters, the dual recoverable hash generator internal registers, and marks the hash table entries with the beginning input address. The unused 2S hash table entries will, in the worst case, match on address location zero. In this special case, the output sequencer will throw out matches that occur with back~ards distances of zero or less, so no false matches will be declared by the compression apparatu~
Assume that the input string is "ABCABCABCABCABCDEF". As the first six characters "ABCABC" are received, the characters are stored in the circular buffer, the queued counter is incremented, and hash computations are performed on the strings "ABC", "ABCA", "BCA", "BCAB", "CAB", and "CABC". When the second "ABC" at offset 3 is read, the data comparator W093/17503 Z130~ PCT~US92/11197 reports a match from hash table 2 until a match count of length 12 is reached. The output sequencer latchPs the back pointer value from the address difference logic, subtracts the match count value from the queued counter ;~
value of 15, and then transfers 3 bytes of incompressible data from the circular buffer to the output destination, followed by the latched backwards distance and match count.

As incompressible data is transferred from the circular buffer, the queued counter is decremented.
Subsequently, the string "DEF" does not match any previous string, and is output as incompressible data with a count of 3 in a similar manner to the first occurrence of "ABC".

Apparatus and SYstem for DecomDression A~aratus A decompression apparatus is illustrated in Figure 7. The store logic stores all output data into the circular buffer for subsequent reference. After each store, the internal address is incremented. The input sequencer decodes the input data stream. If a copy count is decoded, it is loaded into the copy counter and then decremented as subsequent input data and passed through as output data. If a match count is decoded, it is loaded into the copy counter and the associated back pointer is loaded into the address difference logic. The copy counter is decremented as data from the circular buffer is obtained by the load logic and passed through as output data.

Example of Decompression Svstem An example utilizing the decompression system is now described.

~Og3/17503 Z~3~ ¢f ~ PCI~/US92/11197 Before starting, the apparatus is reset with reset/clear signal; this resets the input sequencer (note that it is not necessary to clear the store logic and load logic internal address counters).

Assume that the input string is -"{id3}ABC{id2}~bp3}{id3}DEF" in this example (the result ;~
of compressing the string "ABCABCABCABCABCDEF" from the previous example). When the first {id3} is decoded, the input sequencer loads the counter value of 3 into the copy counter and copies the string "ABC" into the circular buffer as well as sending it as output data.
When the {id2~{bp3}is decoded, the input se~uencer loads the coun1: ~alue of 12 into the match counter, loads the back pointer value of 3 into the address difference logic -~
(generating the correct load address ~alue), and retrieve~ the 12 characters "A8CABCABCABC" from the circular buffer, which are copied back into the circular buffer (this creates the last 9 characters of this string in this example), as well as sending them as output data.
When the second {id3} is decoded, the input sequencer again loads the oount value of 3 into the copy counter and copies the string "DEF" into the circular buffer as well as sending it as output data.
General Although a specific embodiment of the invention has been described with reference to the drawings, it should bé understood that ~uch embodiments are by way of example only and merely illustrative of but a small number of the many possible specific embodiments which - -can represent applications of the principles of the invention.

Various changes and modifications are possible within the spirit, scope, and contemplation of the :,,.:,...

WO93/17503 2~30897 ~: PCT/US92/1~197 invention. For instance, although the embodiments have been described with regard to two hash tables, it is possible that multiple, for instance 3, 4 or more hash ta~les can be used. Msreso, subblock sizes can be different from 3 and 4 respectively. Any appropriate size or combination can be used; for instance 4 and 5; 2 and 4; 3 and 5. Moreso, many different encoding techni~ues can be applied to code the data in the output stream.
, ~, It would still be considered within t~e scope of the invention, for example, if the system were implemented with any one or more of the following characteristics: (l) multiple hash tables using different input block sizes, where each hash table entry contains; source pointers and match counts; (2) hash tables which include a linking pointer linked list to other hash table entries and hash tables arranged with fixed assignments in rows or col D s; (3) conditional replacement of hash table entries is employed to deal with hash collisions; (4) recoverable hashing is not employed; and (5) the longest match of the multiple hashing operations is selected for encoding. Other means can b~ provided for determining whether to select a hash match on a longer or shorter subblock size thereby to obtain the desired compression rate and/or compression ratio for the input data.

Any appropriate encoding format or protocol can be used to output the compressed data. Examples include:

l. Backwards pointer and match counts of fixed length (fixed length tokens); -2. Backwards pointers and match count of variable length (variable length tokens);
3. Incompressible data tokens utilizing a flag bit;
.: .

213~8~
`~093/17~03 ~ P~T/US92/11197 4. Incompressible data tokens utilizing a count field;
5. Non-byte aligned tokens;
60 Byte-aligned tokens; and ~ :~
7. Encoding systems which pack flag bits to denote uncompressible/compressible data into groups of modulo 8 to maintain byte alignment.

~he system of compressing and decompressing : :
data in terms of the invention has multiple applications.
These include the storage of data for instance, for later computing and the transmitting and transferring of data over communication channels, such as television or radio and the like.
The scope of the invention i5 to be determined ::
in terms~of the appended claims. ; -:

' -' ."' . ~
- .:- . . -~
~, .

`' ~

Claims (41)

1. A method of compressing a stream of input data into a compressed stream of output data comprising:
(a) maintaining multiple hash tables, each respectively for a different data subblock size, and each hash table having entries having respective hash keys, (b) hashing a string of input characters of the input data for each of the different data subblock sizes to obtain the hash keys, and using these hash keys to address hash table entries containing hash information to facilitate location of string matches, (c) hashing, for each of the subblock sizes, subsequent strings of data and searching for a match of prior strings related to the information addressed by hash keys in at least one of the hashing tables, and (d) if a hash match occurs in at least one hash table outputting the subsequent occurrence of the string as compressed data, and if a hash match for each of the subblocks does not occur in any hash table, outputting at least the first character of an input subblock as uncompressed data.
2. A method as claimed in claim 1 including determining a least part of a hash key for one of the hash tables from the hash key of another of the hash tables.
3. A method as claimed in claim 1 wherein when a hash match occurs in table related to a larger subblock size and a hash match occurs in a table related to a smaller subblock size, the hash match in the hash table of the larger subblock size is selected for the compressed data output.
4. A method as claimed in claim 1 wherein where a hash match occurs for more than one hash table, determining the longer match length of the string of input data for each respective hash table, and outputting the longer match length as the compressed data output.
5. A method as claimed in claim 1 wherein where a hash match occurs in a table related to a larger subblock size relative to a hash match in a table related to a smaller subblock size, the hash match of the larger subblock size is selected as the compressed data output, and wherein the hash keys for the larger subblock size are computed using at least part of the value of hash keys from the smaller subblock size.
6. A method as claimed in claim 5 wherein when a larger subblock size does not match on minimum match length, selecting the smaller subblock size hash value if such smaller subblock value matches for its respective minimum length.
7. A method as claimed in claim 1 wherein when a hash miss occurs in the hash tables, hashing is effected for at least one of the hash tables by employing a hash key from the hash miss whereby a reduced number of operations is required for hashing.
8. A method as claimed in claim 7 wherein a value of the hash key from the hashing for one hash table is transferred at least in part into a value of the hash key for the second hash table.
9. A method as claimed in claim 7 wherein a value of hash key from the hash miss is used for obtaining a value of the hashing key from the same hash table.
10. A method as claimed in claim 9 wherein when a hash miss occurs, the hash key of the hash miss is used in the subsequent hashing by the step of at least on computation being a simple shift, or a computation being an exclusive OR.
11. A method as claimed in claim 1 such that when a hash match occurs in a table related to a larger subblock size relative to a hash match in a table related to a smaller subblock size, selectively applying the hash match from either the larger subblock size, thereby to obtain a higher compression rate or applying the longest match of both the hash matches thereby to obtain a high compression ratio.
12. A method as claimed in any one of claims 1 to 11 wherein the hashed information in relation to the input data is stored in at least one of the hash tables and is selectively only a source pointer to prior hashed subblocks or the source pointer representative of the hashed subblocks and additional data.
13. A method as claimed in any one of claims 1 to 11 wherein selectively either one or multiple of the hash table entries contain selectively only a source pointer to prior hashed subblocks, or a source pointer to prior hashed subblocks and additional data.
14. A method as claimed in any one of claims 1 to 13 wherein the hashed information in the hash entries in at least one of the hash tables is selectively unconditionally replaced, or conditionally replaced or removed on the occurrence of subsequent hashed information being directed by a hash key to the hash table entry containing information respective of prior hashed subblocks.
15. A method as claimed in any one of claims 1 to 14 wherein hashing is effected on a data subblock size of three for a first hash table and a data subblock size of four for a second hash table.
16. A method as claimed in claim 2 wherein the hashed keys for a first hash table are determined on a first data subblock size and wherein a second hash table contains keys obtained from the second subblock size, and wherein the hash keys for the first subblock size are obtained at least in part from the second hash table keys.
17. A method of compressing a stream of input data into a compressed string of output data comprising:
(a) maintaining a hash table for a data subblock size, the hash table having hash keys, (b) hashing a string of input characters of the input data for the data subblock size and entering the hash information into hash table entries addressed by hash keys, (c) hashing, for the subblock size, subsequent strings of data and searching for a match of prior strings related to the hashed information addressed by the hash keys in the hash table, (d) if a hash match occurs, compressing and outputting the subsequent occurrence of the string as compressed data, and if a hash miss occurs, outputting at least the first character of the subblock as compressed data, and (e) when a hash miss occurs in the hash table, hashing is effected for a next key for the hash table by employing the key from the hash miss whereby a reduced number of operations is required for hashing.
18. A method as claimed in claim 17 including maintaining multiple hash tables, each of a different subblock size and applying the key from a hash miss of each respective table to the next key of a hash table.
19. Apparatus for compressing a stream of input data into a compressed stream of output data comprising:
(a) maintaining multiple hash tables, each respectively for a different data subblock size, and each hash table having entries having respective hash keys, (b) means for hashing a string of input characters of the input data for each of the different data subblock sizes to obtain the hash keys, and means for using these hash keys to address hash table entries containing hash information to facilitate location of string matches, (c) means for hashing, for each of the subblock sizes, subsequent strings of data and searching for a match of prior strings related to the information addressed by hash keys in at least one of the hashing tables, and (d) if a hash match occurs in at least one hash table, means for outputting the subsequent occurrence of the string as compressed data, and if a hash match for each of the subblocks does not occur in any hash table, means for outputting at least the first character of an input subblock as uncompressed data.
20. Apparatus as claimed in claim 19 including means for determining at least part of hash key for one of the hash tables from the hash key of the second of the hash tables.
21. Apparatus as claimed in claim 19 including means, when a hatch match occurs for different tables, for selecting a larger subblock size for the compressed data output.
22. Apparatus as claimed in claim 19 wherein where a hash match occurs for more than one of the hash tables, means is included for determining the longer match length of the string input data for each respective hash table, and means for outputting the longer match length as the compressed data output.
23. Apparatus as claimed in claim 19 wherein where a hash match occurs in table related to a larger subblock size relative to a hash match in table related to a smaller subblock size, means is included for selecting the hash match of the larger subblock size for the compressed data output, and wherein when the one subblock size is larger than the second subblock size, means is included for computing hash keys of the larger subblock size using at least part of the value of hash keys from the smaller subblock size.
24. Apparatus as claimed in claim 19 wherein when a larger subblock size does not match on a minimum match length, means included for selecting the smaller subblock size hash match if such smaller subblock value matches.
25. Apparatus as claimed in claim 19 wherein when a hash miss occurs in at least one of the hash tables, means is included for effecting hashing for an increased subblock size for the hash table, by employing hash keys from the hash miss whereby a reduced number of operations is required for hashing.
26. Apparatus as claimed in claim 19 wherein, when a hash match occurs in a table related to a larger subblock size relative to a hatch match and a table related to a smaller subblock size, means is included for selectively applying the hash match from either the larger subblock size or the smaller subblock size.
27. Apparatus as claimed in any one of claims 19 to 26 including means in the hash table for storing selectively only a source pointer to prior hashed subblocks or the source pointer representative of the prior hashed subblocks and additional information.
28. Apparatus as claimed in any one of claims 19 to 26 including means whereby selectively one or multiple of the hash table entries contain selectively only a source pointer to prior hashed subblocks or a source pointer to prior hashed subblocks and additional data.
29. Apparatus as claimed in any one of claims 19 to 28 including means whereby hashed information in the hash entries in the hash tables are selectively unconditionally replaced, or conditionally replaced or removed on the occurrence of subsequent hashed data being directed by a key to the hash table entry containing information representative or prior hashed subblocks.
30. Apparatus as claimed in any one claims 19 to 29 including means for effecting hashing on a data subblock size of three for a first hash table and a data subblock size of four for a second hash table.
31. Apparatus as claimed in claim 20 including means wherein the hash key for a first hash table is determined on a first data subblock size relative to hash keys for a second hash table, and means for obtaining the hashed keys for the first subblock size at least in part from data from the second hash table keys.
32. Apparatus as claimed in claim 25 including means for transferring a value of hash key from the hashing for one hash table at least in part into the value of a hash key for the second hash table.
33. Apparatus as claimed in claim 25 including means for obtaining a value of a hashing key from the hash miss for use for obtaining the value of the hash key from the same hash table.
34. Apparatus as claimed in claim 19 wherein when a hash miss occurs in the hash table, means is included for effecting hashing for a next key for the hash table, by employing hash keys from the hash miss whereby a reduced number of operations is required for hashing.
35. Apparatus as claimed in claim 34 including means for maintaining multiple hash tables, each for a different subblock size and means for applying the key from a hash miss of each respective table to the next key of a hash table.
36. A generator for hashing a stream of input data comprising:
(a) interfaces to multiple hash tables designating a different data subblock size for each hash table, (b) means for hashing strings of input characters of the input data for each of the different data subblock sizes to produce hash keys, and means for entering the hash information into hash entries of the hash table addressed by hash keys, and (c) means for producing multiple hash keys for each of the subblock sizes.
37. A hash generator as claimed in claim 36 wherein there are two hash tables, and wherein a smaller subblock size is designated for a first hash table and a larger subblock size designated for a second hash table.
38. A generator as claimed in claim 36 comprising means for producing hash keys for a larger subblock size from hash keys of smaller subblock size.
39. A generator for hashing a stream of data comprising:
(a) interface means to a hash table with a designated input data subblock size for the hash table, and the hash table having hash keys, (b) means for hashing strings of input characters of the input data for each input data subblocks, and means for entering the hash information into hash entries of the hash table addressed by the hash keys, and (c) means for producing a next hash key from a prior hash key on occurrence of a hash miss.
40. A generator as claimed in claim 39 wherein there are interface means respectively to multiple hash tables, and wherein a first subblock size is designated for a first hash table and a different subblock size is designated for a second hash table.
41. A generator as claimed in claim 39 wherein there are at least two different data subblock sizes and including means for providing a hash key for a first subblock size from a prior hash key of a second subblock size.
CA002130897A 1992-02-28 1992-12-23 Data compression using hashing Abandoned CA2130897A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US843,982 1986-03-25
US07/843,982 US5406278A (en) 1992-02-28 1992-02-28 Method and apparatus for data compression having an improved matching algorithm which utilizes a parallel hashing technique
US965,331 1992-10-23
US07/965,331 US5371499A (en) 1992-02-28 1992-10-23 Data compression using hashing

Publications (1)

Publication Number Publication Date
CA2130897A1 true CA2130897A1 (en) 1993-08-29

Family

ID=27126459

Family Applications (1)

Application Number Title Priority Date Filing Date
CA002130897A Abandoned CA2130897A1 (en) 1992-02-28 1992-12-23 Data compression using hashing

Country Status (4)

Country Link
US (1) US5371499A (en)
EP (1) EP0628228A1 (en)
CA (1) CA2130897A1 (en)
WO (1) WO1993017503A1 (en)

Families Citing this family (76)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69132824T2 (en) * 1991-12-23 2002-06-27 Alcatel Sa Method of reducing the number of bits in a binary address word
US5818726A (en) * 1994-04-18 1998-10-06 Cadence Design Systems, Inc. System and method for determining acceptable logic cell locations and generating a legal location structure
US7190284B1 (en) 1994-11-16 2007-03-13 Dye Thomas A Selective lossless, lossy, or no compression of data based on address range, data type, and/or requesting agent
DE69624755T2 (en) * 1995-05-22 2003-04-24 Matsushita Electric Ind Co Ltd Information search device for searching text to retrieve strings that match a keyword
US7035914B1 (en) 1996-01-26 2006-04-25 Simpleair Holdings, Inc. System and method for transmission of data
US6021433A (en) * 1996-01-26 2000-02-01 Wireless Internet, Inc. System and method for transmission of data
US5760716A (en) * 1996-08-21 1998-06-02 Autodesk, Inc. Vector data compression
US6167426A (en) 1996-11-15 2000-12-26 Wireless Internet, Inc. Contact alerts for unconnected users
US5798718A (en) * 1997-05-12 1998-08-25 Lexmark International, Inc. Sliding window data compression method and apparatus
US6879266B1 (en) 1997-08-08 2005-04-12 Quickshift, Inc. Memory module including scalable embedded parallel data compression and decompression engines
JP3541930B2 (en) * 1998-08-13 2004-07-14 富士通株式会社 Encoding device and decoding device
US6289375B1 (en) * 1998-10-30 2001-09-11 International Business Machines Corporation Method and apparatus for invoking network agent functions using a hash table
US6885319B2 (en) * 1999-01-29 2005-04-26 Quickshift, Inc. System and method for generating optimally compressed data from a plurality of data compression/decompression engines implementing different data compression algorithms
US6145069A (en) * 1999-01-29 2000-11-07 Interactive Silicon, Inc. Parallel decompression and compression system and method for improving storage density and access speed for non-volatile memory and embedded memory devices
US6208273B1 (en) 1999-01-29 2001-03-27 Interactive Silicon, Inc. System and method for performing scalable embedded parallel data compression
US7129860B2 (en) * 1999-01-29 2006-10-31 Quickshift, Inc. System and method for performing scalable embedded parallel data decompression
US6819271B2 (en) 1999-01-29 2004-11-16 Quickshift, Inc. Parallel compression and decompression system and method having multiple parallel compression and decompression engines
US7538694B2 (en) 1999-01-29 2009-05-26 Mossman Holdings Llc Network device with improved storage density and access speed using compression techniques
US6822589B1 (en) 1999-01-29 2004-11-23 Quickshift, Inc. System and method for performing scalable embedded parallel data decompression
US7549056B2 (en) 1999-03-19 2009-06-16 Broadcom Corporation System and method for processing and protecting content
US7548622B2 (en) * 2000-07-07 2009-06-16 Broadcom Corporation System and method for the concealment of device input parameters
US7810152B2 (en) * 2002-05-08 2010-10-05 Broadcom Corporation System and method for securely controlling access to device functions
US6611213B1 (en) * 1999-03-22 2003-08-26 Lucent Technologies Inc. Method and apparatus for data compression using fingerprinting
US6775281B1 (en) * 1999-09-30 2004-08-10 Mosaid Technologies, Inc. Method and apparatus for a four-way hash table
DE60134255D1 (en) * 2000-07-25 2008-07-10 Juniper Networks Inc NETWORK ARCHITECTURE AND METHOD FOR TRANSPARENT ONLINE CROSS SECTION CODING AND TRANSMISSION OF NETWORK COMMUNICATION DATA
US6856651B2 (en) * 2000-07-25 2005-02-15 Peribit Networks, Inc. System and method for incremental and continuous data compression
US7203756B2 (en) * 2001-04-27 2007-04-10 International Business Machines Corporation Mechanism to cache references to Java RMI remote objects implementing the unreferenced interface
US7366910B2 (en) * 2001-07-17 2008-04-29 The Boeing Company System and method for string filtering
US7145911B2 (en) * 2002-03-05 2006-12-05 Hewlett-Packard Company Method and system for parallel hash transformation for an address input
US7126948B2 (en) * 2002-03-21 2006-10-24 Hewlett-Packard Development Company, L.P. Method and system for performing a hash transformation to generate a hash pointer for an address input by using rotation
US7277426B2 (en) 2002-05-24 2007-10-02 Mosaid Technologies, Inc. Method and apparatus for reordering entries in a multi probe lookup
US6744388B1 (en) * 2002-06-19 2004-06-01 Xilinx, Inc. Hardware-friendly general purpose data compression/decompression algorithm
US6915296B2 (en) * 2002-10-29 2005-07-05 Agere Systems Inc. Incremental reorganization for hash tables
US7019674B2 (en) * 2004-02-05 2006-03-28 Nec Laboratories America, Inc. Content-based information retrieval architecture
US7634655B2 (en) * 2004-02-13 2009-12-15 Microsoft Corporation Efficient hash table protection for data transport protocols
US8977859B2 (en) * 2004-05-04 2015-03-10 Elsevier, Inc. Systems and methods for data compression and decompression
GB2414834A (en) * 2004-06-03 2005-12-07 Mdl Information Systems Inc Visual programming with automated features
JP4576936B2 (en) 2004-09-02 2010-11-10 ソニー株式会社 Information processing apparatus, information recording medium, content management system, data processing method, and computer program
US7487169B2 (en) * 2004-11-24 2009-02-03 International Business Machines Corporation Method for finding the longest common subsequences between files with applications to differential compression
US7650429B2 (en) * 2005-02-04 2010-01-19 Cisco Technology, Inc. Preventing aliasing of compressed keys across multiple hash tables
US7593993B2 (en) * 2005-02-07 2009-09-22 Research In Motion Limited Method and system for message thread compression
US7592935B2 (en) * 2005-03-10 2009-09-22 Nec Laboratories America, Inc. Information retrieval architecture for packet classification
US8356021B2 (en) * 2005-03-11 2013-01-15 Ross Neil Williams Method and apparatus for indexing in a reduced-redundancy storage system
US20080022412A1 (en) * 2006-06-28 2008-01-24 David Carroll Challener System and method for TPM key security based on use count
US20080001790A1 (en) * 2006-06-30 2008-01-03 Kyle Kirby Method and system for enhancing data compression
US8819288B2 (en) * 2007-09-14 2014-08-26 Microsoft Corporation Optimized data stream compression using data-dependent chunking
US8750370B2 (en) * 2009-09-04 2014-06-10 Brocade Communications Systems, Inc. Congestion-adaptive compression
US9246511B2 (en) * 2012-03-20 2016-01-26 Sandisk Technologies Inc. Method and apparatus to process data based upon estimated compressibility of the data
CN103458460B (en) * 2012-05-31 2017-04-12 国际商业机器公司 Method and device for compressing and decompressing signal data
KR101956031B1 (en) * 2012-10-15 2019-03-11 삼성전자 주식회사 Data compressor, memory system comprising the compress and method for compressing data
US9231615B2 (en) 2012-10-24 2016-01-05 Seagate Technology Llc Method to shorten hash chains in Lempel-Ziv compression of data with repetitive symbols
US9251133B2 (en) 2012-12-12 2016-02-02 International Business Machines Corporation Approximate named-entity extraction
KR101992274B1 (en) * 2013-01-02 2019-09-30 삼성전자주식회사 Method for compressing data and devices using the method
GB2524515A (en) * 2014-03-25 2015-09-30 Ibm Method to improve compression ratio for a compression engine
JP6319740B2 (en) * 2014-03-25 2018-05-09 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Method for speeding up data compression, computer for speeding up data compression, and computer program therefor
GB2524516A (en) * 2014-03-25 2015-09-30 Ibm Hardware compression method finding backward references with multi-level hashes
US9438940B2 (en) 2014-04-07 2016-09-06 The Nielsen Company (Us), Llc Methods and apparatus to identify media using hash keys
US9668020B2 (en) 2014-04-07 2017-05-30 The Nielsen Company (Us), Llc Signature retrieval and matching for media monitoring
US9590655B2 (en) 2015-03-27 2017-03-07 Microsoft Technology Licensing, Llc Scalable high-bandwidth architecture for lossless compression
US10027346B2 (en) 2015-05-11 2018-07-17 Via Alliance Semiconductor Co., Ltd. Hardware data compressor that maintains sorted symbol list concurrently with input block scanning
US9509337B1 (en) 2015-05-11 2016-11-29 Via Alliance Semiconductor Co., Ltd. Hardware data compressor using dynamic hash algorithm based on input block type
US9628111B2 (en) * 2015-05-11 2017-04-18 Via Alliance Semiconductor Co., Ltd. Hardware data compressor with multiple string match search hash tables each based on different hash size
US9509336B1 (en) 2015-05-11 2016-11-29 Via Alliance Semiconductor Co., Ltd. Hardware data compressor that pre-huffman encodes to decide whether to huffman encode a matched string or a back pointer thereto
US9503122B1 (en) 2015-05-11 2016-11-22 Via Alliance Semiconductor Co., Ltd. Hardware data compressor that sorts hash chains based on node string match probabilities
US9509335B1 (en) 2015-05-11 2016-11-29 Via Alliance Semiconductor Co., Ltd. Hardware data compressor that constructs and uses dynamic-prime huffman code tables
US9515678B1 (en) 2015-05-11 2016-12-06 Via Alliance Semiconductor Co., Ltd. Hardware data compressor that directly huffman encodes output tokens from LZ77 engine
US9973499B2 (en) * 2016-01-26 2018-05-15 Blackridge Technology Holdings, Inc. Method for statistical object indentification
JP6523195B2 (en) * 2016-03-17 2019-05-29 株式会社東芝 Data compression system and method
US10168909B1 (en) * 2016-03-29 2019-01-01 Amazon Technologies, Inc. Compression hardware acceleration
US11068453B2 (en) * 2017-03-09 2021-07-20 data.world, Inc Determining a degree of similarity of a subset of tabular data arrangements to subsets of graph data arrangements at ingestion into a data-driven collaborative dataset platform
US11232075B2 (en) * 2018-10-25 2022-01-25 EMC IP Holding Company LLC Selection of hash key sizes for data deduplication
EP3764233A1 (en) * 2019-07-08 2021-01-13 Continental Teves AG & Co. OHG Method of identifying errors in or manipulations of data or software stored in a device
US11669428B2 (en) * 2020-05-19 2023-06-06 Paypal, Inc. Detection of matching datasets using encode values
JP2022121983A (en) 2021-02-09 2022-08-22 キオクシア株式会社 Character string search device and memory system
CN113542750A (en) * 2021-05-27 2021-10-22 绍兴市北大信息技术科创中心 Data coding method for searching by two or more sets of hash tables
CN113724418B (en) * 2021-08-26 2023-07-04 广州小鹏自动驾驶科技有限公司 Data processing method, device and readable storage medium

Family Cites Families (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3914586A (en) * 1973-10-25 1975-10-21 Gen Motors Corp Data compression method and apparatus
US4021782A (en) * 1974-01-07 1977-05-03 Hoerning John S Data compaction system and apparatus
US3976844A (en) * 1975-04-04 1976-08-24 Honeywell Information Systems, Inc. Data communication system for transmitting data in compressed form
US4054951A (en) * 1976-06-30 1977-10-18 International Business Machines Corporation Data expansion apparatus
US4087788A (en) * 1977-01-14 1978-05-02 Ncr Canada Ltd - Ncr Canada Ltee Data compression system
US4295124A (en) * 1979-08-13 1981-10-13 National Semiconductor Corporation Communication method and system
US4412306A (en) * 1981-05-14 1983-10-25 Moll Edward W System for minimizing space requirements for storage and transmission of digital signals
US4464650A (en) * 1981-08-10 1984-08-07 Sperry Corporation Apparatus and method for compressing data signals and restoring the compressed data signals
AU555476B2 (en) * 1981-10-15 1986-09-25 Motorola, Inc. Binary encoding
US4560976A (en) * 1981-10-15 1985-12-24 Codex Corporation Data compression
US4491934A (en) * 1982-05-12 1985-01-01 Heinz Karl E Data compression process
US4538240A (en) * 1982-12-30 1985-08-27 International Business Machines Corporation Method and apparatus for performing hashing operations using Galois field multiplication
US4677649A (en) * 1983-04-26 1987-06-30 Canon Kabushiki Kaisha Data receiving apparatus
US4814746A (en) * 1983-06-01 1989-03-21 International Business Machines Corporation Data compression method
US4558302A (en) * 1983-06-20 1985-12-10 Sperry Corporation High speed data compression and decompression apparatus and method
JPH0828053B2 (en) * 1983-08-08 1996-03-21 株式会社日立製作所 Data recording method
US4588985A (en) * 1983-12-30 1986-05-13 International Business Machines Corporation Polynomial hashing
US4612532A (en) * 1984-06-19 1986-09-16 Telebyte Corportion Data compression apparatus and method
JPS61125641A (en) * 1984-11-22 1986-06-13 Hitachi Ltd Data compression control system
GB2172127B (en) * 1985-03-06 1988-10-12 Ferranti Plc Data compression system
US4682150A (en) * 1985-12-09 1987-07-21 Ncr Corporation Data compression method and apparatus
IL77840A (en) * 1986-02-10 1989-05-15 Elscint Ltd Data compression system for digital imaging
US4730348A (en) * 1986-09-19 1988-03-08 Adaptive Computer Technologies Adaptive data compression system
JPH0815263B2 (en) * 1986-12-12 1996-02-14 株式会社日立製作所 Data compression / decompression method
US4853696A (en) * 1987-04-13 1989-08-01 University Of Central Florida Code converter for data compression/decompression
US4876541A (en) * 1987-10-15 1989-10-24 Data Compression Corporation Stem for dynamically compressing and decompressing electronic data
US4906991A (en) * 1988-04-29 1990-03-06 Xerox Corporation Textual substitution data compression with finite length search windows
US4899147A (en) * 1988-06-03 1990-02-06 Unisys Corporation Data compression/decompression apparatus with throttle, start-up and backward read controls
US4961139A (en) * 1988-06-30 1990-10-02 Hewlett-Packard Company Data base management system for real-time applications
US5032987A (en) * 1988-08-04 1991-07-16 Digital Equipment Corporation System with a plurality of hash tables each using different adaptive hashing functions
JPH0285927A (en) * 1988-09-22 1990-03-27 Hitachi Vlsi Eng Corp Memory device
US5010553A (en) * 1988-12-05 1991-04-23 Compuquest, Inc. High speed, error-free data transmission system and method
US5016009A (en) * 1989-01-13 1991-05-14 Stac, Inc. Data compression apparatus and method
US5003307A (en) * 1989-01-13 1991-03-26 Stac, Inc. Data compression apparatus with shift register search means
US4979039A (en) * 1989-01-30 1990-12-18 Information Technologies Research Inc. Method and apparatus for vector quantization by hashing
US4929946A (en) * 1989-02-09 1990-05-29 Storage Technology Corporation Adaptive data compression apparatus including run length encoding for a tape drive system
US4988998A (en) * 1989-09-05 1991-01-29 Storage Technology Corporation Data compression system for successively applying at least two data compression methods to an input data stream
US5049881A (en) * 1990-06-18 1991-09-17 Intersecting Concepts, Inc. Apparatus and method for very high data rate-compression incorporating lossless data compression and expansion utilizing a hashing technique
US5132992A (en) * 1991-01-07 1992-07-21 Paul Yurt Audio and video transmission and receiving system

Also Published As

Publication number Publication date
WO1993017503A1 (en) 1993-09-02
US5371499A (en) 1994-12-06
EP0628228A1 (en) 1994-12-14

Similar Documents

Publication Publication Date Title
US5371499A (en) Data compression using hashing
US5049881A (en) Apparatus and method for very high data rate-compression incorporating lossless data compression and expansion utilizing a hashing technique
EP0490964B1 (en) Improved data compression apparatus
US4626829A (en) Data compression using run length encoding and statistical encoding
EP0951753B1 (en) Computer sorting system for data compression
US5406278A (en) Method and apparatus for data compression having an improved matching algorithm which utilizes a parallel hashing technique
US5229768A (en) Adaptive data compression system
US5532694A (en) Data compression apparatus and method using matching string searching and Huffman encoding
US5455577A (en) Method and system for data compression
US6563956B1 (en) Method and apparatus for compressing data string
US5936560A (en) Data compression method and apparatus performing high-speed comparison between data stored in a dictionary window and data to be compressed
US5179378A (en) Method and apparatus for the compression and decompression of data using Lempel-Ziv based techniques
EP0577330B1 (en) Improved variable length decoder
US5612693A (en) Sliding window data compression using a toroidal bit shift register
US5353024A (en) Method for data compression having an improved encoding algorithm which utilizes a token stacking technique
EP0582907A2 (en) Data compression apparatus and method using matching string searching and Huffman encoding
EP0903865A1 (en) Method and apparatus for compressing data
US5815096A (en) Method for compressing sequential data into compression symbols using double-indirect indexing into a dictionary data structure
Bender et al. New asymptotic bounds and improvements on the Lempel-Ziv data compression algorithm
US5394143A (en) Run-length compression of index keys
US7212679B2 (en) Font compression and retrieval
US5488366A (en) Segmented variable length decoding apparatus for sequentially decoding single code-word within a fixed number of decoding cycles
EP0871295B1 (en) Method and apparatus for compression and decompression of data
JP3130324B2 (en) Data compression method
JPH05241776A (en) Data compression system

Legal Events

Date Code Title Description
EEER Examination request
FZDE Discontinued