Claims
- 1. A method for finding a closest match of each of a plurality of N input patterns relative to a plurality of R reference patterns using a plurality of K processing units comprising:
(a) loading a first input pattern into a first processing unit and a second input pattern into a second processing unit; (b) sending one of said R reference patterns as a selected reference pattern to said first and second processing units; (c) calculating a first distance in said first processing unit, said first distance representing a similarity of said selected reference pattern to said first input pattern; (d) calculating a second distance in said second processing unit, said second distance representing a similarity of said selected reference pattern to said second input pattern; (e) saving said first distance as a present minimum first distance and saving a first identification corresponding to said selected reference pattern used to calculate said present minimum first distance if said first distance is smaller than a stored previous present minimum first distance; (f) saving said second distance as a present minimum second distance and saving a second identification corresponding to said selected reference pattern used to calculate said present minimum second distance if said second distance is smaller than a stored previous present minimum second distance; and (g) repeating steps (b)-(f) until all of said R reference patterns have been loaded, wherein said present first minimum distance is a final first minimum distance of said first input pattern relative to said R reference patterns and said first identification identifies which of said R reference patterns is a closest match to said first input pattern, and said present second minimum distance is a final second minimum distance of said second input pattern relative to said R reference patterns and said second identification identifies which of said R reference patterns is a closest match to said second input pattern.
- 2. The method of claim 1, further including the step of outputting said first identification and said second identification on a bus coupling said K processing units after said R reference patterns have been processed.
- 3. The method of claim 1, further including the step of outputting said final first and second minimum distances on a bus coupling said K processing units after said R reference patterns have been processed.
- 4. The method of claim 1, further including the step of sending said first identification from a first selection circuit in said first processing unit to a second selection circuit in said second processing unit after said R reference patterns have been processed, wherein said first selection circuit selects between said final first minimum distance and said first identification.
- 5. The method of claim 4, further including the step of sending said second identification from said second selection circuit in said second processing unit to a third selection circuit in a third processing unit after said R reference patterns have been processed, wherein said second selection circuit selects between said final second minimum distance and said second identification.
- 6. The method of claim 1, wherein said K processing units are in a single integrated circuit.
- 7. The method of claim 1, wherein said K processing units are in a plurality of integrated circuits.
- 8. The method of claim 5, wherein said K processing units are in a plurality of integrated circuits.
- 9. The method of claim 1, wherein K is equal to N.
- 10. A system for finding a closest match of a plurality of N input patterns relative to a plurality of R reference patterns using a plurality of K processing units comprising:
circuitry for loading a first input pattern into a first processing unit and a second input pattern into a second processing unit; circuitry for sending a selected same one of said R reference patterns to said first and second processing units in response to an index signal selecting a reference pattern; circuitry for calculating a first distance in said first processing unit, said first distance representing a similarity of said selected reference pattern to said first input pattern; circuitry for calculating a second distance in said second processing unit, said second distance representing a similarity of said selected reference pattern to said second input pattern; circuitry for saving said first distance as a present minimum first distance and saving a first identification corresponding to said selected reference pattern used to calculate said present minimum first distance if said first distance is smaller than a stored previous present minimum first distance; circuitry for saving said second distance as a present minimum second distance and saving a second identification corresponding to said selected reference pattern used to calculate said present minimum second distance if said second distance is smaller than a stored previous present minimum second distance; and circuitry for incrementing said index signal when said calculations of said first and second distance values are complete for each of said R reference patterns.
- 11. The system of claim 10, further comprising circuitry for determining when all of said R reference patterns have been sent indicating that a closest match to said first and second input patterns has been determined, wherein said present first minimum distance is a final first minimum distance of said first input pattern relative to said R reference patterns and said first identification identifies which of said R reference patterns is a closest match to said first input pattern, and said present second minimum distance is a final second minimum distance of said second input pattern relative to said R reference patterns and said second identification identifies which of said R reference patterns is a closest match to said second input pattern.
- 12. The system of claim 10, further including circuitry for outputting said first and second identification values on a bus coupling said K processing units after said R reference patterns have been processed.
- 13. The system of claim 10, further including circuitry for outputting said final first and second minimum distance values on a bus coupling said K processing units after said R reference patterns have been processed.
- 14. The system of claim 10, further including circuitry for sending said first identification from a first selection circuit in said first processing unit to a second selection circuit in said second processing unit after said R reference patterns have been processed, wherein said first selection circuit selects between said final first minimum distance and said first identification.
- 15. The system of claim 14, further including circuitry for sending said second identification from said second selection circuit in said second processing unit to a third selection circuit in a third processing unit after said R reference patterns have been processed, wherein said second selection circuit selects between said final second minimum distance and said second identification.
- 16. The system of claim 10, wherein said K processing units are in a single integrated circuit.
- 17. The system of claim 10, wherein said K processing units are in a plurality of integrated circuits.
- 18. The system of claim 15, wherein said K processing units are in a plurality of integrated circuits.
- 19. The system of claim 10, wherein K is equal to N.
- 20. A method for finding a closest match of each of a plurality of N input patterns relative to a plurality of R reference patterns using a plurality of K processing units comprising:
(a) calculating a first distance between a first input pattern and a selected reference pattern in a first processing unit, said first distance representing a similarity of said selected reference pattern to said first input pattern (b) calculating a second distance between a second input pattern and said selected reference pattern in a second processing unit, said second distance representing a similarity of said selected reference pattern to said second input pattern; (c) saving said first distance as a present minimum first distance and saving a first identification corresponding to said selected reference pattern used to calculate said present minimum first distance if said first distance is smaller than a stored previous present minimum first distance; (d) saving said second distance as a present minimum second distance and saving a second identification corresponding to said selected reference pattern used to calculate said present minimum second distance if said second distance is smaller than a stored previous present minimum second distance; and (e) repeating steps (b)-(d) until all of said R reference patterns have been processed, wherein said present first minimum distance is a final first minimum distance of said first input pattern relative to said R reference patterns and said first identification identifies which of said R reference patterns is a closest match to said first input pattern, and said present second minimum distance is a final second minimum distance of said second input pattern relative to said R reference patterns and said second identification identifies which of said R reference patterns is a closest match to said second input pattern.
- 21. The method of claim 20, further including the step of outputting said first identification and said second identification on a bus coupling said K processing units after said R reference patterns have been processed.
- 22. The method of claim 20, further including the step of outputting said final first and second minimum distances on a bus coupling said K processing units after said R reference patterns have been processed.
- 23. The method of claim 20, further including the step of sending said first identification from a first selection circuit in said first processing unit to a second selection circuit in said second processing unit after said R reference patterns have been processed, wherein said first selection circuit selects between said final first minimum distance and said first identification.
- 24. The method of claim 23, further including the step of sending said second identification from said second selection circuit in said second processing unit to a third selection circuit in a third processing unit after said R reference patterns have been processed, wherein said second selection circuit selects between said final second minimum distance and said second identification.
- 25. The method of claim 20, wherein said K processing units are in a single integrated circuit.
- 26. The method of claim 20, wherein said K processing units are in a plurality of integrated circuits.
- 27. The method of claim 24, wherein said K processing units are in a plurality of integrated circuits.
- 28. The method of claim 20, wherein K is equal to N.
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application is related to the following commonly owned copending U.S. patent applications:
[0002] Ser. No. ______ (Attorney Docket No. RPS920020179US1) entitled “Method and Apparatus For Imbedded Pattern Recognition Using Dual Alternating Pointers” filed, ______, and
[0003] Ser. No. ______ (Attorney Docket No. RPS920020180US1) entitled “Method and Apparatus For Finding Repeated Substrings In Pattern Recognition” filed, ______, which are hereby incorporated by reference herein.