SU1267436A1 - Device for determining complement of set - Google Patents

Device for determining complement of set Download PDF

Info

Publication number
SU1267436A1
SU1267436A1 SU853891608A SU3891608A SU1267436A1 SU 1267436 A1 SU1267436 A1 SU 1267436A1 SU 853891608 A SU853891608 A SU 853891608A SU 3891608 A SU3891608 A SU 3891608A SU 1267436 A1 SU1267436 A1 SU 1267436A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
elements
counter
inputs
Prior art date
Application number
SU853891608A
Other languages
Russian (ru)
Inventor
Борис Сергеевич Богумирский
Виктор Яковлевич Яцук
Владимир Александрович Палагушин
Original Assignee
Военный Инженерный Краснознаменный Институт Им.А.Ф.Можайского
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Военный Инженерный Краснознаменный Институт Им.А.Ф.Можайского filed Critical Военный Инженерный Краснознаменный Институт Им.А.Ф.Можайского
Priority to SU853891608A priority Critical patent/SU1267436A1/en
Application granted granted Critical
Publication of SU1267436A1 publication Critical patent/SU1267436A1/en

Links

Description

Изобретение относитс  к вычислительной технике и может быть использовано в системах управлени  банками данных.The invention relates to computing and can be used in data bank management systems.

Целью изобретени   вл етс  расширение функциональных возможностей за счет обеспечени  операции сравнени  элементов множества.The aim of the invention is to enhance the functionality by providing a comparison operation for the elements of a plurality.

На чертеже приведена схема устройства .The drawing shows a diagram of the device.

Устройство содержит блок 1 пам ти , счетчик 2, элементы ИЗ, 4, элемент ИЛИ 5, группы 6, 7 элементов И . регистры 8, 9, счетчик 10, схемы 11, 12 сравнени , триггеры 13, 14, генератор 15 тактовых импульсов, распределитель 16 импульсов, адресный вход 17, информационный вход 18, вход 19 запуска, информационный выход 20, выход 21 признака окончани  Схемы 11 и 12 выдают сигнал при совпадении сравниваемых кодов. Группа 6 элементов И открываетс  при наличии сигналов одновременно на трех ее входах. При подаче адреса на адресный вход блока 1 этот блок выдает содержимое соответствующей  чейки пам ти на свой выход и поддерживает его до тех пор, пока на его адресный вход не будет подан новый а,цресThe device contains a block of 1 memory, a counter 2, the elements OF 1, 4, the element OR 5, groups 6, 7 of the elements AND. registers 8, 9, counter 10, circuits 11, 12, comparisons, triggers 13, 14, clock generator 15, pulse distributor 16, address input 17, information input 18, start input 19, information output 20, termination 21 output 21 and 12 outputs a signal when the matching codes match. A group of 6 elements AND opens with the presence of signals simultaneously on its three inputs. When an address is fed to the address input of block 1, this block outputs the contents of the corresponding memory cell to its output and maintains it until a new a, a cres

Пусть Р - универсальное множество , а А - множество,  вл ющеес  подмножеством множества Р. Тогда дополнение множества А  вл етс  множеством элементов из множества Р, не принадлежащих множеству А. Множества,  вл ющиес  подмножествами множества Р, хран тс  в блоке 1 пам ти, причем элементы этих множеств представлены кодами исел. Элементы каждого множества ,с  в последовательных  чейках пам ти . Последний элемент каждого множества отмечаетс  единицей в последнем разр де. Все остальные элементы отмечаютс  нулем. Элементы универсального множества закодированы целыми числами от 1 до N, где N - число элементов в универсальном множестве . Во всех множествах один и тот же элемент представл етс  одинаковым кодом.Let P be a universal set, and A a set that is a subset of P. Then the complement of set A is the set of elements from set P that do not belong to set A. The sets that are subsets of set P are stored in memory block 1, and the elements of these sets are represented by Isel codes. Elements of each set, with in successive memory cells. The last element of each set is marked with a unit in the last category. All other elements are marked with a zero. The elements of the universal set are encoded with integers from 1 to N, where N is the number of elements in the universal set. In all sets, the same element is represented by the same code.

Устройство работает следующим образом .The device works as follows.

При включении питани  распределитель 16 импульсов устанавливаетс  в исходное состо ние (при этом ни на одном из его выходов сигнал не по вл етс ), генератор 15 устанавливает67А362When the power is turned on, the distributor 16 pulses are reset (with no signal on any of its outputs), the generator 15 sets up 67A362

с  в запертое состо ние, а регистр информации блока пам ти и счетчик 10 обнул ютс  (не показано). По вхо-. ду 18 в регистр 9 загшсываетс  кодc in a locked state, and the memory information register and counter 10 are zeroed (not shown). At the entrance. DU 18 to register 9 zagsssyaetsya code

5 числа N+I, а по входу 7 в регистр 8 заноситс  ад,рес первого элемента множества А.Устройство готово кработе.5 numbers N + I, and at input 7 into register 8, hell is entered, res of the first element of the set A. The device is ready for operation.

Запуск устройства в работу осуществл етс  импульсом с входа 19,The device is put into operation by a pulse from input 19,

10 По этому импульсу триггер 13 устанавливаетс  в единичное состо ние, в результате чего открываютс  элементы И 3 и 4, и запускаетс  генератор 15. Распределитель 16 начинает10 According to this pulse, the trigger 13 is set to one state, as a result of which the elements 3 and 4 are opened and the generator 15 is started. The distributor 16 starts

t5 распредел ть импульсы по управл ющим точкам устройства. По импульсу с перво.го выхода распределител  16 триггер 14 устанавливаетс  в единичное состо ние, а содержимое счетчи20 ка 10 увеличиваетс  на единицу, т.е. в нем формируетс  код первого (в дальнейшем очередного) элемента множества . На выходе блока 1 пам ти присутствует нулевой код (в том чис25 ле и на выходе последнего разр да). Поэтому схема 11 сигнала не выдает. По импульсу с второго выхода распределител  16 триггер 13 обнул етс , а в счетчик 2 из регистра 8 принима30 етс  адрес первого элемента множества А. По импульсу с третьего выхода распределител  16 адрес первого (в дальнейшем очередного) элемента мно жества А из счетчика 2 подаетс  в блок 1 пам ти, в результате чего на его выходах по вл етс  код первого элемента множества А,t5 distribute the pulses to the control points of the device. By the pulse from the first output of the distributor 16, the trigger 14 is set to one, and the contents of the counter 10 are increased by one, i.e. it forms the code of the first (hereinafter the next) element of the set. At the output of memory block 1, there is a zero code (including 25 and at the output of the last bit). Therefore, the circuit 11 does not produce a signal. By the pulse from the second output of the distributor 16, the trigger 13 is zeroed, and the counter 2 of register 8 receives the address of the first element of set A. By the pulse from the third output of the distributor 16, the address of the first (hereinafter next) element of set A from counter 2 is fed to memory block 1, as a result of which at its outputs appears the code of the first element of set A,

Предположим, что множество А содержит не один, а несколько элементов . Поэтому сигнал на выходе последнего разр да блока 1 отсутствует. Если код первого (в дальнейшем оче-редного ) элемента множества А .равен коду первого (в дальнейием очередного ) элемента множества Р, то схема 11 выдает сигнал, по которому триггер 14 обнул етс . По импульсу с четвертого выхода распределител  16 содержимое счетчика 2 увеличиваетс  на единицу {т.е. формируетс  адрес следующего элемента множества А). Грут1П а 6элементов И не открываетс , так как отсутствует сигнал с выхода последнего разр да блока I вследствие того, что еще не про55 читаны все элементы множества А и не произведено их сравнение с первым (в дальнейшем очередным) элементом множества Р.Suppose that the set A contains not one but several elements. Therefore, the signal at the output of the last bit of block 1 is absent. If the code of the first (hereinafter successive) element of the set A is equal to the code of the first (further next) element of the set P, then the circuit 11 outputs a signal on which the trigger 14 is zeroed. The pulse from the fourth output of the distributor 16, the contents of the counter 2 is increased by one {i.e. the address of the next element of set A) is generated. And the 6 elements of And does not open, since there is no signal from the output of the last bit of block I due to the fact that all elements of set A have not yet been read and have not been compared with the first (hereinafter) element of set P.

33

После этого снова по вл етс  импульс на первом выходе распределител  16, но так как элемент И 3 закрыт , то никаких действий по нему не производитс . Импульс с второго выхода распределител  16 также не проходит через закрытый элемент И 4 По импульсу с третьего выхода распределител  16 из блока I считываетс  код следующего элемента множества А, после чего он сравниваетс  с кодом первого (в дальнейшем очередного ) элемента множества Р схемой 11 По импульсу с четвертого выхода распределител  16 в счетчике 2 формируетс  адрес следующего элемента множества А. Таким образом, из блока I читаютс  последовательно все элементы множества А и сравниваютс  с пер .вым (в дальнейшем очередным) элементом множества Р.After this, a pulse appears again at the first outlet of the distributor 16, but since the element I 3 is closed, no action is taken on it. The impulse from the second output of the distributor 16 also does not pass through the closed element 4 And the impulse from the third output of the distributor 16 from block I reads the code of the next element of set A, after which it is compared with the code of the first (hereinafter next) element of set P by circuit 11 From the fourth output of the distributor 16, the counter 2 forms the address of the next element of set A. Thus, all the elements of set A are read sequentially from block I and compared with the first (hereinafter next) element of m R.

Пусть из блока 1 считан последний элемент множества А. При этом по вл етс  сигнал на выходе последнего разр да блока 1, что способствует открытию группы 6 элементов И. Этим же сигналом открываютс  элементы ИЗ и 4. Если первый (в дальнейшем очередной ) элемент множества Р совпал с одним из элементов множества А, то триггер 14 обнулен. Поэтому по импульсу с четвертого выхода распределител  16 группа 6 элементов И не открываетс . Если же триггер 14 осталс  в единичном состо нии, т.е. первый (в дальнейшем очередной) элемент множества Р не принадлежит множеству А, то по этому импульсу группа 6 элементов И открываетс  и код первого (в дальнейшем очередного) элемента множества Р из счетчика 10 поступает на выход 20 устройства в качестве кода первого (в дальнейшем очередного) элемента множества Р.Let from block 1 the last element of set A. is read. At the same time, a signal appears at the output of the last bit of block 1, which contributes to the discovery of group 6 of elements I. With the same signal, elements OF and 4. If the first (hereinafter) element of the set P coincided with one of the elements of the set A, then the trigger 14 is reset. Therefore, according to the impulse from the fourth outlet of the distributor 16, the group of 6 elements I does not open. If trigger 14 remains in a single state, i.e. the first (hereinafter, the next) element of the set P does not belong to the set A, then by this impulse the group 6 of the elements I opens and the code of the first (hereinafter the next) element of the set P of the counter 10 enters the output 20 of the device as the code of the first (later the next ) an element of the set P.

Затем снова по вл етс  импульс. на первом выходе распределител  16, по которому в счетчике 10 формируетс  код следующего элемента множества Р, а триггер 14 устанавливаетс  в исходное (единичное) состо ние. По импульсу с второго выхода распределител  16 подтверждаетс  нулевое состо ние триггера 13 и в счетчик 2 принимаетс  адрес первого элемента множества А. В дальнейшем устройство работает аналогично описанному выше до тех пор, пока по очередному импульсу с первого выхода распределител  16 содержимое счетчика 10 не Then an impulse reappears. at the first output of the distributor 16, according to which the code of the next element of the set P is generated in the counter 10, and the trigger 14 is set to the initial (single) state. The pulse from the second output of the distributor 16 confirms the zero state of the flip-flop 13 and the address 2 of the first element of set A. is received in the counter. In the following, the device works as described above until the next pulse from the first output of the distributor 16 counts the contents of the counter 10

674364674364

совпадет с содержимым регистра 9, При совпадении схема 12 выдает сигнал , по которому устройство устанавливаетс  в исходное состо ние (т.е.matches the contents of register 9. If a match occurs, circuit 12 outputs a signal by which the device is reset (i.e.

- распределитель 16 переводитс  в исходное состо ние, генератор 15 - в запертое, а счетчик 10 и регистр информации блока I обнул ютс ). Кроме того, он проходит на выход 21 устfQ ройства, сигнализиру  об окончании формировани  множества В.- the distributor 16 is reset, the generator 15 is in the locked state, and the counter 10 and the information register of the block I are zeroed out). In addition, it passes to the output 21 of the device FQ of the property, signaling the end of the formation of the set B.

После записи в регистр 8 адреса нового множества А устройство снова запускаетс  в работу импульсомAfter writing to the register 8 of the address of the new set A, the device starts up again with a pulse

., на входе 19 дл  определени  множества в А .., at input 19 to determine the set in A.

Claims (1)

Формула изобретени Invention Formula Устройство дл  определени  допол20 нени  множества, содержащее первый регистр, блок пам ти, первый счетчик , два элемента И, элемент ИЛИ и две группы элементов И, причем выходы элементов И первой группы  вл 25 нзтс  информационным выходом устройства , отличающеес  тем, что, с целью расширени  функциональных возможностей за счет обеспечени  операции сравнени  элементов мно2 жеств, в него введены второй регистр, второй счетчик, две схемы сравнени , два триггера, генератор тактовых импульсов и распределитель импульсов, информационный вход которого соединен с выходом генератора тактовых импульсов, адресный вход устройства соединен с входом первого регистра, выход которого соединен с информационным входом первого счетчика, выходы разр дов которого соединены соответственно с первыми входами элементов И второй группы, выходы которых соединены с адресным входом блока пам ти, выходы разр дов которого, кроме последнего разр да, соединены, с первым входом первой схемл сравнени , второй вход которой, первый вход второй схемы сравнени  и первые входы элементов И первой группы под ключены к выходам разр дов второгоA device for determining the complement of a set containing a first register, a memory block, a first counter, two AND elements, an OR element, and two groups of AND elements, the outputs of the AND elements of the first group being 25 nztc information output of the device, characterized in that expanding the functionality by providing a comparison operation of the elements of the sets, a second register, a second counter, two comparison circuits, two triggers, a clock generator and a pulse distributor, an information input to Expensively connected to the output of the clock generator, the address input of the device is connected to the input of the first register, the output of which is connected to the information input of the first counter, the outputs of the bits of which are connected respectively to the first inputs of elements AND of the second group, the outputs of which are connected to the address input of the memory block, the outputs of the bits of which, except the last bit, are connected to the first input of the first comparison circuit, the second input of which, the first input of the second comparison circuit and the first inputs of the AND elements of the first group connected to the outputs of bits of the second 50 счетчика, второй вход второй схемы сравнени  соединен с выходом второго регистра, вход которого  вл етс  информационным входом устройства, вход запуска которого соединен с50 counter, the second input of the second comparison circuit is connected to the output of the second register, the input of which is the information input of the device, the start input of which is connected to 55 единичным входом первого триггера и входом запуска генератора тактовых импульсов, вход останова которого, установочные входы блока пам ти.55 with a single input of the first trigger and an input of the start of the clock pulse generator, whose stop input, the installation inputs of the memory unit. распределител  импульсов, второго счетчика и выход признака окончани  устройства соединены с выходом второй схемы сравнени , счетный вход второго счетчика и единичный вход второго триггера соединены с выходом первого элемента И, первый вход которого и первый вход второго элемента И соединены с выходом элемента ИЛИ, первый вход которого соединен с выходом первого триггера, нулевой вход которого соединен с выходом второго элемента И и с входом записи первого счетчика, первый и второй выходы распределител  имлульthe pulse distributor, the second counter and the output of the device termination feature are connected to the output of the second comparison circuit, the counting input of the second counter and the single input of the second trigger are connected to the output of the first element AND, the first input of which is the first input of the second element AND connected to the output of the element OR, the first input which is connected to the output of the first trigger, the zero input of which is connected to the output of the second element I and to the recording input of the first counter, the first and second outputs of the distributor 67436ft67436ft сов соединены соответственно с первыми входами первого и второго элемента И, третий выход подключен к вторым входам элементов И второйowls are connected respectively with the first inputs of the first and second element And, the third output is connected to the second inputs of the elements And the second J группы, четвертый выход распределител  импульсов соединен со счетным входом второго счетчика и с вторыми входами элементов И первой группы, третьи входы которых соединены с вы10 ходом второго триггера, нулевой вход которого соединен с выходом первой схемы; сравнени , выход последнего разр да блока пам ти соединен с четвертыми входами элементов Ипервой груп15 пыис вторым-входом элемента ИЛИ.J group, the fourth output of the pulse distributor is connected to the counting input of the second counter and the second inputs of the elements AND of the first group, the third inputs of which are connected to the output of the second trigger, the zero input of which is connected to the output of the first circuit; comparison, the output of the last bit of the memory block is connected to the fourth inputs of the elements of the first group 15 by the second input of the OR element.
SU853891608A 1985-04-26 1985-04-26 Device for determining complement of set SU1267436A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU853891608A SU1267436A1 (en) 1985-04-26 1985-04-26 Device for determining complement of set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU853891608A SU1267436A1 (en) 1985-04-26 1985-04-26 Device for determining complement of set

Publications (1)

Publication Number Publication Date
SU1267436A1 true SU1267436A1 (en) 1986-10-30

Family

ID=21175786

Family Applications (1)

Application Number Title Priority Date Filing Date
SU853891608A SU1267436A1 (en) 1985-04-26 1985-04-26 Device for determining complement of set

Country Status (1)

Country Link
SU (1) SU1267436A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР 1176346, кл. G 06 F 15/38, 1984 Авторское свидетельство СССР № 780011, кл. G 06 F 15/38, 1978. (Л bS О) vj 4;: 00 оь (54) УСТРОЙСТВО ДЛЯ ОПРЕДЕЛЕНИЯ ДОПОЛНЕНИЯ МНОЖЕСТВА (57) Изобретение относитс к вычислительной технике. Целью изобретени вл етс расширение функциональных возможностей за счет обеспечени : операции сравнени элементов множеств. Устройство содержит блок,1 пам ти, два счетчика 2,10, два элемента И 3, 4, элемент ИЛИ 5, две труппы элементов И 6,7, два регистра 8,9, две схекы 11,12 сравнени ,генератор 15тактовых импульсов, распределитель . 16импульсов,триггеры 13,14. 1 ил. *

Similar Documents

Publication Publication Date Title
SU1267436A1 (en) Device for determining complement of set
US3993980A (en) System for hard wiring information into integrated circuit elements
SU1467799A2 (en) Device for selecting information channels
SU1425717A1 (en) Device for determining the complement of a set
SU1444744A1 (en) Programmable device for computing logical functions
SU576609A1 (en) Associative memory
SU1005189A1 (en) Device for reading-out information from associative storage
US3500340A (en) Sequential content addressable memory
SU1030797A1 (en) Device for sorting mn-digit numbers
SU1211760A1 (en) Device for editing recorders in tables
SU1064456A1 (en) Multichannel/code time interval converter
SU1107118A1 (en) Device for sorting numbers
SU1037345A1 (en) Associative memory
SU1315972A1 (en) Dividing device
SU978196A1 (en) Associative memory device
SU1176346A1 (en) Device for determining intersection of sets
RU2022353C1 (en) Device for determining complement of a set
SU551702A1 (en) Buffer storage device
SU978197A1 (en) Associative on-line memory device
SU1272357A1 (en) Buffer storage
SU1249529A1 (en) Device for simulating network topology
SU1310803A1 (en) Device for storing numbers
SU1208562A1 (en) Device for editing records in tables
SU1309041A1 (en) Device for retrieving information in memory
SU898419A1 (en) Parallel-to-series code converter