SU1273941A1 - Device for patitioning graphs into subgraphs - Google Patents
Device for patitioning graphs into subgraphs Download PDFInfo
- Publication number
- SU1273941A1 SU1273941A1 SU843808733A SU3808733A SU1273941A1 SU 1273941 A1 SU1273941 A1 SU 1273941A1 SU 843808733 A SU843808733 A SU 843808733A SU 3808733 A SU3808733 A SU 3808733A SU 1273941 A1 SU1273941 A1 SU 1273941A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- inputs
- input
- register
- elements
- outputs
- Prior art date
Links
Abstract
Изобретение относитс к области вычислительной техники и может быть использовано при автоматизированном решении задачи компоновки электронных схем. Целью изобретени вл етс упрощение устройства„ Эта цель достигаетс тем, что в блок управлени введены группа элементов И, группа . счетчиков, элементы ИЛИ, элементы задержки и элемент запрета, а каждый канал генератора случайных сочетаний состоит из источника пуассоновского потока импульсов, элемента И, элемента запрета, элемента ИЛИ, триггера и элемента 2H-IiIBi. 1 з.п. ф-лы, 4 ил.The invention relates to the field of computer technology and can be used for the automated solution of the electronic circuit layout problem. The aim of the invention is to simplify the device. This goal is achieved by introducing a group of elements AND, a group into the control unit. counters, OR elements, delay elements and a ban element, and each channel of the random combination generator consists of a source of a Poisson pulse stream, an AND element, a ban element, an OR element, a trigger, and a 2H-IiIBi element. 1 hp f-ly, 4 ill.
Description
NDND
DODo
CD 4;ib Изобретение относитс к вычислительной технике и может быть использовано при автоматизированном решении задачи компоновки электронных схем. Цель изобретени - упрощение устройства . На фиг. 1 приведена структурна схема устройства; на фиг. 2-4 - возможные варианты функциональных схем генератора случайных сочетаний, преобразовател сочетание - код и блока управлени Устройство содержит регистр 1 блокировки кода сочетаний, генератор 2 случайных сочетаний, блок 3 отображени топологии графов, буферный регистр 4 индикации, блок 5 управлени , преобразователь 6 сочетаниекод , регистр 7 кода остатка ребер, вычитатель 8, схему 9 сравнени , регистр 10 кода числа внешних ребер, блок 11 регистров индикации, вход 12 установки исходного состо ни и вхо ды 13 задани топологии исходного графа. Каждый канал генератора 2 (фиг. 2) состоит из источника 14 пуассоновского потока импульсов, элемента И 15, элемента 16 запрета, элемента ИЛИ 17, триггера 18 и элемента 2И-И1ТИ 19о Преобразователь сочетание - код (на фиг. 3 приведена схема преобразовател на п ть входов) содержит дес ть двухвходовых элементов ИЛИ 20 и 21, образующих че тыре линейки и соединенных соответст вующим образом, В nepBjrio линейку вхо д т четыре элемента ИЛИ 20 и И 21, во вторую - три элемента ИЛИ 20 и И 21, в третью - два элемента ИЛИ 20 и 21 и в четвертую - один элемент ИЛИ 20 и 21„ Кроме того, преобразователь 6 содержит комбинационную схему, состо щую из элементов 22-25 запрета и элементов ИЛИ 26 и 27. Блок 5 управлени (фиг. 4) содержит элемент ИЛИ 28, группу элементов И 29, группу счетчиков 30, элемент ИЛИ 31, счетчики 32 и 33, дещифратор 34, последовательно соединенные элементы 35-38 задержки, элементы ИЛИ 39, 40, элемент 41 задержки, элемен ИЛИ 42, элементы 43, 44 задержки, элемент И 45, элемент 46 запрета, элемент ИЛИ 47, триггер 48 и выходы 49-55. Сущность и принцип работы предлагаемого устройства состо т в следую41 . 2 щем. Разбиение графа G (Х, U), состо щего из (х| п и верщин и |Ul V ребер, на подграфов G, - (Х(, и,), G - (X.J, и),..., Gg (Xj, Uj ) с числом вершин в каждом подграфе соответственно jxj п,, п,.. lXj| Tij, где п, + Пг +,оо., + По п осуществл етс за этапов. На каждом i-ом этапе производитс 0. случайных назначений п| верпгин в i-й подграф. Число случайных назначений Q (розыгрышей) определ етс заданными точностью и достоверностью разбиени графа на подграфы, а все п верщин в каждом назначении выбираютс одновременно (параллельно). После каждого случайного назначени определ етс число внешних св зей, Тое. число св зей между вершинами, выбранными в подграф, и всеми оставшимис (не выбранньми ни в какой подграф). Если в результате текущего случайного назначени получен вариант подграфа с меньшим числом внешних св зей , чем в предыдущем назначении, то он запоминаетс . Таким образом, сформированный после i-ro этапа i-й подграф имеет локально-минимальное число внешних св зей. Вершины, вошедшие в i-й подграф, блокируютс и исключаютс из дальнейшего розыгрыша . Так, на первом этапе производитс Q случайных назначений п, вершин в первый подграф. Число внешних св зей подсчитываетс после каждого случайного назначени между выбранным множеством вершин Х X (здесь и далее знак над соответствующей буквой означает не окончательное, а текущее множество) и оставшимис вершинами , . После проведени всех Q случайных назначений формируетс второй подграф G (Х,, U,), имеющий локально-минимальное число св зей с оставшимс множеством вершин . На втором этапе формируетс второй подграф путем выполнени очередной серии из Q случайных назначений При этом п вершин выбираютс случайным образом из оставшегос после первого этапа множества , вершин, а число внешних св зей определ етс после каждого случайного назначени между выбранным множеством вершин X ( и оставщимс множеством вершин Х(Х, . UXj,). После проведени всех Q случайных назначений формируетс второйCD 4; ib The invention relates to computing and can be used in an automated solution to the task of arranging electronic circuits. The purpose of the invention is to simplify the device. FIG. 1 shows a block diagram of the device; in fig. 2-4 - possible variants of functional schemes of a random combination generator, a combination converter - a code and a control unit The device contains a register 1 of the combination code lock, a generator of 2 random combinations, a graph topology display unit 3, a buffer register 4 of the display, a control block 5, a converter 6 combinations of code , register 7 code of the remainder of the edges, subtractor 8, comparison circuit 9, register 10 of the code of the number of external edges, block 11 of the display registers, input 12 of the initial state setup and input 13 of the topology of the initial graph. Each channel of the generator 2 (Fig. 2) consists of the source 14 of the Poisson pulse stream, element 15, prohibition element 16, element 17, trigger 18 and element 2I-I1TI 19o converter combination - code (Fig. 3 shows a diagram of the converter five inputs) contains ten two-input elements OR 20 and 21, which form four rulers and are connected in a corresponding way, the nepBjrio ruler includes four elements OR 20 and 21, the second - three elements OR 20 and 21, the third - two elements OR 20 and 21 and the fourth - one element OR 20 and 21 "In addition, the pre The former 6 contains a combinational circuit consisting of prohibition elements 22-25 and the elements OR 26 and 27. The control unit 5 (FIG. 4) contains the element OR 28, the group of elements AND 29, the group of counters 30, the element OR 31, the counters 32 and 33, de-decoder 34, serially connected delay elements 35-38, OR elements 39, 40, delay element 41, elements OR 42, delay elements 43, 44, AND element 45, prohibition element 46, OR element 47, trigger 48 and outputs 49 -55. The essence and principle of operation of the proposed device are as follows. 2 The partition of the graph G (X, U) consisting of (x | n and vertices and | Ul V edges, into subgraphs G, - (X (, and,), G - (XJ, and), ..., Gg (Xj, Uj) with the number of vertices in each subgraph, respectively jxj n, n, .. lXj | Tij, where n, + Pg +, oo., + Go to n for each stage. random assignments n | verpgin in the i-th subgraph. The number of random assignments Q (lotteries) is determined by the given accuracy and reliability of the division of the graph into subgraphs, and all parallels in each assignment are selected simultaneously (in parallel). the number of external connections, Toe. the number of connections between the vertices selected in the subgraph and all remaining ones (not selected in any subgraph). If the result of the current random assignment is a version of the subgraph with a smaller number of external connections than in the previous assignment, then it is remembered. Thus, the i-th subgraph formed after the i-th stage has a locally-minimal number of external links. The vertices included in the i-th subgraph are blocked and excluded from the further drawing. Thus, in the first stage, Q random assignments are made; n, the vertices in the first subgraph. The number of external links is counted after each random assignment between the selected set of vertices X X (hereinafter, the sign above the corresponding letter means not the final, but the current set) and the remaining vertices,. After all the Q random assignments have been made, a second subgraph G (X, U, U) is formed, having a locally minimal number of links with the remaining set of vertices. At the second stage, the second subgraph is formed by performing the next series of Q random assignments. In this case, n vertices are chosen randomly from the set remaining after the first stage, the vertices, and the number of external links is determined after each random assignment between the selected set of vertices X (and the remaining set vertices X (X,. UXj,). After all the Q random assignments have been completed, the second
33
подграф G (Х, U), имеющий локально-минимальное число внешних св зей с оставшимс множеством вер шин Х(Х, и Х,). Аналогичным образом .процесс формировани подграфов продолжаетс до последнего 1-го этапа, после которого оставшеес множество вершин Х( 1J X,) включаетс в -й подграф. Поскольку на каждом этапе формируетс подграф с локально-минимальным числом внешних св зей, то и суммарное число св зей между подграфами также локально-минимально. В предлагаемом устройстве топологи исходного графа задаетс с помощью блока 3 отображени топологии графа. Случайный выбор заданного числа вершин осуществл етс с помощью генератора 2 случайных сочетаний . С помощью регистра 1 блокировки кода сочетаний осуществл етс блокировка подграфов, сформированных на предыдущих этапах. В регистр 4 индикации заноситс вариант формировани подграфа (номера вершин), лучший относительно предыдущих вариантов . Преобразователь 6 осуществл ет преобразование различных сочетаний единичных сигналов на его входах в соответствующий двоичный код на выходах. Код соответствует числу ребер между вершинами, на которые в блоке 3 отображени топологии графа поданы единичные сигналы. Регистр 7 предназначен дл хранени в течение каждого этапа формировани подграфов кода остатка ребер, инцидентных вершинам , не включенных к данному этапу ни в один изподграфов. С помощью вычитател 8 производитс подсчет числа внешних св зей. Блок 9 сравнени производит после каждого случайного назначени сравнение числа внешних св зей, получившихс в результате данного назначени , с числом внешних св зей, полученных от лучшего варианта всех предьщущих случайных назначений. В буферный регистр 10 заноситс после сравнени лучшее текущее число внешних св зей. Блок 11 индикации предназначен дл визуализации номеров вершин каждого подграфа после оптимального разбиени исходного графа. Блоком 5 управлени задаетс число подграфов, число вершим в каждом подграфе и число случайных назначений, а также формируютс все управл ющие сигналы.the subgraph G (X, U), which has a locally minimal number of external links with the remaining set of vertices X (X, and X,). Similarly, the subgraph formation process continues until the last 1st stage, after which the remaining set of vertices X (1JX,) is included in the ith subgraph. Since at each stage a subgraph is formed with a locally minimal number of external links, the total number of links between subgraphs is also locally minimal. In the proposed device, the topology of the original graph is defined using block 3 of the graph topology mapping. Random selection of a given number of vertices is carried out using a generator of 2 random combinations. Using register 1 of the combination code lock, subgraphs formed in the previous steps are blocked. In register 4 of indication, the option of forming a subgraph (number of vertices), the best relative to the previous options, is entered. Converter 6 converts various combinations of single signals at its inputs to the corresponding binary code at the outputs. The code corresponds to the number of edges between the vertices, to which, in block 3 of the graph topology mapping, single signals are fed. Register 7 is designed to store during each stage of the formation of subgraphs of the code of the remainder of the edges incident to the vertices that are not included in this stage in any of the subgraphs. Using the subtractor 8, the number of external links is calculated. After each random assignment, Comparison Unit 9 compares the number of external communications resulting from this assignment with the number of external communications obtained from the best variant of all previous random assignments. The buffer register 10 is entered after comparing the best current number of external links. The display unit 11 is designed to visualize the numbers of the vertices of each subgraph after the optimal partitioning of the original graph. The control unit 5 sets the number of subgraphs, the number of vertices in each subgraph and the number of random assignments, as well as all control signals are generated.
739414739414
Подготовка устройства к работе производитс заданием исходной топологии графа в блок 3 отображени топологии графа путем подачи единич5 ных сигналов на соответствующие входы 13, установкой емкостей счетчиков 30, соответствуюшд1х размерност м формируемых подграфов, емкости счетчика 32, соответствующей числу назначений 10 и емкости счетчика 33, соответствующей заданному числу подграфов.The device is prepared for operation by setting the initial topology of the graph to block 3 displaying the graph topology by supplying single signals to the corresponding inputs 13, setting the capacities of the counters 30, corresponding to the dimensions of the subgraphs being formed, the capacity of the counter 32 corresponding to the number of assignments 10 and the capacity of the counter 33 corresponding to given number of subgraphs.
Работа устройства (фиг. 1) начинаетс с подачи на вход 12 сигнала установки исходного состо ни . ПоThe operation of the device (Fig. 1) begins with the supply to the input 12 of a setup signal of the initial state. By
5 этому сигналу в нулевое состо ние устанавливаютс регистр 1, триггеры 18 в генераторе 2, .регистры блока 11 индикации, счетчики 30, 32, 33 и триггер 48 в блоке 5 управлени , ре20 гистр 10 устанавливаетс в единичное состо ние. Кроме того, по этому же сигналу на все входы блока 3 подаютс единичные сигналы, поэтому в регистр 7 записываетс суммарное чис5 ло ребер, соедин ющих все вершины исходного графа. После этого в генераторе 2 случайных сочетаний начинают формироватьс случайные сочетани , т.е. на заданном числе его выходов,5, the signal 1 sets the register 1, the triggers 18 in the generator 2, the registers of the display unit 11, the counters 30, 32, 33 and the trigger 48 in the control unit 5, the register 20 is set to one. In addition, single signals are sent to all inputs of block 3 by the same signal, therefore register 7 records the total number of edges connecting all vertices of the original graph. After that, in the generator of 2 random combinations, random combinations begin to form, i.e. on a given number of its outputs,
0 но в случайном сочетании, по вл ютс единичные сигналы. Происходит это следующим образом. На выходах источников 14 импульсов (фиг. 2) в случайные моменты времени вырабатывают с импульсы, интервалы времени между которыми удовлетвор ют пуассоновскому потоку. Случайный импульс, по вившийс на выходе любого из источников 14, проходит через соответствую0 Ш51Й элемент И 15 и элемент 16 запрета, на один из триггеров 18. Поскольку выход каждого элемента И 5 соединен с пр мым входом своего элемента 16 запрета и с инверсными входами всех0 but in a random combination, single signals appear. It happens as follows. At the outputs of the sources 14 pulses (Fig. 2) at random times generate pulses with time intervals between which satisfy the Poisson flow. The random impulse that occurred at the output of any of the sources 14 passes through the corresponding E51 element 15 and the prohibition element 16 to one of the triggers 18. Since the output of each element 5 and is connected to the direct input of its prohibition element 16 and to the inverse inputs of all
5 чужих элементов запрета, то случайный импульс, по вившийс на выходе любого из источников 14, первым запрещает на врем своей длительнасти прохождение случайных импульсов с5 foreign elements of the prohibition, the random impulse that occurred at the output of any of the sources 14, the first prohibits the passage of random impulses with
0 других источников 14 через все остальные элементы 16 запрета. Это предотвращает сли ние нескольких импульсов на выходах элементов запрета в один на выходе элемента ИЛИ 28.0 other sources 14 through all other elements of the 16 ban. This prevents the fusion of several pulses at the outputs of the inhibit elements into one at the output of the element OR 28.
5 На пр мом выходе того триггера 18, на который прошел случайный импульс , по вл етс единичный потенциал , а нулевой потенциал с его инверского выхода закрывает соответствующий элемент И 15. Это обеспечивает прохождение через элементы И 15 и элементы запрета только одного случайного импульса на период формировани одного случайного сочетани , .Случайные импульсы с выходов элементов 16 запрета одновременно поступают и в блок 5 управлени на входы элемента ИЛИ 28 (фиг. 4)„ При этом сначала они проход т через первый (верхний по схеме) элемент И группы 29 на первый счетчик группы 30, так как единичным потенциалом с нулевого выхода дешифратора 34 открыт именно этот элемент И группы 29. После того, как на первый счетчик 30 поступает число случайных импульсов , равное его емкости, формируетс первое сочетание. При этом первый счетчик устанавливаетс в исходное состо ние, а сигнал с его выхода через элемент ИЛИ 31 поступает на входы счетчика 32, первого элемента 35 задержки, элемента ИЛИ 39 и единичный вход триггера 48. Нулевой сигнал с инверсного выхода триггера 48 блокирует все элементы И 15 что необходимо дл предотвращени возможного прохождени случайных импульсов через эти элементы во врем выполнени вычислительных операций в. других блоках устройства. В это же врем импульс с выхода элемен та ИЛИ 39 по вл етс на выходе 50 и поступает на нижние элементы И 19, подключив тем самым пр мые выходы триггеров 18 к входам блока 3. В результате этого единичные сигналы подаютс на элементы, соответствующие вершинам графа, а на выходах блока 3, отображающих ребра графа, инцидентные тем элементам вершин, на ко торые поданы единичные сигналы, та же по вл ютс единичные сигналы. Дл получени информации о числе св зей (т.е. о числе выходов блока 3, на которых по вились единичные сигналы) необходимо число выходов с единичными сигналами, расположенных в произвольном пор дке, преобразова в двоичный код. Это вьтолн етс с помощью преобразовател 6, На фиг, 3 приведен пример реализации преобразо-55 5 At the forward output of that trigger 18, to which a random impulse passed, a single potential appears, and the zero potential from its inverted output closes the corresponding element 15. This ensures that only 15 impulses per period are passed through the elements 15 and the prohibition elements forming one random combination. Random pulses from the outputs of the prohibition elements 16 simultaneously arrive at the control unit 5 at the inputs of the OR element 28 (Fig. 4). "At the same time, they first pass through the first (upper according to the scheme) AND element Rupp 29 to the first counter group 30, as a unit with the zero potential output of the decoder 34 is open and it is this element group 29. After the first counter 30 to the number of random pulses supplied equal to its capacity, the first blend is formed. The first counter is reset, and the signal from its output through the OR element 31 is fed to the inputs of the counter 32, the first delay element 35, the OR element 39 and the single trigger input 48. The zero signal from the inverse trigger output 48 blocks all AND elements 15 what is needed to prevent random impulses from passing through these elements during computational operations c. other blocks of the device. At the same time, a pulse from the output of the element OR 39 appears at the output 50 and enters the lower elements of AND 19, thereby connecting the direct outputs of the flip-flops 18 to the inputs of block 3. As a result, single signals are sent to the elements corresponding to the vertices of the graph , and at the outputs of block 3, displaying the edges of the graph, incident to those elements of the vertices, on which single signals are applied, the same signals appear. To obtain information about the number of connections (i.e., the number of outputs of block 3, on which single signals appeared), the number of outputs with single signals, arranged in an arbitrary order, is necessary, converted into binary code. This is accomplished with the aid of the converter 6. FIG. 3 shows an example of the implementation of the converter-55.
вател на п ть входов и соответственно на три выхода, так как число в пределах- от О до 5 представл етс 3-хfive inputs and, respectively, three outputs, since the number in the range from O to 5 is represented by 3
регистра 10. Ввиду таго, что в регистр 10 вначале был записан максимальный код, то после первого слу416 3-х разр дным двоичным кодом. В этом преобразователе пирамидальна схема пар элементов И, ИЛИ 20, 2 компандирует выходной сигнал, т.е, любое сочетание единиц на входах преобразует в то же самое число единиц, но расположенныхна подр д следующих выходах пирамидальной схемы, начина С верхнего выхода. На фиг. 3 приведен пример поступлени на входы преобразовател 6 трех единичных сигналов на второй, четвертый и п тый входы соответственно. На выходе пирамидальной схемы единичные сигналы по вл ютс на первом, втором и третьем вьгходах. Далее сжатый сигнал пирами-дальной схемы преобразуетс комбинационной схемой, состо щей из элементов 22 - 25 запрета в двоичный код числа ребер, инцидентных возбужденным верщинам. Код поступает на вычитатель 8.и по второму по времени выработки сигналу с выхода 51 блока 5, вычитаетс -из кода суммарного числа ребер исходного графа, записанного в регистр 7, сигналом установки исходного состо ни . В результате этого в вьгчитателе В получают число ребер, представл ющих сумму внещних ребер выделенного подграфа после первого назначени , и всех внутренних ребер, соедин ющих оставшиес вершины, т.е. вершины не вьщеленные в подграф. Дл получени только внешних ребер из полученного числа необходимо вычесть число ребер, соедин ющих оставшиес верщины. Это осуществл етс подключением третьего по времени по влени импульса, формируемого иа выходе 52 блока 5. При этом единичный сигнал с выхода 52 поступает на вход генератора 2, т.е. на все верхние входы элементов 2И-ШШ 19. Затем на вычитатель 8 с выхода 51 блока 5 поступает четвертый по времени единичный сигнал (и второй на выходе 51), в результате чего в вычитателе 8 остаетс число внещних ребер выделенного подграфа после первого случайного назначени . После этого на схему 9 сравнени с выхода 49 блока 5 поступает п тый по времени формировани импульс, по которому происходит сравнение кодов вычитател 8. и буферногоregister 10. In view of the fact that the maximum code was first written into register 10, then after the first case there was a 3-bit binary code. In this converter, a pyramid scheme of pairs of elements AND, OR 20, 2 compands the output signal, i.e., any combination of units at the inputs converts into the same number of units, but located next to the next outputs of the pyramid scheme, starting from the top output. FIG. 3 shows an example of the arrival at the inputs of the converter 6 of three single signals to the second, fourth and fifth inputs, respectively. At the output of the pyramid scheme, single signals appear on the first, second and third inputs. Next, the compressed pyramidal signal is converted by a combinational circuit consisting of prohibition elements 22-25 in a binary code of the number of edges incident to the excited vertices. The code goes to the subtractor 8. and the second time-generating signal from output 51 of block 5, subtracts from the code of the total number of edges of the original graph recorded in register 7 with the signal for setting the initial state. As a result, in the reader B, the number of edges representing the sum of the outer edges of the selected subgraph after the first assignment, and all internal edges connecting the remaining vertices, i.e. vertices not allocated to a subgraph. To obtain only external edges from the resulting number, you must subtract the number of edges connecting the remaining vertices. This is accomplished by connecting the third in time pulse occurrence generated by the output 52 of unit 5. In this case, a single signal from output 52 is fed to the input of generator 2, i.e. all the upper inputs of elements 2I-W. 19. Then the fourth single signal (and the second at output 51) is fed to the subtractor 8 from the output 51 of block 5, resulting in the number of external edges of the selected subgraph in the subtractor 8 after the first random assignment. After that, the comparison circuit 9 from the output 49 of the block 5 receives the fifth impulse of formation time, according to which the codes of the subtractor 8 and the buffer
77
чайного назначени он всегда больше кода числа внешних ребер вычитател 8. Поэтому схема 9 сравнени вырабатывает сигнал (этот сигнал по времени по вле-ни вл етс шестым), по которому происходит перепись кода из вычитател 8 в регистр 10. Этот же сигнал поступает на вход буферного регистра 4 индикации, а через элемент ИЛИ 48 блока 5 - на вход 50 генератора 2. Вследствие этого к регистру 4 подключаютс пр мые выходы триггеров 19 и в него записываетс первый вариант сформированного первого подграфа, . tea assignment, it is always greater than the code of the number of external edges of the subtractor 8. Therefore, the comparison circuit 9 generates a signal (this signal is sixth left), which is used to rewrite the code from the subtractor 8 to the register 10. The same signal goes to the input the buffer register 4 of the display, and through the OR element 48 of the block 5 - to the input 50 of the generator 2. As a result, the direct outputs of the flip-flops 19 are connected to the register 4 and the first variant of the generated first subgraph is written to it.
Затем седьмой импульс, сформированный на выходе элемента 43 задержки , через элементы ИЛИ 17 сбрасывает триггеры 18 и через элементы 46 запрета и ИЛИ 47 триггер 48 в исходное состо ние. При этом открываютс все элементы И 15 и все устройство готово к формированию нового случайного назначени . Аналогично указанному в генераторе 2 формируетс второе случайное назначение, в вычитателе 8 определ етс число внешних ребер между вторым вариантом первого подграфа и всеми оставшимис вершинами, а схемой 9 сравнени определ етс из двух вариантов первого подграфа тот вариант, который имеет меньшее число внешних ребер. Если оказываетс , что первый вариант первого подграфа лучше, то схема 9 сравнени на своем выходе сигнала не вырабатывает и в регистре 4 и регистре 10 остаетс прежн информаци (в регистре 4 номера вершин первого варианта подграфа , а в регистре 10 число его внешних ребер). Если второй вариант подграфа оказываетс лучше, то на выходе схемы 9 сравнени вырабатываетс сигнал, в результате чего в регистр 4 из генератора 2 переписываютс номера вершин второго варианта первого подграфа, а в регистр 10 переписываетс из вычитател 8 число его внешних ребер. Так продолжаетс до тех пор, пока генератором 2 не сформируетс заданное число назначений . Тогда на выходе счетчика 32 по вл етс единичный сигнал, который открывает элемент И 45 и закрьгаает элемент 46 запрета и через врем , задаваемое элементом 41 задержки, по вл етс на его ввлходе. Задержка необходима дл того, чтобы послед739418Then, the seventh pulse generated at the output of the delay element 43, through the elements OR 17, resets the triggers 18 and through the prohibition elements 46 and OR 47 the trigger 48 to the initial state. At the same time, all elements of AND 15 are opened and the entire device is ready for the formation of a new random assignment. Similarly to the one specified in generator 2, a second random assignment is formed, in subtractor 8 the number of external edges between the second variant of the first subgraph and all remaining vertices is determined, and comparison scheme 9 determines from two variants of the first subgraph that variant which has a smaller number of external edges. If it turns out that the first version of the first subgraph is better, then the comparison circuit 9 does not produce a signal at its output, and the same information remains in register 4 and register 10 (in register 4, the number of vertices of the first version of the subgraph, and in register 10, the number of its external edges). If the second variant of the subgraph turns out to be better, then a signal is produced at the output of the comparison circuit 9, as a result of which the numbers of the vertices of the second variant of the first subgraph are rewritten to register 4 from generator 2, and the number of its external edges from subtractor 8 to register 10. This continues until generator 2 generates a predetermined number of assignments. Then, a single signal appears at the output of the counter 32, which opens the element AND 45 and closes the prohibition element 46 and, after a time specified by the delay element 41, appears at its input. The delay is needed in order to
нее назначение успело обработатьс в соответствии с указанной последовательностью управл ющих импульсов с первого по седьмойо 5 Сигнал с выхода элемента 41 задержки поступает на управл ющее входы регистров 1, 7 регистров блока 11 и через элемент ИЛИ 42 на входы верхних элементов И 19. При этом луч0 ший вариант первого подграфа (т.е. номера соответствующих вершин) из буферного регистра 4 переписываютс в первый регистр блока 11 регистров индикации, так как сигнал разрешени its assignment managed to be processed in accordance with the specified sequence of control pulses from the first to the seventh five. The signal from the output of the delay element 41 goes to the control inputs of registers 1, 7 of registers of block 11 and through the element OR 42 to the inputs of upper elements AND 19. At the same time, beam 0 The first variant of the first subgraph (i.e., the numbers of the corresponding vertices) from buffer register 4 is written into the first register of the display register unit 11, since the enable signal
5 с дешифратора 34 поступает на первый регистр блока 11 и в регистр 1 блокировки кода сочетаний, поэтому соответствующие выходы регистра 1 оказываютс в нулевом состо нии, а в ре20 гистр 10 записываетс исходный максимальный код.5, the decoder 34 enters the first register of block 11 and the combination code lock register 1, so the corresponding outputs of register 1 are in the zero state, and the initial maximum code is written to register 20 of the master 10.
Поскольку к этому времени все триггеры 18 установлены единичным сигналом с выхода элемента 43 задерж5 ки в исходное состо ние (на всех инверсных выходах триггеров 18 наход тс единичные сигналы), то к блоку 3 подключены входы генератора 2 или ин версные выходы регистра 1 (фиг, 2).Since by this time all the flip-flops 18 are set to a single signal from the output of the delay element 43 to the initial state (all the inverse outputs of the flip-flops 18 have single signals), the generator 3 is connected to the generator 2 or the reverse outputs of the register 1 (Fig. 2).
0 Поэтому в блоке 3 возбуждаютс те0 Therefore, in block 3, those are excited
выходы, которые соответствуют ребрам, св зывающим вершины, не вошедшие в первый подграф. Преобразователь 6 преобразует число возбужденных выхо5 дов в двоичный код, и он записываетс в регистр 7.the outputs that correspond to the edges connecting the vertices that are not in the first subgraph. Converter 6 converts the number of excited outputs to a binary code, and it is written to register 7.
Сигнал с выхода элемента 41 задержки , задержавшись на элементе 44 задержки записывает единицу в счет0 чик 33, в результате чего единичный сигнал по вл етс на втором выходе дешифратора 34 и открывает дл приема информации второй счетчик 30, Этот сигнал с выхода элемента 44 задерж5 ки через открытый элемент И 45 (на выходе счетчика 32 единичный сигнал еще действует) и элемент ИЛИ 47 устанавливает триггер 48 в исходное (нулевое) состо ние, который разбло0 кирует элементы И 15. После этого все устройство готово дл формировани второго подграфа.The signal from the output of delay element 41, staying on delay element 44, writes a unit to counter 33, with the result that a single signal appears at the second output of decoder 34 and opens for receiving information the second counter 30, This signal from the output of delay element 44 through the open element AND 45 (at the output of the counter 32 a single signal is still valid) and the element OR 47 sets the trigger 48 to the initial (zero) state, which unlocks the elements AND 15. After that, the whole device is ready to form the second subgraph.
Аналогично указанному формируетс лучший вариант второго подграфа иSimilarly, the best variant of the second subgraph is formed and
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843808733A SU1273941A1 (en) | 1984-10-31 | 1984-10-31 | Device for patitioning graphs into subgraphs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843808733A SU1273941A1 (en) | 1984-10-31 | 1984-10-31 | Device for patitioning graphs into subgraphs |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1273941A1 true SU1273941A1 (en) | 1986-11-30 |
Family
ID=21145342
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU843808733A SU1273941A1 (en) | 1984-10-31 | 1984-10-31 | Device for patitioning graphs into subgraphs |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1273941A1 (en) |
-
1984
- 1984-10-31 SU SU843808733A patent/SU1273941A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР К 656073, кл. G 06 F 15/36, 1976. Авторское свидетельство СССР 1086434, кл. G 06 F 15/20, 1982. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US2789759A (en) | Electronic digital computing machines | |
SU1273941A1 (en) | Device for patitioning graphs into subgraphs | |
US4549283A (en) | Digital time delay circuit with high speed and large delay capacity | |
US6625768B1 (en) | Test bus architecture | |
SU1508229A1 (en) | Device for investigating graph parameters | |
SU1711175A1 (en) | Optimization problem solver | |
SU1285422A1 (en) | Device for processing data from spectrometric gamma-ray logging | |
RU1815634C (en) | Device for computation of minimal cover | |
SU1124318A1 (en) | Device for simulating graph | |
SU1124331A2 (en) | System for automatic inspecting of large-scale-integrated circuits | |
RU2084954C1 (en) | Device which solves assignment problem | |
SU1124319A1 (en) | Device for generating all possible combinations,arrangements and permutations | |
SU1305703A1 (en) | Device for breaking graph into subgraphs | |
SU734767A1 (en) | Controllable random event generator | |
SU1562951A1 (en) | Device for shaping pictorial information | |
SU1144109A1 (en) | Device for polling information channels | |
SU1575187A1 (en) | Device for monitoring code sequences | |
SU1176321A1 (en) | Arithmetic-logic unit | |
SU915292A1 (en) | Device for selection of information channels | |
SU976441A1 (en) | Random pulse non-stationary train generator | |
SU605222A1 (en) | Symbol identification arrangement | |
SU1444769A1 (en) | Multichannel arrangement for distributing tasks among processors | |
RU1817105C (en) | Device for solving tasks of time scheduling | |
SU1188743A1 (en) | Device for simulating checked object | |
SU1755299A1 (en) | Device for choosing optimal decision |