Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYSTEMS AND METHODS FOR VARIABLE LENGTH CODEWORD BASED, HYBRID DATA ENCODING AND DECODING USING DYNAMIC MEMORY ALLOCATION
Document Type and Number:
WIPO Patent Application WO/2020/150458
Kind Code:
A1
Abstract:
A data encoding system includes a non-transitory memory, a processor, a digital-to-analog converter (DAC) and a transmitter. The non-transitory memory stores a predetermined file size threshold. The processor is in operable communication with the memory, and is configured to receive data. The processor detects a file size associated with the data. When the file size is below the predetermined file size threshold, the processor compresses the data using a variable length codeword (VLC) encoder. When the file size is not below the predetermined file size threshold, the processor compresses the data, using a hash table algorithm. The DAC is configured to receive a digital representation of the compressed data from the processor and convert the digital representation of the compressed data into an analog representation of the compressed data. The transmitter is coupled to the DAC and configured to transmit the analog representation of the compressed data.

Inventors:
DUPONT NICOLAS THOMAS MATHIEU (US)
HELLE ALEXANDRE (US)
Application Number:
PCT/US2020/013857
Publication Date:
July 23, 2020
Filing Date:
January 16, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
CYBORG INC (US)
DUPONT NICOLAS THOMAS MATHIEU (US)
HELLE ALEXANDRE (US)
International Classes:
H03M7/30; H03M7/40
Other References:
DAVID SALOMON, GIOVANNI MOTTA: "Handbook of Data Compression, Fifth Edition", 2010, SPRINGER, pages: 361 - 364, XP002798461
DAVID SALOMON, GIOVANNI MOTTA: "Handbook of Data Compression, Fifth Edition", 2010, SPRINGER, pages: 234 - 238, XP002798462
Attorney, Agent or Firm:
HUTTER, Christopher R. et al. (US)
Download PDF:
Claims:
Claims

1. A system, comprising:

a non-transitoiy memory storing a predetermined file size threshold;

a processor in operable communication with the memory, the processor configured to; receive a first data,

detect a file size associated with t e first data,

when the file size is below the predetermined file size threshold, compressing the first data, using a variable length codeword (VLC) encoder, to generate a second data, and

when the file size is not below the predetermined file size threshold, compressing the first data, using a hash table algorithm, to generate a second data;

a digital-to-ana!og converter (DAC) configured to receive a digital representation of the second data from the processor and convert the digital representation of the second data into an analog representation of the second data; and

a transmitter coupled to the DAC and configured to transmit the analog representation of the second data.

2. The system of claim 1, wherein the VLC encoder is configured to assign a short codeword to frequently-occurring segments of the fi rst data, and to assign a longer codeword to less frequently occurring segments of the first data.

3. The system of claim 1 , wherein the processor is configured to compress the first data using the VLC encoder to retrieve, based on a segment of the first data, a codeword from the memory'.

4. The system of claim 1, wherein the processor is configured to compress the first data using the VLC encoder to add a representation of a segment of the first data to the memory' in response to unsuccessfully querying the memory for the segment.

5. The system of claim 1, wherein the processor is configured to compress the first data using the VLC encoder to:

compute, for a segment of the first data, a codeword size that is inversely proportional to a size of the segment; and

assign a codeword, having a size equal to the codeword size, to the segment.

6. The system of claim 1, wherein the processor is configured to compress the first data using the hash table algorithm to generate a hash of N bytes (where N is greater than or equal to 4) of the fi rst data.

7. The system of claim 1, wherein the processor is configured to compress the first data using the hash table algorithm to:

generate, for a first portion of the first data, a first hash;

query a hash table for the first hash;

assign a codeword to the first portion of the first data using the VLC, in response to the first hash not being returned in response to the query;

generate, for a second portion of the first data, a second hash; and

multiplex the codeword with the second hash.

8. A method, comprising:

receiving a first data;

selecting one of a VLC encoder or a hash table algorithm from a memory, the selecting based on a size of the first data, the memory storing both the VLC encoder and the hash table; transforming, using the selected one of the VLC encoder or the hash table algorithm, the first data into a second data including a compressed version of the first data; and

sending a digital representation of the second data to a converter that causes the second data to be transmitted after receiving the second data.

9. The method of claim 8, wherein the VLC encoder is selected, the method further comprising storing an uncompressed version of the first data.

10. The method of claim 8, wherein sending the digital representation includes sending the digital representation to the converter to cause the second data to be transmitted via one of a wireless transmission, a wired transmission, or an optical transmission.

1 1. A system, comprising:

a non-transitory memory storing a predetermined file size threshold, a VLC encoder, and a hash table;

a processor in operable communication with the non-transitory memory, the processor configured to:

receive a first data,

detect a file size associated with the first data,

when the file size is below the predetermined file size threshold, compressing the first data, using the VLC encoder, to generate a second data, and

when the file size is not below the predetermined file size threshold, cornpressing the first data, using the hash table, to generate a second data;

a DAC configured to receive a digital representation of the second data from the processor and convert the digital representation of the second data into an analog representation of the second data; and

a transmitter configured to transmit the analog representation of the second data.

12. The system of claim 1 1 , wherein the transmitter includes an antenna, and the transmitter is configured to transmit the analog representation of the second data wirelessly.

13. The system of claim 11, wherein the transmitter includes a coaxial cable, and the transmitter is configured to transmit the analog representation of the second data over wire.

14. The system of claim 1 L wherein the transmitter includes an optical fiber, and the transmitter is configured to transmit the analog representation of the second data optically.

15. A system, comprising:

a processor; a non-transitory memory in operable communication with the processor, the memory storing an indicator of a predetermined file size threshold and instructions to cause the processor to:

receive a first data having a file size; and

when the file size is below the predetermined file size threshold:

encode the first data, using a variable length codeword (VLC) encoder, to generate a second data, the VLC encoder including a VLC table,

dynamically update the VLC table in response to encoding the first data, store, in the non-transitory memory, a digital representation of the second data, and

send the second data to one of a transmitter or a persistent data storage medium.

16. The system of claim 15, wherein the instructions to cause the processor to dynamically update the VLC table include instructions to cause the processor to shift a table reference associated with the first data upward in a direction of a top of the VLC table.

17. The system of claim 15, wherein the instructions to cause the processor to encode the first data include instructions to cause the processor to assign a short codeword to frequently- occurring segments of the first data, and assign a longer codeword to less frequently occurring segments of the first data.

18. The system of claim 15, wherein the instructions to cause the processor to encode the first data include instructions to cause the processor to retrieve, based on a segment of the first data, a codeword from the memory.

19. The system of claim 15, wherein the instructions to cause the processor to encode the first data include instructions to cause the processor to add a representation of a segment of the first data to the memory in response to unsuccessfully querying the memory for the segment.

20. The system of claim 15, wherein the instructions to cause the processor to encode the first data include instructions to cause the processor to:

compute, for a segment of the first data, a codeword size that is inversely proportional to a size of the segment: and

assign a codeword, having a size equal to the codeword size, to the segment.

21. The system of claim 15, wherein the memory further stores instructions to cause the processor to:

when the file size is not below the predetermined file size threshold, encode the first data using a hash table algorithm, to generate a second data;

22. The system of claim 21 , wherein the instructions to cause the processor to encode the first data using the hash table algorithm include instructions to generate a hash of N bytes (where N is greater than or equal to 4) of the first data.

23. The system of claim 21, wherein the instructions to cause the processor to encode the first data using the hash table algorithm include instructions to:

generate, for a first portion of the first data, a first hash;

query a hash table for the first hash,

assign a codeword to the first portion of the first data using the VLC encoder, in response to the first hash not being returned in response to the query;

generate, for a second portion of the first data, a second hash; and multiplex the codeword with the second hash.

24. A method, comprising:

receiving a first data;

selecting a VLC encoder, the VLC encoder including a VLC table;

transforming, using the VLC encoder, the first data into a second data including a compressed version of the first data;

dynamically updating the VLC table in response to transforming the first data into the second data; and storing a digital representation of the second data in non -transitory memory.

25. The method of claim 24, wherein the dynamically updating the VLC table includes shifting a table reference associated with the first data upward in a direction of a top of the VLC table

25. The method of claim 24, further compri sing storing an uncompressed versi on of the first data.

26. The method of claim 24, wherein sending the digital representation includes sending the digital representation to the converter to cause the second data to be transmitted via one of a wireless transmission, a wired transmission, or an optical transmission.

27. The method of claim 24, wherein the transforming the first data into the second data includes assigning a short codeword to frequently-occurring segments of the first data, and assigning a longer codeword to less frequently occurring segments of the fi rst data.

28. The method of claim 24, wherein the transforming the first data into the second data includes retrieving, based on a segment of the first data, a codeword

29. The method of claim 24, wherein the transforming the first data into the second data includes storing a representation of a segment of the first data in response to unsuccessfully querying for the segment.

30. A method, comprising:

receiving a signal including a representation of a second data;

detecting, based on a header of the received signal, that an encoding of the second data is VLC encoding;

decoding the second data into a first data, the decoding including:

selecting a decoder table based on the header,

detecting a prefix code of the second data, and retrieving uncompressed data from the decoder table based on the prefix code and the second data; and

dynamically updating the decoder table in response to decoding the second data.

31. The method of claim 30, wherein the dynamically updating the decoder table includes shifting a table reference associated with the second data upward in a direction of a top of the VLC table.

32. The method of claim 30, the method further comprising waiting until a predetermined number of symbols have been received before decoding the second data into the first data.

33. The method of claim 30, the method further comprising storing the uncompressed data in memory.

34. The method of claim 30, the method further comprising transmitting the uncompressed data.

Description:
SYSTEMS AND METHODS FOR VARIABLE LENGTH CODEWORD BASED, HYBRID DATA ENCODING AND DECODING USING DYNAMIC MEMORY ALLOCATION

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority to and is a continuation of U.S. Patent Application No. 16/691,496, filed November 21, 2019, which in turn claims priority to and is a continuation of U.S. Patent Application No. 16/250,345, filed January' 17, 2019, the entire contents of each of which are incorporated herein by reference in their entireties.

FIELD

[0002] The present disclosure relates to systems and methods for compressing and decompressing data, for example to increase an effective capacity of storage media or to decrease the bandwidth used for transmitting data over a communications medium.

BACKGROUND

[0003] As storage capacity/network bandwi dth have increased, so has its demand. One approach to accommodating this increased demand is through data compression.

SUMMARY

[0004] Methods, systems and apparatuses for hybrid encoding and decoding of binary data are disclosed. In some embodiments, a data encoding system includes a non-transitory memory', a processor, a digita!-to-analog converter (DAC) and a transmitter. The non-transitory memory' stores a predetermined file size threshold. The processor is in operable communication with the memory, and is configured to receive a first data. The processor detects a file size associated with the first data. When the file size is below the predetermined file size threshold, the processor compresses the first data using a variable length codeword (VLC) encoder, to generate a second data. When the file size is not below the predetermined file size threshold, the processor compresses the first data using a hash table algorithm, to generate a second data. The DAC is configured to receive a digital representation of the second data from the processor and convert the digital representation of the second data into an analog representation of the second data. The transmitter is coupled to the DAC and is configured to transmit the analog representation of the second data.

[0005] In some embodiments, a method includes receiving a first data, and selecting one of a VLC encoder or a hash table algorithm from a memory, based on a size of the first data, the memory storing both the VLC encoder and the hash table. The method also includes transforming, using the selected one of the VLC encoder or the hash table algorithm, the first data into a second data including a compressed version of the first data. The method also includes sending a digital representation of the second data to a converter that causes the second data to be transmitted (e.g., via one or more of a wireless transmission, a wired transmission, or an optical transmission) after receiving the second data. When the VLC encoder is selected, the method can also include storing an uncompressed version of the first data.

[0006] Example features, structure and operation of various embodiments are described in detail below with reference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0007] FIG. lA is a system block diagram for a data compression system, according to some embodiments.

[0008] FIG. IB is a system block diagram for a coder/decoder (CODEC), according to some embodiments.

[0009] FIG. 2 is an example of a Huffman Tree.

[0010] FIG. 3 is an example of a dictionary coding algorithm for data compression.

[0011] FIG. 4 is a flow diagram illustrating a hybrid data encoding/compression process, according to some embodiments.

[0012] FIG. 5 is a flow diagram illustrating a variable length encoder (VLC) encoder dataflow, according to some embodiments.

[0013] FIG. 6 is a flow diagram illustrating a VLC decoder dataflow 7 , according to some embodiments.

[0014] FIG. 7 is a flow diagram illustrating a hybrid coder-decoder, according to some embodiments.

[0015] FIG. 8 is a flow diagram illustrating a hash encoder, according to some embodiments

[0016] FIG. 9 is a flow diagram illustrating a hash decoder, according to some embodiments. [0017] FIG. 10 is a flow diagram illustrating a dictionary selection process, according to some embodiments.

[0018] FIG. 1 1 is a flow diagram illustrating a compression process, according to some embodiments.

[0019] FIG. 12 is a flow diagram illustrating details of the“load dictionary” and“define pre-hash table” steps of FIG. 11.

[0020] FIG. 13 is a flow diagram illustrating details of the“table matching” step of FIG. 11.

[0021] FIG. 14 is a flow diagram illustrating details of the“mismatch compression” and“hash table update” steps of FIG. 1 1.

[0022] FIG. 15 is a flow diagram illustrating a decompression process, according to some embodiments.

[0023] FIG. 16 is a flow diagram illustrating details of the“load dictionary” and“define pre-hash table” steps of FIG. 15.

[0024] FIG. 17 is a flow diagram illustrating details of the“decompress match triads” step of FIG. 15.

[0025] FIG. 18 is a flow diagram illustrating details of the“decompress mismatch triads” and “update hash table” steps of FIG. 15.

DETAILED DESCRIPTION

[0026] It seems that the more storage capacity/network bandwidth that exist, the more a“need” exists and the more useful data compression becomes. Data compression techniques can be divided into two major categories: lossy and lossless. Lossless data compression techniques are employed when it is particularly important that no information is lost in the compression/decompression process. Lossy data compression techniques are typically employed in processing applications such as the transmission and storage of digital video and audio data that can tolerate some information loss (e.g., since human vision is forgiving of potential artifacts). Lossy data compression techniques typically yield greater compression ratios than their lossless counterparts. Over the past 30 years, lossy data compression methods have gained tremendous importance for their use in video conferencing, streaming to a wide variety of devices, and home entertainment systems. Most other applications employ lossless data compression techniques. [0027] For applications using data types such as video, it is possible to achieve compression ratios of 150: 1 for Quarter Common Intermediate Format (QCIF) @15fps over 64Kbps (typically used in wireless video telephony applications) or 1080P High Definition (HD) @60fps at 20Mbps over broadband networks. These applications typically use the modem International Telecommunication Union (ITU) H.264 video compression standard, resulting in high quality video. However, for data types/files such as documents, spreadsheets, database files, etc., lossless data compression is generally strongly preferred. Compression ratios for lossless methods are typically much lower than those for lossy methods. For example, lossless compression ratios can range fro 1.5: 1 for arbitrary binary data files, to 3.0: 1 for files such as text documents, in which there is substantially more redundancy.

[0028] Transmitting compressed data takes less time than transmitting the same data without first compressing it. In addition, compressed data uses less storage space than uncompressed data. Thus, for a device with a given storage capacity, more files can be stored on the device if the files are compressed. As such, two of the primary advantages for compressing data are increased storage capacity and decreased transmission time.

[0029] Embodiments of the present disclosure set forth novel methods for accomplishing data compression in lossless and/or lossy contexts. For example, methods, systems and apparatuses for hybrid encoding and decoding of binary data are disclosed. In some embodiments, a data encoding system includes a non-transitory memory, a processor, a digital -to-analog converter (DAC) and a transmiter. The non-transitory memory stores a predetermined file size threshold. The processor is in operable communication with the memory, and is configured to receive a first data. The processor detects a file size associated with the first data. When the file size is below the predetermined file size threshold, the processor compresses the first data using a variable length codeword (VLC) encoder, to generate a second data. When the file size is not below the predetermined file size threshold, the processor compresses the first data, using a hash table algorithm, to generate a second data. The DAC is configured to receive a digital representation of the second data from the processor and convert the digital representation of the second data into an analog representation of the second data. The transmitter is coupled to the DAC and is configured to transmit the analog representation of the second data.

Overview of Lossless Data Compression Techniques [0030] Data compression techniques typically employ a branch of mathematics known as information theory. Data compression is linked to the field of information theory because of its concern with redundancy. If the information represented/encoded by a message is redundant (where redundant information is defined as information whose omission does not reduce the information encoded in the output file), the message can be shortened without losing the information it represents.

[0031] Entropy (or“Shannon entropy”) is a term that can be used to convey how much information is encoded in a message. A message having high entropy may be said to contain more information than a message of equal length/size having low entropy. The entropy of a symbol in a message can be defined as the negative logarithm of its probability of occurrence in the message. The information content of a character, in bits, is expressed as the entropy using base-two logarithms:

E symbol (X) = -logy (probability of symbol(X)) where:

E symbol (X) ::: Entropy of a given symbol in a message

X ::: message

[0032] The entropy of an entire message, which is equivalent to the average minimum number of bits (H(X)) used to represent a symbol, is the sum of the entropy of each symbol occurring in the message:

Given a symbol set (A, B, C, D, E}, where the symbol occurrence frequencies (P ) are:

{ A = 0.5 B = 0.2 C = 0.1 D = CU E = 0.1 },

the average minimum number of bits used to represent one of these symbols is:

1 N X) = - [(0.5 log (0.5) + 0.2 logy (0.2) + (0.1 logy (0.1 ) * 3)]

H(X) = - [-0.5 + (-0.46438) ÷ (-0.9965)]

H(X) === - [-1.9]

H(X) = 1.9 [0033] Rounding up gives 2 bits/per symbol Thus, as an example, a 10 character string, AAAAABBCDE is optimal ly encoded using 20 bits. Such encoding would allocate fewer bits to the more frequently occurring symbols (e.g., A and B) and longer bit sequences to infrequent symbols (C, D, E)

[0034] Although in the foregoing example, from A Guide to Data Compression Methods by Solomon (2013), the contents of which are incorporated by reference herein in their entirety for all purposes, the frequency of the symbols happens to match their frequency in the string, this will often not be the case in practice. Thus, there are two ways to apply the Shannon entropy equation (which provides a lower bound for the compression that can be achieved):

Approach 1 : The symbols in a set have known frequencies. These frequencies may or may not correspond to the frequencies in a message. As an example, consider that characters in a message each have an average frequency. The number of bits per character can be calculated using the Shannon entropy equation.

Approach 2: Symbol frequencies are calculated for a message. The Shannon entropy equation cart then be applied to calculate the number of bits per symbol for that message.

[0035] A variant on the above technique, known as dictionary coding, uses a slightly different approach to data compression. In approaches using dictionary coders (also referred to as ‘‘substitution coders”), one or more portions of the data to he compressed is first scanned to determine which characters, or character strings, occur most frequently. The identified characters, and character strings, are placed in a dictionary and assigned predetermined codes having code lengths that are inversely proportional to the probability of occurrence of the characters, or character strings. The characters and character strings are read from the data file, matched up with their appropriate dictionary entry, and coded with the appropriate code. A variant of the dictionary coding scheme adapts the dictionary based on changing frequencies of occurrence of characters and character strings in the data. A few of these dictionary-based algorithms are described in further detail below.

[0036] In addition to dictionary coding, two known, pioneering lossless data compression methods are Huffman coding and arithmetic coding. These methods are considered near-optimal according to Shannon’s theorem (also referred to as the“noisy-channel coding theorem”), with arithmetic coding typically having a slight edge over Huffman encoding in terms of compression ratio. However, Huffman coding is significantly more efficient in terms of encoding/decoding times than arithmetic encoding.

[0037] Huffman coding is based on the frequency of occurrence of a symbol within a given message. The principle is to use a lower number of bits to encode the data that occurs more frequently. The average length of a Huffman code depends on the statistical frequency with which the source produces each symbol from its syllabary. A Huffman code dictionary, which associates each data symbol with a codeword, has the property that no codeword in the dictionary is a prefix of any other codeword in the dictionary . The basis for this coding is a code tree that assigns short codewords to frequently occurring symbols and long codewords to symbols that are rarely used. An example Huffman tree is provided in FIG. 2.

[0038] Arithmetic coding bypasses the idea of replacing an input symbol with a specific code. Instead, it takes a stream of input symbols and replaces it with a single floating-point number in the range of 0 to 1. The number of bits used to encode each symbol varies according to the probability assigned to that symbol. Low probability symbols may use many bits, while high probability symbols use fewer bits. During arithmetic coding, each symbol is assigned to an interval. Starting with the interval [0...1), each interval is divided into several subintervals having sizes proportional to the probability of their corresponding symbols.

[0039] The subinterval from the coded symbol is then taken as the interval for the next symbol. The output is the interval of the last symbol. Arithmetic coding is model-based, in that it relies on a model to characterize the symbols it is processing (i.e., to tell the encoder what the probability of a symbol is in the message). If the model produces an accurate probability of the symbols in the message, the symbols will be encoded very' close to optimally. If, however, the model produces an inaccurate probability of the symbols in the message, the encoder may actually increase the size of the message, rather than compress it.

[0040] A popular dictionary coding algorithm, known as LZ77, was published in“A Universal Algorithm for Sequential Data Compression,’ ' IEEE 'Transactions on Information Theory (May 2, 1977) by Abraham Lernpe! and Jacob Ziv, the content of which is incorporated by reference herein in its entirety for al l purposes. The LZ77 algorithm uses a sliding window across the data to be compressed. The window contains a dictionary, a byte to be compressed and a“look ahead buffer” that slides to the right, as shown in FIG. 3. The I.Z77 encoding produces a tuple containing the offset (“Q”) in the dictionary from the byte to be compressed, the length (“L”) of the number of matching bytes between the dictionary and the look-ahead buffer, and the next byte (“N”) to be compressed, as represented by (O, I,, N) (see right-hand column in FIG. 3). Typically, the LZ77 algorithm uses 12 bits to represent the size of the dictionary, 4 bits to represent the look-ahead buffer, and 8 hits to represent the next byte to be compressed. Thus, the tuple has a size of 3 bytes.

[0041] As shown in the first row of FIG. 3, there is initially no dictionary, so there can be no match. This is represented by a tuple that has 0 for the offset, 0 for the length and the actual byte to be compressed (“a”). This byte (“a”) is added to the dictionary. For all lengths L, the window slides to the right by length L plus one bytes. So, in FIG. 3, the window slides to the right by one byte and“a” is added to the dictionary. Next, when the byte to be compressed,“a” on the second row, is compared with the byte“a” in the library, there is a match. This is represented in the associated tuple as 1 for the offset O, l for the length L, and“c” for the next byte to be compressed. The window then slides two bytes to the right. The third row 7 illustrates a case in which the match extends into the look-ahead buffer:“a,a,c,a” matches the identical string in the look-ahead buffer and the tuple is: (3,4,b). Continuing on the fourth row, note that the window slides five bytes to the right due to the length of the tuple on the third row. The decoder maintains a dictionary that is identical to the encoder’s dictionary. During decoding, each tuple is decoded into its corresponding one or more bytes, which can then be added to the dictionary .

[0042] One of many algorithms derived from I.Z77 is known as the Lempel-Ziv-Welch (LZW) algorithm. It was originally developed by Ziv and Lempel, and was subsequently improved by Welch. Popular text compressors such as“Zip” and the Unix file compression utility“Compress” are based on LZW. LZW is also used in the popular GIF image format. Although the compression ratios achieved with LZW are lower than those for other compression algorithms, such as Huffman and arithmetic encoding discussed above, it remains popular due to its ease of implementation. LZW compression uses a code table, for example including 4096 codes. Codes 0-255 in the code table are assigned to represent single bytes from the input message. When encoding begins, the code table contains only the first 256 entries, with the remainder of the table being blank/empty. Compression is then accomplished using codes 256 through 4095, to represent the sequences of bytes. As the encoding proceeds, LZW identifies repeated sequences in the message, and adds them to the code table. Decoding is later performed by reading each code from the compressed file and translating it based on the code table, to identify the character or characters it represents. [0043] A variety of other lossless data compression methods are set forth, for example, in History ? of Lossless Data Compression Algorithms, 2014, accessible at https://ethw.org/History_of_Lossless_Data_Compression_Algori thms, the content of which is incorporated by reference herein in its entirety for all purposes.

[0044] Encoders of the present disclosure compress data using a hybrid hash table/Variahle Length Codeword (VLC) encoder, to achieve levels of data compression that are understood to have heretofore never been accomplished. The hybrid encoder invokes one of at least two algorithms, e.g., selected empirically based on the file size of the data to be compressed. Files determined to have a small size are compressed using the VLC algorithm, and files determined to have a large size are compressed using the hash table algorithm. Methods, systems and apparatus are disclosed herein for reducing the size of strings of binary' data. In some embodiments, a method of removing redundancy from a stream of binary data includes parsing a predetermined number of bits from a received stream of binary' data, and assigning either hash table or VLC codewords to segments extracted from the binary data. In other embodiments, a method of compressing a strea of binary- data can include parsing a predetermined number of bits from a received stream of binary data, and assigning either fixed-length or variable-length codewords to symbols extracted from the binary data. In both such embodiments, the system is adaptive in that the hash table encoder’s dictionary ' is updated for each codeword produced, and the VLC’s table is tuned based on the statistics of the symbols in the stream of binary data. The hash table algorithm assigns a fixed length hash to a programmable number (e.g., four or more) of input bytes, thereby improving the compression ratio. The VLC encoder replaces input bytes with codewords, where short codewords are substituted for the most frequently occurring bytes, and longer codewords are substituted for less frequently occurring symbols. Systems of the present disclosure can also include decoders, and methods for decompressing and reproducing a copy of the original, uncompressed strings of binary data are also set forth herein.

[0045] In some embodiments, a system includes at least a processor, a memory, and a CODEC for compressing/decompressing, respectively, a raw or compressed data stream received from or originating from a file or network. The system is configured to receive a binary string of data and partition the binary string into one or more binary segments prior to compression. The system then compresses the binary segments using a hybrid hash tabfe/VLC encoder. In other words, the hybrid encoder includes both a hash table encoder and a VLC encoder. The hash table encoder compresses data by assigning fixed length codewords to one or more bytes of the input (binary segment) data. The VLC encoder assigns short codewords to frequently occurring bytes of the input data, and assigns longer codewords to less frequently occurring bytes. The output of both the hash table encoder and the VLC encoder can be saved to a file and/or transmitted via wired or wireless network transmission. The system can also include a decoder configured to receive hybrid Hash Table/VLC encoded bitstreams from a file or network, and to reproduce a binary string of data identical to the binary string of data that was originally input to the encoder. The system can optionally interface with a machine learning platform.

[0046] FIG. 1A is a system block diagram for a data compression system, according to some embodiments. As shown in FIG. 1 A, the data compression sy tem 100A includes a machine learning platform 106 in wired and/or wireless network communication with a compression core 112. One or both of the machine learning platform 106 and the compression core 112 can include a processor and a memory operatively coupled to the processor, where the processor is configured to perform steps (e.g., by reference to instructions stored in the memory')· The compression core 1 12 is configured to communicate with the training data generator 102 and/or the machine learning platform 106. The compression core 1 12 is configured to receive data input 112A, which is subsequently encoded (at 112E) based on one or more of: configuration data 112B, one or more dictionaries 112C, or a pre-defmed hash table 112D. The encoding can include compression, as discussed further below', and can include partitioning the data input 1 12A into multiple data segments. Alternatively, the data input 112A can be partitioned into multiple data segments by the compression core prior to the encoding. The encoded/compressed data is then output, as data output 1 12F, and may be stored within the compression core 112 and/or transmitted (e.g., via wireless network communication). The encoded/compressed data can also be fed to a training data generator 102, which uses the encoded/compressed data to generate training data 104. The training data generator 102 may reside locally with the compression core 1 12 (e.g., housed within the same compute device), or may be in wired or wireless communication with the compression core 1 12, The training data generator 102 can gather log data from encoder/decoder operations, order the log data, and/or place the log data into a structured file format (e.g , a comma-separated variable file, or .csv file). The training data 104 can be sent to the machine learning platform 106 and be received therein, as training input 106 A. The machine learning platform 106 performs pre-processing 106B on the training input 106A, and sends the pre-processed training input to a trainer 108 (e.g., a software module configured to generate predictive data). The trainer 108 and tester 1 10 can be built from one or more linear-regression machine learning libraries. Predictions generated by the trainer 108 based on the pre-processed training input are sent to a tester 110 for testing, and post-processing 106C (e.g., adjustments to predictive algorithms) is performed based on the outcome of the testing. Adjustments can then be made to configuration data, based on the post-processing 106C, before the configuration data is sent as configuration output 106D to the compression core. Pre-processing 106B and post-processing 106C functions can include applying one or more statistical methods to reduce noise and inconsistency in the data. Although the data compression system 100A of FIG. lA is shown and described as being configured to perform compression, a similar system can also be used for decompression, where the input data is instead compressed data, and encode 1 12E is replaced with a decoding process. A hybrid decoder can, for example, detect an encoding of a received compressed data, and decode/decompress the compressed data using either a hash decoder or a VLC decoder (discussed further below) based on the detected encoding of the received compressed data. In some such implementations, the hybrid decoder is configured to wait until a predetermined number of symbols have been received and/or stored before decoding/decompressing the compressed data into an uncompressed data.

[0047] FIG. IB is a system block diagram for a coder/decoder (CODEC), according to some embodiments. As shown in FIG. IB, a CODEC system I00B includes a CODEC 121, a machine learning platform 106, and a training data generator 102 The CODEC system 100B is similar to the data compression system 100 A of FIG. 1A, with the exception that the data input 112A is received at the CODEC 121 (rather than a compression core), and the CODEC 121 is configured to perform compression and decompression of data. The CODEC 121 includes a memory 123, operably coupled to a processor 125. The processor 125 is operably coupled to a digital -to-analog converter (DAC) and analog-to-digital converter (ADC) 127, which in turn is coupled to a transmitter/transceiver 129 including one or more of: an antenna, a coaxial cable, or an optical fiber, for communication with the training data generator 102 and/or the machine learning platform 106 The memory 123 includes one or more of: a VLC encoder 123 A, a VXD decoder 123B, a hash encoder 123C, a hash decoder 123D, VLC and/or hash table(s) (collectively,“lookup tables”) 123E, and other data, such as data size threshold(s) 123F, relevant to compression and decompression (coding and decoding) actions, as discussed further below.

[0048] FIG. 4 is a flow diagram illustrating a hybrid data encoding/compression process, according to some embodiments. As shown in FIG. 4, the hybrid data encoding/compression process 400 begins with detecting, at 414, whether the file size of an incoming data input or data segment is above or below a predetermined threshold size. If, at 414, the file size of the incoming data segment is below the predetermined threshold size, the process 400 proceeds to apply a VLC algorithm at 416 to accomplish the data encoding/compression. If, at 414, the file size of the incoming data segment is at or above the predetermined threshold size, the process 400 proceeds to a lookup event, at 418, during which a query of a hash table, based on the data segment, is performed. If, at 418, the data segment is not found in the hash table, the process 400 proceeds to apply the VLC algorithm at 416 to accomplish the data encoding/compression. If, at 418, the data segment is found in the table, the process 400 proceeds to apply a hash table algorithm 420 to accomplish the data encoding/compression. When the VLC algorithm is applied, at 416, the compression output is in the form of a VLC bitstream. Whether the VLC algorithm (416) or the hash table algorithm (420) is used to accomplish the data encoding/compression, the compressed data segment is output to a multiplexer to multiplex, at 422, to generate a hybrid hash table/VLC bitstream. As shown in FIG. 4 and the foregoing description, two paths, within process 400, can result in using the VLC algorithm. In other words, the CODEC attempts to use its innate hash table encoder for selectable length segments of the input data. If the criteria for the hash table encoding algorithm are not met, however, the VLC algorithm is applied.

VLC Encoder

[0049] FIG. 5 is a flow diagram illustrating a VLC encoder dataflow (compatible, for example, with step 416 in FIG. 4), according to some embodiments. As shown in FIG. 5, the VLC dataflow 500 is implemented using a VLC encoder 526, which receives an input data stream 524 (including bytes of data), and which communicates with a VLC table 528 of a dictionary to encode the input data and generate compressed data 530. During encoding, the VLC encoder 526 looks each byte up in the VLC table 528 and outputs the codeword for the byte If the byte is not already in the VLC table 528, the VLC encoder 526 adds the byte to the VLC table 528. The VLC encoder 526 assigns short codewords to frequently occurring segments and longer codewords to less frequently occurring segments. As such, the order of occurrence of the ASCII characters may be similar to that shown in the Huffman tree of FIG. 2. Although 8 bits can be used to represent each character, the VLC encoder 526 can leverage the fact that“E” occurs much more frequently than“Z” by assigning, for example, only 3 bits : 000 to the letter“E,” and 7 bits: 1111 1 11 to the letter“Z.”

[0050] The VLC encoder 526 can define codewords for each byte to be encoded in accordance, for example, with a format defined by Table 1 :

Prefix

Code VLC I

Table 1 : VLC Codeword Format

The prefix code and the VLC, collectively, define the codeword. The prefix code can be used to identify how many bits are in the VLC:

Table 2: Prefix Codes

[0051] Note that only the first bit is used for the last entry in the table. It is used to tell the decoder which algorithm is being used.

VLC Code Length

[0052] In some embodiments, a first predetermined number (e.g , 20) of VLCs are defined in a dictionary, an example excerpt of which is provided in Table 3 below:

Table 3 : VLC Dictionary

[0053] As shown in Table 3, each of the Prefix Code and the VLC Code is associated with a byte being coded. The bytes listed in Table 3 match the bytes shown in the Huffman Table of FIG. 2. In some embodiments, the decoded bytes are stored in a buffer that is subsequently accessible by the VLC decoder, as discussed further below with reference to hash table encoding/decoding.

VLC Tables

[0054] In some embodiments, a pre-compiled VLC table can be used for encoding and/or decoding of data or data segments. Alternatively, instead of using a pre-compiled table, a table can be defined and populated by adding new bytes thereto as incoming bytes are processed. To maintain compression performance, the VLC encoder can dynamically update the table by shifting a table reference associated with the most recently encoded byte towards the top of the table (i.e., where codeword lengths are shorter). As shown in Tables 4-5 below, the“A” is coded (Table 4) and then moves up (or“bubbles” up) one row in the table (Table 5) by swapping the“A” with the“T” above it.

Table 4: Coding“A” Table 5: After Coding“A”

[0055] In some embodiments, a VLC encoding process includes:

(1) Receive or retrieve a byte from the input

(2) Query a VLC table to detect whether the codeword for the byte is already stored in the table

(3) If the byte is found in the table:

(a) Store in a memory file and/or transmit/send the codeword from the table;

(c) Update the VLC table.

(4) If the byte is not found in the table:

(a) Append the byte to the end of the table

(b) Store in a memory file and/or transmit/send the codeword from the table; and

(5) Repeat steps (1) --- (4)

VLC Decoder

[0056] An example VLC decoder dataflow, according to some embodiments, is provided in FIG. 6. As shown in FIG. 6, the VLC decoder dataflow 600 is implemented using a VLC decoder 632, which receives compressed data 630 (including bytes of data), and which communicates with one or more decode tables 634 to decode the compressed data 630, thereby generating uncompressed data 636. Recall from the VLC encoder description above (e.g., with reference to FIG. 5) that the VLC codeword can include a prefix code that varies in length, for example from 2 bits to 6 bits, and a VLC code that varies in length from 2 bits to 8 bits. During decoding, the VLC decoder 632 applies (or compares) the prefix code to a VLC lookup table (decode table(s) 634) (e.g., via a query referencing the prefix code) to identify the number of bits to be read from the input compressed data 630, to decode the bitstream. The identified number of bits are then read and applied (or compared) to the VLC lookup table from which the decoded byte is retrieved (e.g., via a query referencing the bits). In some implementations, to improve the compression ratio, the VLC encoder updates the VLC lookup table by swapping the encoded byte’s position in the table with the entry- above it. This may result in a shorter VLC codeword for the encoded byte, due to the variable size of the VLC codewords. To remain in sync with the VLC encoder, the VLC decoder 632 performs the same procedure. The output of the VLC decoder 632 is a stream of decoded bytes (uncompressed data 636) that correspond to the bytes originally input to the VLC encoder. In some embodiments, the VLC encoder also determines which table, from multiple pre-stored tables, best matches the input data, and the encoded bitstream (compressed data 630) correspondingly includes a header that specifies which of the multiple pre-stored tables the VLC decoder 632 should query during the decoding.

[0057] In some embodiments, a VLC decoding process includes:

(1) Select a decoder table specified in the header of the bitstream

(2) Receive or retrieve a prefix code from the input

(3) Detect, based on the prefix code, a number of bits to read

(4) Read the bits associated with the detected number of bits

(5) Query the VLC lookup table based on the bits

(6) Retrieve the decoded byte

(7) Save/store and/or transmit the decoded byte

(8) Update the VLC lookup table

(9) Repeat steps (1) - (9)

Hash Table Algorithm

[0058] In some embodiments, a hash table algorithm performs compression by replacing long sequences of bytes with a hash value, where each hash value is shorter than the length of the associated byte sequence. The hash table forms part of the overall hybrid CODEC, in that the hash table is selectively used when (1) the length of the byte sequence to be encoded is above a preselected value, and (2) the hash is found in a hash table dictionary. When conditions ( 1 ) and (2) are not met, the VLC encoding described above (e.g., with reference to FIG. 5) is applied. FIG. 7 is a flow diagram illustrating a hybrid CODEC process, according to some embodiments. As shown in FIG. 7, the hybrid CODEC process 700 begins with a determination, at 738, of whether an incoming binary data segment has a size (e.g , length) that is below a predetermined or predefined (e.g., configurable) threshold size. If the binary data segment size is below the threshold, the CODEC process 700 uses the VLC algorithm, at 740, to encode the binary data segment. If the binary data segment size is not below the threshold (i.e., is at or above the threshold), the CODEC process 700 proceeds to query a hash table to determine, at 742, whether a hash of the binary data segment is already present/stored in the hash table. Optionally, the hybrid encoder generates the hash of the binary data segment prior to 742, and subsequent to or concurrently with 738. If the hash of the binary data segment is not found in the hash table, the CODEC process 700 proceeds to use the VLC algorithm, at 740, to encode the first byte of the binary data segment. Alternatively, if the hash of the binary data segment is found in the hash table, the CODEC process 700 proceeds to employ the hash table algorithm 744 to encode the binary data segment. Whether the binary data segment is encoded using the VLC algorithm at 740 or using the hash table algorithm at 744, the encoded bits are input to a multiplexer 746, which outputs a hybrid hash tahle/VLC bitstream.

[0059] FIG. 8 is a flow diagram illustrating a hash encoder (configurable, for example, to execute the hash algorithm referenced at 744 of FIG. 7), according to some embodiments. As shown in FIG. 8, a stream of bytes (input data 848) is transmitted to, and received at, the hash encoder 850. The hash encoder 850 (or“hash table encoder”)“grabs” (extracts/isolates) N bytes {Note: N is equal to four in this embodiment, but could be more or less than N), generates a hash value for the N bytes, the hash value corresponding to the offset of the N bytes in the decode buffer, and queries the dictionary 852 based on the hash value to determine whether the hash for the N bytes is already stored in the dictionary 852. If the hash is not found, an integrated VLC encoder (e.g., VLC encoder 526 of FIG. 5) can be invoked to encode the first byte of the N bytes. The codeword from the VLC encoder can then be multiplexed with hash table codewords to produce a hybrid hash table/VLC bitstream (compressed data 856) as an output. If the hash value is found in the dictionary 852, the encoder locates the N bytes in the decode buffer using the offset indicated by the hash value. The encoder then checks to see if any more of the incoming bytes match those adjacent to the N bytes in the decode buffer. If not, the encoder inserts the hash value, along with N, in a new codeword in accordance, for example, with the format defined by Table 6 where N is equal to 4. Hie N bytes are also appended to the decode buffer. If the hash value is not found, the encoder scans the data stored in the decode buffer for a possible match elsewhere in the buffer if found, the encoder checks for more matching adjacent bytes and then generates a new hash value for the selected bytes. The hash value is then encoded and stored in a new codeword along with the length; N. The selected bytes are also stored in the decode buffer.

Code ^ en S Hash Value

Table 6: Hash Encoder Codeword Format

Hash Codeword

[0060] As shown in Table 6, the first bit of the codeword indicates that the hash table algorithm is being used for this codeword. The next 4 bits of the codeword indicate the length of the segment being compressed. When a segment to be encoded meets the criteria described earlier, a 16 bit hash value is generated using the segment to be encoded. An example hash function is as follows; hash = (U16) (((six) * HASH32)»16) where HASH32 =

2654435761 (prime number) and six ::: 4 bytes to be encoded

[0061] In some embodiments, the hash becomes the key for the hash table (e.g., pre-set hash table 112D of FIG. 1 A). The value retrieved from the hash table is the offset of the original data segment from the beginning of the decoder buffer. The original data segment is stored at this offset location.

Optimizing the Hash Code Word

[0062] Similar to the VLC encoder, the hash table matches occur in a pattern, with some more frequently than others. Greater compression ratios can be achieved by assigning smaller hash values to the more frequently-occurring matches, and by assigning larger hash values to the less frequently-occurring matches. [0063] In some embodiments, the use of weighted frequencies in the hash table encoder yields a codeword having the format defined by Table 7:

Prefix Hash

Code Length l ¾ti Hash Value

Table 7: Hash Encoder Weighted Codeword Format

[0064] The weighted format of Table 7 results in codeword lengths varying between 10 and 24 bits, as opposed to 21 bits with the unweighted format of Table 6. Since the most frequently- occurring hash values are the smaller ones, the overall compression ratio increases.

Extending the Length Range Beyond 15

[0065] When the length of a codeword is 4 bits (e.g., as shown in Table 7 above), one might expect the range to be 1 to 15. Since the minimum match size is 4 bytes, however, the hash encoder uses the range shown in Table 8 below:

Table 8: Hash Encoder Length Table

|0066| As shown in Table 8 above, to extend the length range beyond 18 bits, the last 4 bits are reserved to indicate the use of tallying. The range for this nibble is 1 to 14, with 1111 indicating an instruction to begin reading individual bits, with each 1 representing an extra 14 bits, and a 0 indicating the end of tallying. An example is provided in Table 9 below.

Table 9: Hash Encoder Length Determination

[0067] In some embodiments, a hash encoding process includes:

(1) Receive or retrieve four bytes from the input

(2) Generate a hash value based on the 4 bytes

(3) Query the hash table based on the hash value

(4) If the hash value is retumed/found:

(a) Check for more matching bytes beyond the initial four bytes

(b) If more matching bytes are found:

(i) Increase the length by the number of new matching bytes: N

(ii) Append the four + N bytes to the decode buffer

(iii) Update the offset for the hash key, and overwrite the offset in the hash table

(iv) Save/store and/or transmit the codeword with the updated length

(c) If more matching bytes are not found:

(i) Append the 4 bytes to the decode buffer

(ii) Update the offset for the hash key, and overwrite the offset in the hash table

(iv) Save/store and/or transmit the codeword

(5) If the hash value is not retumed/found:

(a) Encode the first byte of the four bytes using the VLC method

(b) Append the byte to the decode buffer Hash Table Decoder Algorithm

[0068] A flow diagram illustrating a hash decoder, according to some embodiments, is provided in FIG. 9. As shown in FIG. 9, the hash decoder 958 deteraiines/detects from the first bit of the received compressed data 956 whether the compressed data 956 is a hash table encoded bitstream. If the bit is equal to 1, this indicates that the compressed data 956 bitstream contains hash table encoded bits. If the bit is not equal to 1, this indicates that the bitstream contains VLC-encoded bits, and the compressed data 956 bitstream is passed to the VLC decoder.

[0069] The hash decoder 958 reads and saves the next 4 bits of the compressed data 956 These 4 bits represent the length of the data segment to be decoded. Another 4 bits are then read, these further 4 bits representing the length of the hash value. Finally, based on the value of the previous 4 bits, a number of bits (between 1 and 15) associated with the length of the hash value are read. These 1-15 bits represent the hash value that points to the offset of the data segment to be extracted from the decoder buffer. Note that, in most embodiments, both the VLC decoder and the hash decoder append/add a copy of the decoded byte(s) to their respective/associated decoder buffers. The hash key can then be applied to a hash table (e.g., dictionary 960). The value obtained from dictionary' 960 is the offset into the decode buffer 962 which, along with the previously decoded length, is used to locate the indicated bytes from the decode buffer 962 and output them (e.g., transmitting and/or saving the decoded data).

[0070] In some embodiments, a hash table decoding process includes:

(1) Receive compressed data

(2) Determine, based on a first bit of the compressed data, whether the bitstream is hash table encoded or VLC encoded

(3) If the bitstream is not hash table encoded

(a) Pass the bitstream to a VLC decoder

(4) If the bitstream is hash table encoded

(a) Read and save the next 4 bits, which represent the length of the to-be-decoded data segment

(b) Read another 4 bits, which represent the hash key size

(c) Read another 1-15 bits, depending upon the hash key size, and query' the hash table based on the 1-15 further bits

(d) In response to the query', receive the offset value (e) Locate, within the decoder buffer and based on the offset value and the length, the decoded data segment

(e.g., (f) Output (e.g., save/store and/or transmit) the decoded data segment

Dynamic Dictionary Update

Dynamically Selected Precompiled Dictionaries

[0071] In some embodiments, to achieve high compression ratios on small files (which can be characteristically more difficult to compress), encoders of the present disclosure can make use of pre-compiled dictionaries/VLC tables. These pre-compiled dictionaries/VLC are tailored to specific file/data types. The dictionary to be used for any given action may be specified at run time, or may be selected real-time or near-real-time by analyzing a“small” (e.g., ~4 kilobytes (kB)) portion of the file to be processed. In addition, the dictionary' may be selected by an Artificial Intelligence (AI) powered dictionary selector algorithm. Note that, in some instances, a pre compiled dictionary serves as a starting point dictionary ? that will subsequently be updated as described herein.

[0072] FIG. 10 is a flow diagram illustrating a dictionary selection process, according to some embodiments. As shown in FIG. 10, an incoming data stream (labelled as“Data In”) 1066 has its first 5 kB hashed at 1068. An AI categorizer 1070 can compare the 5 kB hash to multiple pre compiled dictionaries 1072 to identify an appropriate dictionary associated with the given hash. The AI categorizer 1070 then outputs the selected dictionary' · , as dictionary reference 1074.

Example Hybrid Encoding Process:

[0073] An example of a portion of an input bitstream segment is given below:

1) ABCD not in hash table. Code A using VLC. Store A in the decode buffer.

2) BCDE not in hash table. Code B using VLC. Store B in the decode buffer.

3) CDEF not in hash table. Code C using VLC. Store C in the decode buffer.

4) DEFA not in hash table. Code D using VLC. Store D in the decode buffer.

5) EFAB not in hash table. Code E using VLC. Store E in the decode buffer. 6) FABC not in hash table. Code F using VLC. Store F in the decode buffer.

7) ABCD found in hash table. In addition the next character, E is found in the input.

Code ABCDE using the hash table encoder. Store ABC DE in the decode buffer.

8) GABC not in hash table. Code G using VLC. Store G in the decode buffer.

9) ABCD found in hash table. Code ABCD using the hash table encoder. Note that this involves overwriting the hash for ABCD already in the hash table with the new offset. Store ABCD in the decode buffer.

[0074] FIG. 1 1 is a flow diagram illustrating a compression process, according to some embodiments. As shown in FIG. 11, the compression process 1100 includes receiving input (e.g., uncompressed, binary) data at 1 176, loading a dictionary into memory at 1 178, and defining a pre hash table at 1180. An attempt to match the input data with the pre-hash table is performed at 1182, and any portions or segments of the input data that cannot be matched to the pre-hash table (i.e., “mismatches”) are compressed using a VLC (at 1184). The hash table is then updated, at 1186, and the resulting output 1188 is transmitted and/or stored.

[0075] FIG. 12 is a flow diagram illustrating details of the“load dictionary” 1178 and“define pre hash table” 1180 steps of FIG. 11. As shown in FIG. 12, the“load dictionary” 1178 action includes reading a pre-build (or“precompiled,” as described above) dictionary at G178A and loading the relevant portions of the pre-build dictionary into a buffer at 1 178B. The“define pre-hash table” 1180 action includes hashing every element of the pre-build dictionary, at 1180 A, and stocking (or storing) each hash value and its associated position in the hash table at 1180B

[0076] FIG. 13 is a flow diagram illustrating details of the“table matching” step 1182 of FIG. 11. As shown in FIG. 13, the“table matching” 1182 action includes hashing an element (e.g., a data segment) from the input buffer at 1182A to form a hash, comparing the hash with the hash table at 1182B (e.g., by querying the hash table with a reference to the hash). Defining a triad (header + length + hash value) at 1182C for all matched values, and not defining triads for any mismatched hashes (i.e., leaving the mismatch“as-is” - 1182D).

[0077] FIG. 14 is a flow diagram illustrating details of the“mismatch compression” 1 184 and“hash table update” 1186 steps of FIG. 11. As shown in FIG. 14, the“mismatch compression” 1184 includes locating, at 1184 A, the positions of mismatches in the VLC table (also referred to herein as a“mismatches array”). In the array, at 1184B, used mismatches (i.e., hashes that were successfully compressed via the VLC) are shifted up and unused mismatches are shifted down. The triad (header + position) is written at 1184C As also shown in FIG. 14, the“hash table update” 1 1 86 action includes saving the hash value at 1186 A, and saving the position data at 1 186B.

[0078] FIG. 15 is a flow diagram illustrating a decompression process, according to some embodiments. As shown in FIG. 15, the decompression process 1500 includes receiving input (e.g., compressed) data at 1501, loading a dictionary into memory at 1502, and defining a pre-hash table 1503. An attempt to match the input data with the pre-hash table is performed, and matched triads are decompressed at 1504, while mismatched (i.e., unmatched) triads are decompressed at 1505. The hash table is then updated, at 1506, and the resulting output 1507 is transmitted and/or stored.

[0079] FIG. 16 is a flow diagram illustrating details of the“load dictionary” 1502 and“define pre hash table” 1503 steps of FIG. 15. As shown in FIG. 16, the“load dictionary” 1502 action includes reading a pre-built dictionary at 1502 A, and loading the pre-built dictionary' into a buffer at 1502B. The“define pre-hash table” 1503 action includes hashing every' element of the pre-built dictionary' at 1503 A, and stocking/storing the hash value and position data in the hash table at 1503B.

[0080] FIG. 17 is a flow diagram illustrating details of the“decompress match triads” 1504 step of FIG 15. As shown in FIG. 17, the“decompress match triads” 1504 action includes hashing the element from the decoder buffer to obtain the postions and update the hash table at 1504 A. At 1504B, the hash value and the length are read from the triads. The position data is obtained at 1504C, and the data decoded based on the hash value, length, and position data obtained at 1504B and 1504C is written in the decode buffer (1504D).

[0081] FIG. 18 is a flow diagram illustrating details of the“decompress mismatch triads” 1505 and “update hash table” 1506 steps of FIG. 15. As shown in FIG. 18, the“decompress mismatch triads” 1505 action includes reading position data from the triad at 1505 A, if a mismatch is detected (branch “Yes”), and shifting-up the mismatch used in the mismatch array (1505B). Data decoded based on the position data is then written in the decoded buffer, at 1505C. If no mismatch is detected (i.e., if a “match” is found, branch“No”), the“update hash table” 1506 action includes updating the hash tab!ewith the new' position by saving the hash value at 1506 A, and saving the position data, at 1506B. In either case (i.e , whether there is or is not a mismatch), the decoded data is then written in the decoded buffer, at 1505C.

[0082] In some embodiments, a system includes a non-transitory memory, a processor, a DAC and a transmiter. The memory stores a predetermined file size threshold, a VLC encoder, and a hash table. The processor is in operable communication with the non-transitory memory, and configured to receive, at a processor, a first data, and to select one of the VLC encoder or the hash table based on a size of the first data. The processor is also configured to transform, using the selected one of the VLC encoder or the hash table, the first data into a second data including a compressed version of the first data. The DAC is configured to receive a digital representation of the second data from the processor and convert the digital representation of the second data into an analog representation of the second data. The transmitter is configured to transmit the analog representation of the second data. The transmitter can include an antenna such that the analog representation of the second data can be transmitted wirelessly. Alternatively or in addition, the transmitter can include a coaxial cable such that the analog representation of the second data can be transmitted over wire. Alternatively or in addition, the transmitter can include an optical fiber, such that the analog representation of the second data can be transmitted optically. The processor can be configured to store the digital representation of the second data in the memory'.

[0083] All combinations of the foregoing concepts and additional concepts discussed here (provided such concepts are not mutually inconsistent) are contemplated as being part of the subject matter disclosed herein. The terminology explicitly employed herein that also may appear in any disclosure incorporated by reference should be accorded a meaning most consistent with the particular concepts disclosed herein

[0084] The skilled artisan will understand that the drawings primarily are for illustrative purposes, and are not intended to limit the scope of the subject matter described herein. The drawings are not necessarily to scale; in some instances, various aspects of the subject matter disclosed herein may be shown exaggerated or enlarged in the drawings to facilitate an understanding of different features. In the drawings, like reference characters generally refer to like features (e.g., functionally similar and/or structurally similar elements).

[0085] To address various issues and advance the art, the entirety of this appl ication (including the Cover Page, Title, Headings, Background, Summary, Brief Description of the Drawings, Detailed Description, Embodiments, Abstract, Figures, Appendices, and otherwise) shows, by way of illustration, various embodiments in which the embodiments may be practiced. The advantages and features of the application are of a representative sample of embodiments only, and are not exhaustive and/or exclusive. Rather, they are presented to assist in understanding and teach the embodiments, and are not representative of all embodiments. As such, certain aspects of the disclosure have not been discussed herein. That alternate embodiments may not have been presented for a specific portion of the innovations or that further undescribed alternate embodiments may be available for a portion is not to be considered to exclude such alternate embodiments from the scope of the disclosure. It will be appreciated that many of those undescribed embodiments incorporate the same principles of the innovations and others are equivalent. Thus, it is to be understood that other embodiments may be utilized and functional, logical, operational, organizational, structural and/or topological modifications may be made without departing from the scope and/or spirit of the disclosure. As such, all examples and/or embodiments are deemed to be non-limiting throughout this disclosure.

[0086] Also, no inference should be drawn regarding those embodiments discussed herein relative to those not discussed herein other than it is as such for purposes of reducing space and repetition. For instance, it is to be understood that the logical and/or topological structure of any combination of any program components (a component collection), other components and/or any present feature sets as described in the figures and/or throughout are not limited to a fixed operating order and/or arrangement, but rather, any disclosed order is exemplary and all equivalents, regardless of order, are contemplated by the disclosure.

[0087] Various concepts may be embodied as one or more methods, of which at least one example has been provided. The acts performed as part of the method may be ordered in any suitable way. Accordingly, embodiments may be constructed in which acts are performed in an order different than illustrated, which may include performing some acts simultaneously, even though shown as sequential acts in illustrative embodiments. Put differently, it is to be understood that such features may not necessarily be limited to a particular order of execution, but rather, any number of threads, processes, services, servers, and/or the like that may execute serially, asynchronously, concurrently, in parallel, simultaneously, synchronously, and/or the like in a manner consistent with the disclosure. As such, some of these features may be mutually contradictory, in that they cannot be simultaneously present in a single embodiment. Similarly, some features are applicable to one aspect of the innovations, and inapplicable to others.

[0088] In addition, the disclosure may include other innovations not presently described. Applicant reserves all rights in such innovations, including the right to embodiment such innovations, file additional applications, continuations, continuations-in-part, divisional, and/or the like thereof. As such, it should be understood that advantages, embodiments, examples, functional, features, logical, operational, organizational, structural, topological, and/or other aspects of the disclosure are not to be considered limitations on the disclosure as defined by the embodiments or limitations on equivalents to the embodiments. Depending on the particular desires and/or characteristics of an individual and/or enterprise user, database configuration and/or relational model, data type, data transmission and/or network framework, syntax structure, and/or the like, various embodiments of the technology disclosed herein may be implemented in a manner that enables a great deal of flexibility and customization as described herein.

[0089] Ail definitions, as defined and used herein, should be understood to control over dictionary definitions, definitions in documents incorporated by reference, and/or ordinary meanings of the defined terms.

[0090] As used herein, in particular embodiments, the terms“about” or“approximately” when preceding a numerical value indicates the value plus or minus a range of 10%. Where a range of values is provided, it is understood that each intervening value, to the tenth of the unit of the lower limit unless the context clearly dictates otherwi se, between the upper and lower limit of that range and any other stated or intervening value in that stated range is encompassed within the disclosure. That the upper and lower limits of these smaller ranges can independently be included in the smaller ranges is also encompassed within the disclosure, subject to any specifically excluded limit in the stated range. Where the stated range includes one or both of the limits, ranges excluding either or both of those included limits are also included in the disclosure

[0091] The indefinite articles“a” and“an,” as used herein in the specification and in the embodiments, unless clearly indicated to the contrary, should be understood to mean“at least one.” [0092] The phrase“and/or,” as used herein in the specification and in the embodiments, should be understood to mean“either or both” of the elements so conjoined, i.e., elements that are conjunctively present in some cases and disjunctively present in other cases. Multiple elements listed with“and/or” should be construed in the same fashion, i.e.,“one or more” of the elements so conjoined. Other elements may optionally be present other than the elements specifically identified by the“and/or” clause, whether related or unrelated to those elements specifically identified. Thus, as a non-limiting example, a reference to“A and/or B”, when used in conjunction with open-ended language such as“comprising” can refer, in one embodiment, to A only (optionally including elements other than B); in another embodiment, to B only (optionally including elements other than A); in yet another embodiment, to both A and B (optionally including other elements); etc.

[0093] As used herein in the specification and in the embodiments,“or” should be understood to have the same meaning as“and/or” as defined above. For example, when separating items in a list,“or” or“and/or” shall be interpreted as being inclusive, i.e., the inclusion of at least one, but also including more than one, of a number or list of elements, and, optionally, additional unlisted items. Only terms clearly indicated to the contrary', such as“only one of’ or“exactly one of,” or, when used in the embodiments,“consisting of,” will refer to the inclusion of exactly one element of a number or list of elements. In general, the term“or” as used herein shall only be interpreted as indicating exclusive alternatives (i.e.“one or the other but not both”) when preceded by terms of exclusivity, such as“either,”“one of,”“only one of,” or“exactly one of.” “Consisting essentially of,” when used in the embodiments, shall have its ordinary' meaning as used in the field of patent law.

[0094] As used herein in the specification and in the embodiments, the phrase“at least one,” in reference to a list of one or more elements, should be understood to mean at least one element selected from any one or more of the elements in the list of elements, but not necessarily including at least one of each and every element specifically listed within the list of elements and not excluding any combinations of elements in the list of elements. This definition also allows that elements may optionally be present other than the elements specifically identified within the list of elements to which the phrase“at least one” refers, whether related or unrelated to those elements specifically identified. Thus, as a non-limiting example,“at least one of A and B” (or, equivalently, “at least one of A or B,” or, equivalently“at least one of A and/or B”) can refer, in one embodiment, to at least one, optionally including more than one, A, with no B present (and optionally including elements other than B); in another embodiment, to at least one, optionally including more than one, B, with no A present (and optionally including elements other than A); in yet another embodiment, to at least one, optionally including more than one, A, and at least one, optionally including more than one, B (and optionally including other elements); etc.

[0095] In the embodiments, as well as in the specification above, all transitional phrases such as “comprising,” “including,” “carrying,” “having,” “containing,” “involving,” “holding,” “composed of,” and the like are to be understood to be open-ended, i .e., to mean including but not limited to. Only the transitional phrases“consisting of” and“consisting essentially of’ shall be closed or semi-closed transitional phrases, respectively, as set forth in the United States Patent Office Manual of Patent Examining Procedures, Section 211 1.03.

[0096] While specific embodiments of the present disclosure have been outlined above, many alternatives, modifications, and variations will be apparent to those skilled in the art. Accordingly, the embodiments set forth herein are intended to be illustrative, not limiting. Various changes may be made without departing from the spirit and scope of the disclosure.