Claims
- 1. A sorting circuit for sorting three input values into first through third ascendingly ordered output values, said input values being represented by three input sequences, respectively, siad first through said third output values being represented by first through third output sequences, respectively, each of said input and said output sequences being a time sequence having a prescribed number of binary bits arranged from the most significant bit to the least significant bit, said input and said output sequences thereby having corresponding bits each binary bit having either of a logic "0" and a logic "1" level at a time, said sorting circuit comprising:
- state specifying means for specifying any one of an initial state, six first-level states, and six second-level states at a time, each first-level state being accompanied by two second-level states with said two second-level states assigned to two first-level states including said each first-level state, respectively, so that each second-level state may indicate a particular order among said input values, said initial state being a state in which the order of said input values is not yet definite, each first-level state being another state in which the order is determined for only one input value, each of the two second-level states accompanying the last-mentioned first-level state being still another state in which the order is determined for two input values except for said only one input value;
- means for resetting said state specifying means into said initial state;
- checking and driving means coupled to said state specifying means for checking three corresponding bits of the respective input sequences from time to time to drive, when only one bit is checked to have one of the logic "0" and the logic "1" levels with the two binary bits corresponding thereto checked to have the other of the logic "0" and the logic "1" level for the first time after said state specifying means is reset into said initial state, said state specifying means from said initial state to one of said first-level states that is predetermined according to the input sequence in which said only one bit is present, said checking and driving means subsequently driving said state specifying means from said one first-level state to one of the two second-level states accompanying said one first-level state when a particular bit and the binary bit corresponding thereto of two input sequences except for the input sequence in which said only one bit is present are checked to have a predetermined one and the other of the logic "0" and the logic "1" levels, respectively, for the first time after said state specifying means is driven to said one first-level state; and
- an output circuit coupled to said state specifying means for arranging said input sequences into said first through said third output sequences according to said initial state, said one first-level state, and said one second-level state.
- 2. A sorting circuit as claimed in claim 1, wherein said output circuit comprises output producing means responsive to each of said initial, said first-level, and said second-level states for producing as said first output sequence a first cf said input sequences in which said only one bit is present, for producing as said second output sequence a second of said irput sequences in which the logic "0" leve is had by one of said particular bit and the binary bit corresponding thereto, and for producing as said third output sequence a third of said input sequences in which the logic "1" level is had by the other of said particular bit and the binary bit correspondirg thereto, when said only one bit has the logic "0" leve, said output producing means producing said third, said second, and said first input sequences as said first through said third output sequences, respectively, when said only one bit has the logic "1" level.
- 3. A sorting circuit as claimed in claim 2, wherein:
- said state specifying means comprises level giving means for giving the logic "1" level to an initial-state signal S.sub.O when said state specifying means is put in said initial state, a first first-level signal S.sub.11 when one input valve X.sub.1 and another input value X.sub.2 are smaller than still another input value X.sub.3, a second first-level signal S.sub.12 when the input value X.sub.1 is the smallest of said three input sequences, a third first-level signal S.sub.13 when the input value X.sub.2 is the largest of said three input sequences, a fourth first-level signal S.sub.14 when the input value X.sub.3 is the smallest of said three input sequences, a fifth first-level signal S.sub.15 when the input vlaue X.sub.1 is the largest of said three input sequences, a sixth first-level signal S.sub.16 when the input value X.sub.2 is the smallest of said three input sequences, a first second-level signal S.sub.21 when the input values X.sub.3 and X.sub.1 are greater and smaller than the input value X.sub.2, respectively, a second second-level signal S.sub.22 when the input values X.sub.1 and X.sub.2 are smaller and greater than the input value X.sub.3, respectively, a third second-level signal S.sub.23 when the input values X.sub.2 and X.sub.3 are greater and smaller than the input value X.sub.1, respectively, a fourth second-level signal S.sub.24 when the input values X.sub.3 and X.sub.1 are smaller and greater than the input value X.sub.2, respectively, a fifth second-level signal S.sub.25 when the input values X.sub.1 and X.sub.2 are greater and smaller than the input value X.sub.3, respectively, and a sixth second-level signal S.sub.26 when the input values X.sub.2 and X.sub.3 are smaller and greater than the input value X.sub.1, respectively, said level giving means otherwise giving the logic "0" level to said initial-state, said first-level, and said second-level signals;
- said output producing means comprising means supplied with said input sequences and said initial-state, said first-level, and said second-level signals for producing corresponding input sequence bits x.sub.1, x.sub.2, and x.sub.3 for the respective input value X.sub.1, X.sub.2, X.sub.3 as corresponding bits Y.sub.1, Y.sub.2, and Y.sub.3 of said first through said third output sequences according to logic forumulae: ##EQU1##
Parent Case Info
This is a division of U.S. patent application Ser. No. 384,483, filed June 3, 1982, (pending), which in turn is a continuation of U.S. patent application Ser. No. 073,640, filed Sept. 10, 1979, (now abandoned).
US Referenced Citations (14)
Non-Patent Literature Citations (1)
Entry |
Donald Knuth, vol. 3/Sorting and Searching in The Art of Computer Programming, 1973, pp. 139-142 and 229-233. |
Divisions (1)
|
Number |
Date |
Country |
Parent |
384483 |
Jun 1982 |
|
Continuations (1)
|
Number |
Date |
Country |
Parent |
73640 |
Sep 1979 |
|