Hand-held spelling checker and method for reducing redundant information in the storage of textural material4758955Abstract A hand-held spelling checker is disclosed employing a compact technique for storing information. A binary character code is assigned to each letter of the alphabet, and an additional series of binary codes are assigned to indicate a relationship between a subsequent letter and a preceding letter in a dictionary entry. For each letter in the dictionary, the sum of the codes of the binary character and its relationship with the preceding is stored in memory. Claims I claim: Description BACKGROUND OF THE INVENTION
TABLE A
______________________________________
1. fa.sup.. ble
2. fa.sup.. bled
3. fab.sup.. ric
4. fab.sup.. ri.sup.. cate
5. fab.sup.. ri.sup.. cat.sup.. ed
6. fab.sup.. ri.sup.. cat.sup.. ing
7. fab.sup.. ri.sup.. ca.sup.. tion
8. fab.sup.. ri.sup.. ca.sup.. tive
9. fab.sup.. ri.sup.. ca.sup.. tor
10. fab.sup.. u.sup.. lous
11. fab.sup.. u.sup.. lous.sup.. ly
12. fab.sup.. u.sup.. lous.sup.. ness
13. fa.sup.. cade
14. fa.sup.. cades
15. face
16. faced
17. fac.sup.. ing
18. fac.sup.. et
______________________________________
Vocabulary Redundancy Reduction and Storage Each b-code, as well as each character in a vocabulary word, is stored as an 8-bit binary word or byte. The first 3-bits of the 8-bit word are reserved for the b-code described in Table C and the remaining 5-bits contain the character information. For example, the word "fabled" can be stored once "fable" is stored by storing "w d" representative of adding a "d" to make a new word. ##STR1## It is a matter of choice to select an appropriate b-code or character representation. For this example the b-code and character code of Tables C and D, respectively, have been chosen.
TABLE C
______________________________________
Exemplary b-Code List
Binary
Decimal Mnemonic Interpretation
______________________________________
111 7 The character is an intermediate
character
110 6 A syllabic break
011 3 w With the addition of the charac-
ter a vocabulary word is created
100 4 rw The character(s) is (are) a "root"
character and completes a word
001 1 -rw Delete the root buffer, add the
character(s) and the remainder
is both a word and a root
000 0 r The character(s) is(are) a root
character(s) to be added to
preceding characters
010 2 -rr Clear the last root buffer, add
the character(s), but the result
is not a word
101 5 -rx Clear the specified number x of
root buffers
______________________________________
To code the information in Table B from the word list of Table A requires the mnemonics of Table C. Then the mnemonics and characters of Table B are digitally coded using Table C for the first three bits (the b-code) and Table D for the last five bits. Thus, the 8-bit code for "r f" in Table B will be 00000101. For "r a", 00000000; for "rw ble", 10000001 (rw "b"), 11101011 (intermediate character "1") and 11100100 (intermediate character "e"). The remainder of Table B is coded in a similar manner and the 8-bit codes stored in memory. For the special case of -rx, where "x" represents a number 0 through 9, the 5-bit character code for "x" will be represented as shown in Table E.
TABLE E
______________________________________
Special Case Character Code for b-Code -rx
______________________________________
0 10000
1 10001
2 10010
3 10011
4 10100
5 10101
6 10110
7 10111
8 11000
9 11001
______________________________________
The effect of the tables and bit manipulations is to minimize the need to repeat similar information. For example, to store the first two words in Table A, the letters "fa.multidot.ble" need only be stored once. The letter "d" (and the b-code) is the only information necessary to represent the second word. Therefore, out of a total of 13 pieces of information only 7 need to be stored in memory and will represent both the words "fa.multidot.ble" and "fa.multidot.bled". As the list continues, i.e., "fab.multidot.ric," "fab.multidot.ri.multidot.cate," etc., the redundancy becomes cumulative resulting in increased memory space savings. The b-code rules are explained in further detail below in conjunction with the vocabulary reconstruction process. Vocabulary Reconstruction Assume a user desires to know the spelling and syllabic breaks within a target word "fabrication." A unique feature of the spelling device is that it allows the user to take a best guess at the possible spelling of the target word and then display the exact word or words closest to the target word guess. For example, the user may enter "fabr" because this is as much as he feels is an accurate guess for the word "fabrication." The spelling device, in response, displays a table of the words closest to the spelling of the user's guess. For the vocabulary of Table A, the display will show the following: fab.multidot.ric fab.multidot.ri.multidot.cate fab.multidot.ri.multidot.cat.multidot.ed fab.multidot.ri.multidot.cat.multidot.ing If the target word is not shown in the display, the user by depressing the scroll keys shown in FIG. 1 may scroll the display upward,
______________________________________
fab.sup.. ri.sup.. cate
fab.sup.. ri.sup.. cat.sup.. ed
fab.sup.. ri.sup.. cat.sup.. ing
.fwdarw.
fab.sup.. ri.sup.. ca.sup.. tion .rarw.
______________________________________
where the target word is found, or downward, fab.multidot.ric fab.multidot.ri.multidot.cate fab.multidot.ri.multidot.cat.multidot.ed fab.multidot.ri.multidot.cat.multidot.ing and downward again, fa.multidot.bled fab.multidot.ric fab.multidot.ri.multidot.cate fab.multidot.ri.multidot.cat.multidot.ed to examine similar spelling choices. Of course, the display may actually show more than 4 words, with the actual number dependent upon the commercially available liquid crystal or other display employed. In the preferred embodiment, in the memory for the vocabulary reconstruction nine root buffers and one word buffer are used. The first root buffer stores only a single byte while the eight subsequent root buffers each store up to 20 bytes. The word buffer is also 20 bytes. Following entry of the users best guess, the spelling device examines the guess "fabr," and using the first character (or more) of the guess, "f," finds the base code for words stored in memory that start with the letter "f". (The manner in which base codes are used is described below.) For illustrative purposes Tables A, B and C will be used in the following word building process. Because the first character in the target word guess is "f," the spelling device seeks the memory location that contains the information of vocabulary words beginning with "f," i.e., Table B. The first entry in Table B, [r f], indicates that "f" is a root character and should be stored in the root buffer. Therefore, the buffer will contain:
______________________________________
Root Buffer Number
______________________________________
1 f
3
Word Buffer
______________________________________
The spelling device attempts to match the target word guess "fabr" with "f". No match is made so the search process continues. The next entry, [r a], is also a root character and is stored as follows:
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
Word Buffer
______________________________________
Again, the target word guess "fabr" does not match with "fa" so the search continues. The next entry, [rw ble] from Table C, is a root set of characters and is, additionally, a word. Therefore, the buffers will contain:
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 . b l e
Word Buffer
______________________________________
Because a dictionary word is complete, the system sends data to the display, as shown. fa.multidot.ble Again, no match with the target word "fabr" has been made so the search process continues. The fourth entry, [w d], is classified as only a word character and is thus loaded into the word buffer.
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 . b l e
Word Buffer d
______________________________________
Because the b-code indicated that with the addition of "d," a dictionary word was created, the contents of the buffers are displayed: fa.multidot.ble fa.multidot.bled Again, no match is made with the target word guess "fabr" and the search process continues. The fifth entry, [-rr b], indicates that "b" is a root character and that the last root buffer entry should be deleted and replaced with the new root character "b". In addition, the word buffer is cleared. Hence,
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
Word Buffer
______________________________________
The display is not revised because the new information is not classified as a word. Again, no match was made between the target guess word "fabr" and the buffer contents; therefore, the search continues. The sixth entry, [r ri], is classified as a root set of characters. The buffer update then becomes
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
Word Buffer
______________________________________
and no display update is required. This time a match of the buffer contents "fabri" is made with the target guess word "fabr" so the search process ceases. The spelling device then fills the remaining portion of the display with the immediately following words. The sequence will be: Entry 7, [w c].
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
Word Buffer c
______________________________________
displaying fa.multidot.ble fa.multidot.bled fab.multidot.ric Entry 8, [r ca],
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
5 c a
Word Buffer
______________________________________
with no display revision. Entry 9, [r t],
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
5 . c a
6 t
Word Buffer
______________________________________
with no display revision. Entry 10, [w e],
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
5 . c a
6 t
Word Buffer e
______________________________________
displaying fa.multidot.ble fa.multidot.bled fab.multidot.ric fab.multidot.ri.multidot.cate Entry 11, [w ed],
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
5 . c a
6 t
Word Buffer . e d
______________________________________
displaying fa.multidot.bled fab.multidot.ric fab.multidot.ri.multidot.cate fab.multidot.ri.multidot.cat.multidot.ed Entry 12, [w ing],
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
5 . c a
6 t
Word Buffer . i n g
______________________________________
displaying fab.multidot.ric fab.multidot.ri.multidot.cate fab.multidot.ri.multidot.cat.multidot.ed fab.multidot.ri.multidot.cat.multidot.ing The spelling search is now complete. The target word "fabrication" is not displayed. The user may now scroll the display up or down to continue searching for the exact spelling of the target word. Scrolling the display upward calls the next entry, 13, [-rr ti].
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
5 . c a
6 . t i
Word Buffer
______________________________________
and 14, [w on],
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
5 . c a
6 . t i
Word Buffer o n
______________________________________
displaying the desired correct spelling and syllabic breaks of the target word "fabrication".
______________________________________
fab.sup.. ri.sup.. cate
fab.sup.. ri.sup.. cat.sup.. ed
fab.sup.. ri.sup.. cat.sup.. ing
.fwdarw.
fab.sup.. ri.sup.. ca.sup.. tion .rarw.
______________________________________
The hypothetical vocabulary reconstruction example is complete. To clarify the use of the remaining [-rx] and [-rw] b-codes, the above reconstruction process is continued below through entry 18, [rw u lous] of Table B. Proceeding with Entry 15, [w ve],
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
5 . c a
6 . t i
Word Buffer v e
______________________________________
displaying fab.multidot.ri.multidot.cat.multidot.ed fab.multidot.ri.multidot.cat.multidot.ing fab.multidot.ri.multidot.ca.multidot.tion fab.multidot.ri.multidot.ca.multidot.tive Entry 16, [-rw tor], indicates that the new characters are both a root and a word, and, additionally, to replace the last root entry with the current new information; hence,
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . r i
5 . c a
6 . t o r
Word Buffer
______________________________________
Because this new data is classified as a vocabulary word, the b-code causes the display to be revised, fab.multidot.ri.multidot.cat.multidot.ing fab.multidot.ri.multidot.ca.multidot.tion fab.multidot.ri.multidot.ca.multidot.tive fab.multidot.ri.multidot.ca.multidot.tor Entry 17, [-r3], requires that the last three root buffers be cleared. Therefore,
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
5
6
Word Buffer
______________________________________
and the display is not revised. Entry 18, [rw u lous], is both a root and a word. The buffers and display updates are thus:
______________________________________
Root Buffer Number
______________________________________
1 f
2 a
3 b
4 . u . l o u s
6
Word Buffer
______________________________________
displaying: fab.multidot.ri.multidot.ca.multidot.tion fab.multidot.ri.multidot.ca.multidot.tive fab.multidot.ri.multidot.ca.multidot.tor fab.multidot.u.multidot.lous FIG. 2 is a flowchart illustrating a preferred technique for encoding vocabulary words into binary digits for storage and later recall. The process enters the flowchart at block 10 at which four flags--HAT (syllabic break), DELAY (exchange syllabic break and first letter), BFIRST (first letter) and BCENT (b-code entered) are all set to 0. A character is then read in, and at block 20 examined to determine whether it is a line feed or carriage return. If so, the four flags are reinitialized to 0 at block 25 and the next character read in. If the character read in is not a line feed or carriage return, control passes to block 30 where a test is performed to determine whether the b-code has been entered. If the b-code has not been entered, i.e., flag BCENT is equal to 0, the character is tested by blocks 40-45 to select the proper b-code. For example, if the character is an r, a b-code of 000 is assigned at block 52. Control of the program is then passed to block 56 at which flags BFIRST and BCENT are each set equal to 1. Block 46 prints a b-code error message in the event that the b-code has been entered, yet does not match any of the permissible b-codes 40-45. Of course, the number of b-codes 40-45 may be increased or decreased as desired to create any desired set of b-codes. Once the b-code test is complete at block 56, program control returns to read in another character at block 10. The flags are not reinitialized. Because block 56 will have set flag BCENT to be 1, the second pass through the flowchart will result in the test performed at block 30 being true, and accordingly control will pass to block 60. At block 60 a test is performed to determine whether the character is a circumflex (), used to designate a syllabic break in a word. If not, a test is performed at block 70 to determine whether this is the first character after the b-code. If not, control passes to block 80 where a test is performed with regard to whether the HAT flag is equal to 0. If so, the character entered in block 10 is added to binary 11100000 and the result stored as specified by block 90. The purpose of the remaining portions of the flowchart, that is, to the right-hand side of blocks 60 and 70 and to the left-hand side of blocks 80 and 90, is to further compact the information received by switching the order of the syllabic break symbol and the first non-b-code character. In this manner the three most significant bits of each 8-bit binary word will be devoted to either b-code or a circumflex, and the next five bits will be devoted to a binary representation of the character. Without switching the order, memory space would be wasted as whenever a syllabic break followed a b-code entry, for example, as shown in the third line of Table B, the first binary word would have no content beyond the b-code. Returning to block 60, if the circumflex is detected, control of the program passes to block 61 where the HAT flag is set equal to its previous value plus 1. At block 62 a determination is made as to whether BFIRST is equal to 0 or 1. If BFIRST is 0, that is, this is not the first letter, then control returns to block 10 and another character is read. On the other hand, if the BFIRST test at block 62 is positive, the delay flag is set equal to 1 at block 63 and the next character read in. Block 70 performs a test as to whether the BFIRST flag is equal to 1 or 0. If it is equal to 1, then the BFIRST flag is reset to be 0, and the temporary character and b-code are added together and stored at block 71. If at block 70 the BFIRST flag is 0 and the HAT flag is not 0 at block 80, then control passes to block 81 where a test is made to determine whether the delay flag is equal to 1. If not, it is set equal to 1 at block 82 and the temporary character is added to the binary 11100000 and stored as shown at block 90. If the delay is equal to 1 at block 81, then at block 83 the HAT flag is reduced by 1 and a test performed at block 84 to determine whether it is now 0. If so, the delay is set equal to 0 at block 85 and control passes to block 86. If the HAT flag was not 0 at block 84, control passes directly to block 86 and the temporary character is added to the HAT character and stored. The temporary character buffer, HAT character buffer and b-code buffer are shown schematically in the left-hand corner of FIG. 2. FIG. 3 is a flowchart illustrating the reconstruction technique by which an 8-bit binary word is reconstructed into a vocabulary word and displayed on the screen as necessary. As shown in FIG. 3 control enters at block 100 where initialization is performed in which the print, root, and rtctr are each set equal to 0. The rtctr flag points to the appropriate root buffer. The print flag controls whether a particular character is displayed, while the root flag controls whether the decoded character is the root of a word. At block 110 the character is retrieved and a test performed at block 120 to determine whether the retrieved character is an intermediate one, that is, carries a b-code of 111. If it is, control passes to block 130 which calls the subroutine of FIG. 3A, then loads a new character into the second temporary buffer at step 140. Control then returns to block 110 and the next character is retrieved. Assuming the next character is not an intermediate one, control will pass to block 150 to determine whether the next character is a circumflex, indicative of a syllabic break. If so, block 160 is called to determine whether the root flag is 1. If the root flag is not 1, the contents of temporary buffers TEMP1 and TEMP2 are loaded into the word buffer at step 170. If on the other hand the root is equal to 1, the contents of temporary buffers 1 and 2 are loaded into the rtctr buffer at step 171. If at step 150 a syllabic break circumflex is not detected, control will shift to the tests performed by blocks 180-185. These blocks test the character to determine whether it is a b-code character, and if so, transfer control to one of blocks 190-195 for appropriate action. Block 190 will call the subroutines of FIGS. 3A and 3B, then set the root flag to 0. In a similar manner each of the blocks 191-195 performs the steps shown therein. The subroutines called by blocks 190-194 are shown in detail in FIGS. 3A-3C. The subroutine of FIG. 3A simply tests to determine whether the root flag is 1. If it is, then the contents of buffer TEMP2 are loaded into the rtctr buffer. If the root flag is not equal to 1, then the contents of TEMP2 are loaded into the word buffer. FIG. 3B tests the state of the print flag. If the print flag is on, the word string is printed, i.e., displayed on the screen, while if the print flag is off, it is turned on. FIG. 3C also tests the status of the print flag, and if it is found to be on, prints the word string on the screen, and if it is found to be off, maintains it off. FIG. 4 is a block diagram of the circuitry of one embodiment of the hand-held spelling checker of this invention. As shown in FIG. 4, the main portion of the system is a microprocessor, in the preferred embodiment, a Zilog Z80 CMOS microprocessor 200. A data bus 210 couples microprocessor 200 to a read only memory 220 in which the program of FIGS. 2 and 3 is stored. In the preferred embodiment the program ROM is a 27C32. The data bus 210 also connects the microprocessor to a scratchpad random access memory, preferably an HM6116, used as temporary storage for the buffers described in FIGS. 2 and 3. Each of the program ROM 220 and the scratchpad random access memory 230 are also connected to the address bus 240 to receive addressing information from the microprocessor. The vocabulary of the system is stored in one or more dictionary ROMs 250 coupled between the data and the address buses. In one embodiment of the invention, the dictionary ROM consists of two 27C64 ROMs, although larger single ROMs may be employed as semiconductor technology advances. A keyboard 260 is connected to supply addressing information on bus 240 and through a keyboard interface 270 to the data bus 210. In the preferred embodiment the keyboard interface is a CD4503B, while the keyboard, as shown in FIG. 1, consists of 26 keys corresponding to the letters of the alphabet, together with scroll up and scroll down keys, and a reset key. A latch 280, preferably a CD4070B, is connected between the keyboard and the data bus. A display 290 is connected to the data bus and to the microprocessor. In the preferred embodiment the display is a liquid crystal display LM041L. A multiplexer 300 coupled to the address bus and to the microprocessor selects among the ROM and RAM devices, as well as latch 280 and display 290 to activate the proper chip in response to control signals from the microprocessor 200. The microprocessor is also connected to receive clock signals from clock 310 and to receive power from a power supply 320 driving the microprocessor through a voltage regulator 330. Also in the preferred embodiment, a power on reset circuit 340 is provided. The random access and read-only memory have been shown in FIG. 4 as external to the microprocessor. It should be appreciated, however, that if adequate RAM and ROM are provided within the microprocessor itself, the separate devices will not be necessary. Preclassification for Speeding the Search Process In many instances the search time required to find a specific piece of information in a large memory is slow. This nonreal-time operation annoys a user and defeats the purpose of an instant information retrieval system. Further, limitations of integrated circuit technology causes longer than desired buffer and logic processing propagation delay times. In the circuit diagram of FIG. 4, CMOS components were used to lower power consumption, but this required a slower clock speed (1 MHz as opposed to 32 MHz). To compensate for this power versus speed trade-off, a search preclassification scheme is employed. This allows the circuit of FIG. 4 to maintain a real-time search quality while taking advantage of the minimum power consumption properties afforded by the CMOS technology. Because speed is of utmost importance the preclassification scheme is variable and can operate on one to any number of preclassification characters. Without preclassification, if a user were to enter "deter" to search for the target word "determine," a search starting from the letter "a" through "determine" would begin. Throughout the process approximately 10,400 syllabicated words or approximately 124,800 characters would be scanned and the system would converge on the search entry, "deter," approximately 6 minutes later. To prevent this long wait, the search entry is placed in a buffer and sequentially compared (exclusive ORed) to the preclassification memory entry points, termed PMEP herein. For example, the first character of the search entry "d" is compared to the first character PMEP of Table F. The second character is scanned in the same manner and the PMEP is "de." A third character is available in the PMEP so the final match between the user search entry "deter" is "det." From Table G, the target word search would start at address location 24588. The results of this yield a search, for example, from "detach" through "detect," "detergent" and ultimately to " determine." The search time for the preclassification scheme is comparatively much faster than a sequential search and restores the information retrieval system to real-time operation, even with the CMOS maximum clock speed lowered to 1 MHz. The actual number of characters used in the preclassification comparison is redefinable by the designer and dependent upon the type of information that was stored for retrieval. For example, in the speller described in FIG. 4, it was desired to not scan more than approximately 256 words, so the PMEP of Table H is employed. In cases where more resolution was needed, for example, words beginning with "un," four characters were required to stay within the 256 word limit.
TABLE F
______________________________________
Fast Search Preclassification Scheme
Search Character
______________________________________
##STR2##
______________________________________
Further Applications The method for reducing redundant information described herein has many applications of which one sequential search speller checker has been described. There are, however, numerous other applications. For example, using the same b-coding and sub-coding techniques, described previously, sequential data such as telephone books, charge card listings, card catalogs, etc., can be reduced equivalently. Random text information can also be more compactly stored. The benefits of reducing the amount of redundant information in random text can be better appreciated if applications to knowledge based systems are considered. For example, a typical memory system, silicon, magnetic floppy diskette, hard single or multi-plattered disk, optical laser, or other memory device can store the equivalent of approximately four times the amount of information that would be stored using state-of-the-art techniques. Thus, a 10 Mbyte hard disk drive would appear as a .about.40 Mbyte drive, etc. Therefore, concern over storing memory intensive on-line databases such as system manuals, accounting, directories, encyclopedias, medical patient histories, law code books, or inventory lists is minimized by a multiple factor of the storage medium capacity. Further, redundancy reduction minimizes the cost of purchasing mass storage medium for use in archival storage or system back-ups by a factor of .about.4 to 1. Whereas the conventional technique stores each character and control character as an ASCII byte, the method of this invention as applied to random text assigns two bytes to each word that correspond to the address of the applicable word in a dictionary itself stored using the method described above. The use of two bytes allows 2.sup.16 or 65,536 vocabulary words. Control characters are stored as single bytes and spaces between words, if authorized, are automatically inserted after each two-byte boundary. For example,
__________________________________________________________________________
Never address
your marketplace
universally.
ASCII 5 +
1 + 7 +
1 + 4 +
1 + 11 + 1 + 11 +
1 = 43 bytes
Redundancy Reduction
2 + 2 + 2 + 2 + 2 + 1 = 11 bytes
__________________________________________________________________________
produces a 3.9:1 memory reduction. A two-byte word representation was used in the above examples and further efficiency was maintained for single character items such as periods, commas, spacing control characters, etc. In addition and of particular importance are a set of words that have a high frequency of occurrence in common text. These are listed in Table I and because of their repetitive appearances, it was appropriate to assign these words a special single byte code. Therefore, in selecting the word code translation table, certain single byte representations are reserved. Because reserving a single byte code affects both the low and high byte of the two-byte word code, careful selection of the single byte code is necessary to avoid introducing ambiguities in the word table.
TABLE I
______________________________________
Common Words Listed in Order
of Highest Frequency of Occurrence
______________________________________
1. the 10. it 19. by
2. of 11. for 20. but
3. and 12. as 21. have
4. to 13. with 22. you
5. a 14. was 23. which
6. in 15. his 24. are
7. that 16. he 25. on
8. is 17. be 26. or
9. I 18. not 27. your
______________________________________
Each byte was only permitted to represent the binary codes 1 through 212. As a result, 212.times.212, or 44,944 words are available for the dictionary, and the remaining codes, 0 and 213-255 are available for 44 common words, punctuation marks, tabs, spaces, carriage returns, etc. A two- (or more if necessary) byte word identification scheme can represent 2.sup.16 or 65,536 words. However, the two bytes cannot address the 115,000 bytes of memory needed to store the data in the manner described above in conjunction with Tables C and D. This is because there is no correlation between the two-byte word number and the appropriate word storage location in memory. The problem is amplified if the redundancy reduction technique is not used on the 45,000 word dictionary since the two bytes, 65,536 addressable locations, cannot address the 540,000 byte unreduced dictionary memory. This problem, however, may be solved using the technique shown in FIG. 5 by examining and counting only the word b-codes "rw", "-rw" and "w." In doing so, regardless of how large the dictionary memory is, the two bytes can address up to 65,536 words. Use of this technique can be seen in Table B, in which 18 words are listed among 28 total entries. In this example, the system scan enters at the first memory location, examining each successive location for a word b-code. Each time a "w" or "rw" is detected, the count is compared to the two-byte target word number. When the word count matches with the word number buffer value, the word is reconstructed and printed to the appropriate output device. To reduce the redundancy of character spacing within the text, rules were established where all single and two-byte words were to be automatically preceded by a space except when followed by a period. In this case the system inserts a space and has the first character of the word represented in uppercase. This unique two-byte (or more) encoding and decoding scheme can also be applied to other than redundance-reduced text by counting and matching the two-byte word number with the number of carriage return (CR) line feed (LF) character pairs detected at the end of each dictionary word. The result would yield similar text storage space savings; however, since the dictionary word not be used an extremely large amount of text would have to be applied before the text storage space savings would equal the space needed to initially store the dictionary. Both (1) sequential text information redundancy reduction and (2) random text information redundancy reduction may be combined to increase the transmission speed in a data communications connection. To establish a communications link, both ends require a data reduction encoder for transmitting, and a decoding data expander for receiving. A typical system is shown in FIG. 6. Because the data can be reduced by a ratio of approximately 4 to 1, the transfer of reduced data over a communications link results in an increase in the effective rate of data transfer, even though the actual information transfer rate expressed in bits per second remains the same. This has a two-fold advantage in that it allows a data processing center to minimize its costly data communications transmission connect time and in effect, permits transmitting at a higher data rate without the cost of upgrading to high speed data communications equipment. Data encryption is an added benefit of the data reduction techniques described above. In typical schemes encryption keys are used to encipher information from viewing by unauthorized personnel. To make it sufficiently difficult to discover the key envryption code, longer key sequences have been proposed. This solution does much to protect valued information; however, it trades off increased difficulty in code decipherability with reduced data transmission speed and reduced encryption/decryption throughput by the host transmitting/receiving computer. Typically, long encryption keys provide data protection for those computers having significant processing speeds to decipher the coded information in a timely fashion. This eliminates many small systems or businesses that have as confidential information but cannot afford the cost of a high-speed numerical processor to protect data. Furthermore, the methods used by those attempting to break such encrypted data have at their access the useful statistical information about English or other appropriate grammar. For example, to decipher a document one begins by examining statistics on the frequency of occurrence of letters, diagrams, trigrams and words. Thus, in deciphering one would count the highest number of occurrences of a given symbol and assign that particular symbol the letter "e." Substituting "e" for the highest symbol occurrence, "t" for the next highest symbol occurrence, examining the text for intelligibility, and repeating the process for each successive letter, digram, trigram, etc., would eventually yield the decipheror enough information to determine the content of the encrypted information. Of course, these are over simplified examples of the code breaking process. They do, however, point out the reason for a trend toward longer and more complex encryption keys which, unfortunately, strains or limits the throughput of the data communications equipment. The redundancy reduction techniques described above are unique to solving this throughput versus encryption complexity dilemma because the coding process is multi-leveled and, more importantly, operates on whole words. Though word histograms can be generated, their statistics, unlike the constant nature of letter, digram and trigram statistics, remain highly unstable because of their dependency on the subject matter of the encoded message. Further, an exact code is necessary to decipher each word since a word cannot be broken down into or correlated by letter elements. For example, knowing the code that represents the word "three" has no relation to the word "therefore" and exemplifies the orthogonal nature of each coded word. One technique for encryption is to use a sequence of transformations. First a dictionary is compiled as a database specific dictionary that is pseudo-sequentially-random ordered or randomly ordered. This sets up the first layer of enciphering that performs the multi-functions of reducing, coding and encrypting the text. Next a single- or double-byte word representation similar to that described in Table J is employed. These bytes perform the dual role of enciphering and representing the word table count sequences. Viewing these codes, an intruder gains no information as to the content of the encrypted text. Next the bytes may be scrambled as desired to provide an additional layers of encryption protection. Essential to understanding the encryption scheme is the realization that, without the reference dictionaries, it is meaningless to intercept the transmitted single- and dual-byte codes. The foregoing has been a description of the preferred embodiment intended to explain the invention. The scope of the invention may be ascertained from the appended claims.
|
Same subclass Same class Consider this |
||||||||||
