SU1520535A1 - Combinatory arrangement - Google Patents
Combinatory arrangement Download PDFInfo
- Publication number
- SU1520535A1 SU1520535A1 SU884407049A SU4407049A SU1520535A1 SU 1520535 A1 SU1520535 A1 SU 1520535A1 SU 884407049 A SU884407049 A SU 884407049A SU 4407049 A SU4407049 A SU 4407049A SU 1520535 A1 SU1520535 A1 SU 1520535A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- elements
- output
- block
- input
- inputs
- Prior art date
Links
Landscapes
- Pulse Circuits (AREA)
Abstract
Изобретение относитс к области автоматики и вычислительной техники и предназначено дл использовани в устройствах, решающих комбинаторные задачи, св занные с определением числа сочетаний и размещений. Цель изобретени - расширение функциональных возможностей за счет определени числа размещений. Устройство содержит регистры 1, 4, 19, 22, блоки вычитани 9, умножени 17, делени 24, счетчик 11, схему 12 сравнени , коммутатор 23, триггер 29, блоки 5, 8, 10, 13, 15, 16, 18, 20, 25, 27, 30 элементов И, блок 31 элементов ИЛИ, элемент ИЛИ 26. Дополнительно к функции определени числа сочетаний элементов предлагаемое устройство определ ет и число размещений. Это достигаетс ценою ввода в конструкцию дополнительных блоков: коммутатора, триггера, блока элементов И, блока элементов ИЛИ и элемента ИЛИ. 1 ил.The invention relates to the field of automation and computer technology and is intended for use in devices that solve combinatorial problems associated with determining the number of combinations and arrangements. The purpose of the invention is to expand the functionality by determining the number of placements. The device contains registers 1, 4, 19, 22, blocks of subtraction 9, multiplication 17, division 24, counter 11, comparison circuit 12, switch 23, trigger 29, blocks 5, 8, 10, 13, 15, 16, 18, 20 , 25, 27, 30 elements AND, block 31 elements OR, element OR 26. In addition to the function of determining the number of combinations of elements, the proposed device also determines the number of placements. This is achieved by introducing additional blocks into the design: a switch, a trigger, a block of AND elements, a block of OR elements, and an OR element. 1 il.
Description
лl
СП ЮJV Yu
ОABOUT
ел оэ елate oe ate
Изобретение относитс к автоматике и вычислите;1ьиой технике и может быть использовано в устройствах, решающих комбинаторные задачи, св - занные с вычислением числа сочетаний и размещений.The invention relates to automation and calculate; 1 technique and can be used in devices that solve combinatorial problems related to the calculation of the number of combinations and arrangements.
Целью изобретени вл етс расширение функциональных возможностей устройства за счет определени числа размещений.The aim of the invention is to expand the functionality of the device by determining the number of allocations.
На чертеже представлена функциональна схема устройства.The drawing shows the functional diagram of the device.
Устройство.содержит регистр 1, элемент 2 задержки, генератор 3 тактовых импульсов, регистр 4, блок 5 элементов И, элементы 6 и 7 задержки, блок 8 элементов И, блок 9 вычитани , блок 10 элементов И, счетчик 11, схему 12 сравнени , блок 13 элементов И, -эле- мент 14 -задержки, блоки 15 и 16 элементов И, блок 17 умножени , блок 18 элементов И, регистр 19, блок 20 элементов И, элемент 21 задержки, регист 22, коммутатор 23, блок 24 делени , блок 25 элементов И, элемент ИЛИ 26, блок 27 элементов И, элемент 28 задержки , триггер 29, блок 30 элементов И, блок 31 элементов ИЛИ, информационные входы 32 и 33, входы 34 и 35 запуска устройства на определение числа размещений и сочетаний соответственно,The device contains a register 1, a delay element 2, a generator of 3 clock pulses, a register 4, a block of 5 elements AND, a delay element 6 and 7, a block of 8 elements AND, a subtraction block 9, a block of 10 elements And, a counter 11, a comparison circuit 12, block 13 elements AND, element 14, delay, blocks 15 and 16 elements AND, block 17 multiplication, block 18 elements AND, register 19, block 20 elements AND, delay element 21, register 22, switch 23, block 24 dividing , block 25 And elements, element OR 26, block 27 elements And, element 28 delay, trigger 29, block 30 elements And, block 31 elements OR, information inputs 32 and 33, inputs 34 and 35 launch the device to determine the number of layouts and combinations, respectively,
выход 36.exit 36.
1one
Устройство определ ет число С ,, сочетаний или А размещений из п элементов по К. Значени п,К перед началом работы устройства заноситс в регистры 1 и 4 с входов 32 и 33. Выбор задачи определ етс подачей запускающего импульса на один из вхо- дов 34 и 35 с запоминанием режима работы на триггере 29.The device determines the number C, combinations or A of the arrangements of n elements according to K. The values of n, K before the operation of the device is entered into registers 1 and 4 from inputs 32 and 33. The choice of the task is determined by applying a trigger pulse to one of the inputs 34 and 35 with memorization of the trigger 29 operation mode.
Дл определени числа сочетаний триггер 29 устанавливаетс в единичное состо ние, При этом выход блока 20 элементов И через коммутатор 23. подключаетс к входу блока 24 делени а на другом выходе коммутатора формируетс нулевой код. Блок 30 элемен-- тов И сказываетс открытым дл пере- дачи информации от блока 27 элементов И к блоку 31 элементов ИЛИ.To determine the number of combinations, the trigger 29 is set to one, and the output of the block 20 of the elements AND through the switch 23. is connected to the input of the block 24 and a zero code is formed at the other output of the switch. Block 30 of the elements AND appears open to transfer information from block 27 of the elements AND to block 31 of the elements OR.
Запускаюищй сигнал, пройд через элемент ШМ 26, производит начальнуюRunning the signal, having passed through the element CMM 26, produces the initial
через элемент 2 задержки запускает генератор 3.through element 2, the delay starts the generator 3.
Очередной i-импульс с выхода генератора поступает на счетный вход сч:етчика 11 , увеличива его содержимое на единицу и устанавлива в состо ние i.The next i-pulse from the generator output goes to the counting input of the sc: etchik 11, increasing its content by one and is set to state i.
Одновременно тактовый импульс поступает на входы элементов 6 и 7 задержки . Сигнал с выхода элемента 6, задержанный на врем срабатывани счетчика 11, поступает на входы блоков 5, 8, 10 и 16 элементов И и вход элемента 14 задержки. По этому сигналу код числа К подаетс из регистра 4 через блок 8 элементов И на вход схемы 12 сравнени , на второй вход которой поступает код текущего состо ни счетчика 11 через блок 16 элементов И. Если сравниваемые числа равны то схема сравнени формирует сигнал, которьш, поступа на вход останова генератора 3, запрещает генерирование тактовых импульсов. 1At the same time the clock pulse is fed to the inputs of the elements 6 and 7 of the delay. The output signal from element 6, delayed by the response time of counter 11, is fed to the inputs of blocks 5, 8, 10, and 16 elements And and the input of element 14 delay. By this signal, the code of the number K is fed from register 4 through the block 8 elements AND to the input of the comparison circuit 12, to the second input of which the current state code of the counter 11 is received through the block 16 elements I. If the compared numbers are equal, then the comparison circuit generates a signal entering the stop input of the generator 3, prohibits the generation of clock pulses. one
Если числа не равны, то генераторIf the numbers are not equal, then the generator
через врем , определ емое периодом следовани тактовых импульсов, формирует очередной импульс, и работа устройства продолжаетс .after a time determined by the period of the following clock pulses, it forms the next pulse, and the operation of the device continues.
Пусть числа не равны. Тогда код числа из регистра 1 поступает через блок 5 элементов И на вход блока 9 вычитани , на второй вход которого подаетс предыдущий код состо ни счетчика, хран щийс в регистре 19. Таким образом, на выходах блока вы- читани формируетс код разности n-(i-1),Ilo истечении времени определ емого элементом 7 задержки, разрешаетс прохождение кода состо ни счетчика 11с его выхода через блок 15 элементов И на вход регистра 19, где он запоминаетс . На i-м такте импульс , задержанный элементом 14, поступа на управл ющие входы блока- 13 и 18 элементов И, обеспечивает прохождение через них соответственно с выхода блока 9 вычитани кода числа n-(i-1) и с выхода регистра 22 произведени Let the numbers are not equal. Then the code of the number from register 1 goes through block 5 of the elements AND to the input of block 9 of the subtraction, to the second input of which the previous counter state code is stored, stored in register 19. Thus, the outputs of the block of subtraction form the difference code n- ( i-1), Ilo, by the expiration of the time determined by delay element 7, the passage of the state code of its output counter 11c through the block 15 of elements AND to the input of register 19, where it is stored, is allowed. At the i-th cycle, the pulse delayed by element 14, entering the control inputs of block 13 and 18 elements AND, ensures that the code n of the number n- (i-1) and the register output 22
п - (1-1)n - (1-1)
установку блока 9 вычитани , блока 17 умножени , блока 24 делени , счетчика 11 и регистра 19 в нулевое состо ние , а в регистр 22 записываетс 1 в двоичном коде. Этот же сигналsetting the subtraction unit 9, the multiplication unit 17, the division unit 24, the counter 11 and the register 19 to the zero state, and the register 22 is written 1 in binary code. Same signal
равно числу С J, сочетаний. Это число поступает на входы блока 17 умножени . Блок умножени осуществл ет вычисление произведени (n-(i-1))iequal to the number of C J combinations. This number is fed to the inputs of block 17 multiplication. The multiplier performs the calculation of the product (n- (i-1)) i
Одновременно импульс с выхода элемента 14 задержки поступает на вход элемента 21 задержки, где задерживаетс на врем срабатывани блока ум- . Сигнал с выхода элемента 21 задержки поступает на вход элемента 28 задержки, а также на управл ющие входы блоков 20 и 25 элементов И. Тем самым разрешаетс прохождение на входы блока 24 делени с выхода блока 17 умножени через коммутатор 23 кода числа С п (n-(i-l), а с выхода счетчика 11 - кода числа i. Частное от делени At the same time, the pulse from the output of the delay element 14 is fed to the input of the delay element 21, where it is delayed by the response time of the block um-. The signal from the output of the delay element 21 is fed to the input of the delay element 28, as well as to the control inputs of the blocks 20 and 25 of the elements I. Thus, the passage to the inputs of the division unit 24 from the output of the multiplication unit 17 through the switch 23 of the Cn code (n- (il), and from the output of the counter 11 - the code of the number i. The quotient from the division
.Hiiiil)...Hiiiil) ..
ii
г I I r
t5 pa соединен с информационным входом первого блока элементов И, выход кото рого подключен к входу уменьшающего блока вычитани , выход блока вычитани соединен с информационным входом второго блока элементор И, выход которого подключен к первому информационному входу блока умножени , выход блока умножени соединен с информаци- oHHbw входом третьего блока элементовt5 pa is connected to the information input of the first block of AND elements, the output of which is connected to the input of the decrementing subtracting unit, the output of the subtraction unit is connected to the information input of the second block, the AND element whose output is connected to the first information input of the multiplication unit, the output of the multiplication unit is connected to the information oHHbw input of the third block of elements
2020
|поступает через блоки 27, 30 и 31 в регистр 22, где хранитс до следующего такта.| enters via blocks 27, 30 and 31 to register 22, where it is stored until the next clock cycle.
На К-м такте на выходе счетчика 11 образуетс код состо ни , соответствующий числу К, в результате чего схема 12 сравнени сформирует сигнал, 25 И, выход счетчика подключен к инфор- поступающий на вход останова генера- мационным входам четвертого, п тогоAt the Kth cycle, at the output of the counter 11, a state code corresponding to the K number is formed, as a result of which the comparison circuit 12 will generate a signal, 25 And, the counter output is connected to the information input to the stop input by the generation inputs of the fourth, fifth
и шестого блоков элементов И, выход четвертого блока элементов И подключен к информационн.ому входу третьего 30 регистра, выход которого соединен с информационным входом седьмого блока элементов И, выход которого подключен к входу вычитаемого блока вычитани , выход п того блока элементов И под- «- ключен к входу делител блока делени , выход которого соединен с информационным входом восьмого блока элементов И, выход четвертого регистра вл етс выходом устройства и под- ШШ 26, устанавливает блоки устройст- дд ключен к информационному входу дев - ва в начальное состо ние и через эле- того блока элементов И, выход кото- мент 2 задержки запускает генератор рого соединен с вторым информационнымand the sixth block of elements And, the output of the fourth block of elements And is connected to the information input of the third 30 register, the output of which is connected to the information input of the seventh block of elements And, the output of which is connected to the input of the subtracted subtraction unit, the output of the fifth block of elements And sub- - it is connected to the input of the divider of the dividing unit, the output of which is connected to the information input of the eighth block of elements I, the output of the fourth register is the output of the device and the sub head 26, sets the blocks of the device to the information input at nine to the initial state and through the element block of elements I, the output of which 2 delays triggers the generator of the ryo connected to the second information
входом блока умножени , выход второго регистра соединен с информационным д5 входом дес того блока элементов И,the input of the multiplication unit, the output of the second register is connected to the information input 5 of the tenth block of AND blocks,
выходы шестого и дес того блоков элементов И подключены к входам схемы сравнени , вход первого элемента задержки соединен с входами начальной установки блока вычитани , блока умножени , блока делени , счетчика, На К-м такте на выходе счетчика третьего и четвертого регистров, вы- 11 образуетс код состо ни , соответствующий числу К, в результате чего по сигналу от схемы 12 сравнени прекращаетс формирование тактовых импульсов . Вместе с тем на К-м такте будут вьтолнены все действи , привод щие к получению произведени the outputs of the sixth and tenth blocks of elements I are connected to the inputs of the comparison circuit, the input of the first delay element is connected to the inputs of the initial installation of the subtraction unit, multiplication unit, division block, counter, At the Kth cycle at the output of the third and fourth registers, you a state code is generated corresponding to the number K, as a result of which the clock pulses are generated by the signal from the comparison circuit 12. At the same time, in the Kth cycle, all actions leading to the production of
тора 3. Вместе с тем на К-м такте будут выполнены все действи , описанные дл такта, а, следовательно, в регистре 22 будет накоплено произведениеof torus 3. At the same time, on the kth clock cycle all the actions described for the clock cycle will be executed, and, therefore, in register 22 the product will be accumulated
i n-(i-l) ki n- (i-l) k
I, ь ,I
tsl 1tsl 1
которое можно сн ть на выходе 36.which can be removed at exit 36.
Дл определени числа размещений триггер 29 устанавливаетс в нулевое состо ние. При этом запускающий сигнал также проходит через элементTo determine the number of arrangements, trigger 29 is set to the zero state. In this case, the trigger signal also passes through the element
3. Дальнейша работа устройства ана- ,логична описанной, за тем исключением , что результат умножени С п (n-(i-1)) поступает с выхода блока 17 умножени через блоки 20, 23 и 31 на вход регистра 22, где записываетс и хранитс до следующего такта .3. Further operation of the device is analogous to that described, except that the result of the multiplication Cn (n- (i-1)) comes from the output of multiplication unit 17 through blocks 20, 23 and 31 to the input of register 22, where it is recorded and stored until the next clock cycle.
5050
5555
ход первого элемента задержки соединен с пусковым входом генератора тактовых импульсов, выход которого подключен к счетному входу счетчика и к входам второго и третьего элементов задержки, вьйсод второго элемента задержки подключен к управл ющим вхоП (n-(i-l)) Л , с записью результата в регистре 22.the stroke of the first delay element is connected to the starting input of the clock pulse generator, the output of which is connected to the counter input of the counter and to the inputs of the second and third delay elements, the output of the second delay element is connected to the control input (n- (il)) L, recording the result in register 22.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884407049A SU1520535A1 (en) | 1988-04-08 | 1988-04-08 | Combinatory arrangement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884407049A SU1520535A1 (en) | 1988-04-08 | 1988-04-08 | Combinatory arrangement |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1520535A1 true SU1520535A1 (en) | 1989-11-07 |
Family
ID=21367453
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU884407049A SU1520535A1 (en) | 1988-04-08 | 1988-04-08 | Combinatory arrangement |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1520535A1 (en) |
-
1988
- 1988-04-08 SU SU884407049A patent/SU1520535A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 1305702, кл. G 06 F 15/20, 1985. Авторское свидетельство СССР № 1396148, кл. G 06 F 15/20, 1986. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1520535A1 (en) | Combinatory arrangement | |
SU1469505A1 (en) | Program debugging unit | |
SU610297A1 (en) | Time interval extrapolating arrangement | |
SU1238194A1 (en) | Frequency multiplier | |
SU542192A2 (en) | Automatic Time Programmer | |
SU1423984A1 (en) | Relay-type interpolator | |
SU542338A1 (en) | Periodic pulse frequency multiplier | |
SU1529207A1 (en) | Device for input of digital information | |
SU1188696A1 (en) | Digital meter of time interval ratio | |
SU1200299A1 (en) | Device for determining stationarity of random process | |
SU798831A1 (en) | Frequency multiplier | |
SU1405105A1 (en) | Pulse distributor | |
SU1596323A1 (en) | Device for computing logarithmic function | |
SU1376083A1 (en) | Random event flow generator | |
SU1396148A1 (en) | Device for counting combinations | |
SU1539980A1 (en) | Pulse repetition frequency multiplier | |
SU1552180A1 (en) | Device for dividing numbers | |
SU1553972A1 (en) | Squaring device | |
SU1081783A1 (en) | Pulse repetition frequency multiplier | |
SU813429A1 (en) | Device for control of digital integrating structure | |
SU976499A1 (en) | Switching device | |
SU1363234A2 (en) | Device for simulating network graphs | |
SU1531086A1 (en) | Arithmetic-logic device | |
SU1705820A1 (en) | Computer | |
SU596946A1 (en) | Microprogramme-control arrangement |