SU1273941A1 - Device for patitioning graphs into subgraphs - Google Patents

Device for patitioning graphs into subgraphs Download PDF

Info

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
Application number
SU843808733A
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 SU843808733A priority Critical patent/SU1273941A1/en
Application granted granted Critical
Publication of SU1273941A1 publication Critical patent/SU1273941A1/en

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)

5 номера его вершин записываютс  во второй регистр блока 11 индикации, а в регистр I к номерам вершин первого подграфа добавл ютс  номера вершин второго подграфа. Соответственно этому уменьшаетс  число инверсных вы ходов регистра 1, на которых остаютс  единичные потенциалы, т„е. уменьшаетс  число вершин, не вошедших ни в один из подграфов. Третий подграф уже формируетс  из этих оставшихс  вершин и т.д. до тех пор, пока не сформируютс  все подграфы. Признаком окончани  формировани  подграфов  вл етс  по вление сигнала на выходе счетчика 33. Формула изобретени Г. Устройство дл  разбиени  графа на подграфы, содержащее регистр блокировки кода сочетаний, генератор случайных сочетаний, перва  группа управл юш.их входов которого соединена с инверсными выходами регистра блокировки кода сочетаний, блок отображени  топологии графа, регистр кода остатка ребер, преобразователь сочетание - код, входы которого соединены с в гходами блока отображени  топологии графа, вычитатель, схему сравнени , регистр кода числа внешних ребер, выходы которого соединены с первоц группой входов схемы сравнени , выход которой подключен к входу считывани  регистра кода числа внешних ребер, информационные входы которого соединены с второй группой входов схемы сравнени  и выходами вьиитател , перва  группа входов вычитател  подключена к выходам регистра кода остатка ребер, втора  группа соединена с выходами преобразовател  сочетание - код и ин формационными входами регистра кода остатка ребер, буферный регистр индикации , блок регистров индикации и блок управлени , включаюш 1й два счетчика, дешифратор, входы которого соединены с выходами второго счетчика , триггер, п ть элементов ИЛИ, п ть элементов задержки и элемент И отличающеес  тем, что с целью упрощени  устройства, в состав блока управлени  введены группа из N элементов И (N - число вершин графа), группа из N счетчиков, шес той элемент ИЛИ, шестой и седьмой элементы задержки и элемент запрета при этом информационные выходы генератора случайных сочетаний соединены с входами блока отображени  топологии графа и информационными входами буферного регистра индикации, управл ющие выходы генератора случайных сочетаний соединены с входами первого элемента ИЛИ, вьгходы буферного регистра индикации подключены к информационным входам регистров блока индикации и регистра блокировки кода сочетаний, выход первого элемента ИЛИ соединен с первьтми входами элементов И группы блока управлени , вторые входы которых подключены к выходам дешифратора и входам разрешени  записи регистров блока индикации, выходы элементов И группы блока управлени  соединены со счетными входами соответствующих счетчиков группы блока управлени , выходы которых подключены к входам второго элемента ИЛИ, выход которого соединен с входом первого счетчи ка, входом первого элемента задержки и первым входом третьего элемента ИЛИ, второй вход которого соединен с входом второго элемента задержки и подключен к выходу схемы сравнени  и входу разрешени  записи буферного регистра индикаций, выход первого счетчика соединен с входом третьего элемента задержки, первым входом элемента И и запрещающим входом элемента запрета, информационный вход которого подключен к выходу второго элемента задержки, выход первого элемента задержки соединен с входом четвертого элемента задержки и первым входом четвертого элемента ИЛИ, выход четвертого элемента задержки подключен к входу п того элемента задержки и первому входу п того элемента ИЛИ, второй вход которого соединен с выходом третьего и входом шестого элементов задержки, выход которого соединен с входом второго счетчика и вторым входом элемента И, вьгход п того элемента задержки подключен к входу седьмого элемента задержки и второму входу четвертого элемента ИЛИ, выходы элемента И и элемента запрета соединены соответственно с первым и вторым входами шестого элемента ИЛИ, выход которого подключен к единичному входу триггера, нулевой вход которого соединен с выходом второго -элемента ИЛИ, выходы третьего и п того элементов Ш1И, второго элемента задержки и нулевой выход триггера соедине1 1 иы с второй группой управл юцщх входов генератора случайных сочетаний, выход четвертого элемента Hjrf соединен с управл ющим входом вычитател , выход третьего элемента задержки соединен с управл ющими входами регист ра блокировки кода сочетаний, регист ра кода остатка ребер, регистра кода числа внешних ребер и регистров блока индикации, выход седьмого элемента задержки подключен к управл ющему входу схемы сравнени , вход установки исходного состо ни  устройства соединен с третьим входом щестого элемента ИЛИ и входами установки в нуль регистра блокировки кода сочетаний , генератора случайных сочетаний , блока отображени  топологии гра фа, регистра кода остатка ребер, регистра кода числа внешних ребер, пер вого, второго счетчиков и группы счетчиков блока управлени , а информационные входы блока отображени  топологии графа  вл ютс  информационными входами устройства. 2, Устройство по п. 1, отличающеес  тем, что генератор случайных сочетаний содержит N каналов , каждый из которых состоит из источника пуассоновского потока импульсов , элемента И, элемента запрета , элемента ИЛИ, триггера и элемента 2И-Ш1И, первые входы элементов И образуют первую группу управл ющих входов генератора случайных сочета4112 НИИ, вторые входы элементов И соединены с выходами источников пуассоновского потока импульсов, выходы Элементов И i-го канала (i 1, N) подключены к информационным входам элементов запрета i-ro канала и запрещающим входам элементов запрета остальных каналов, выходы элементов запрета соединены с единичными входами триггеров соответствующих каналов и образуют управл ющие выходы генератора случайных сочетаний, нулевые входы триггеров каждого канала соединены с выходами соответствующих элементов ИЛИ, первые входы элементов 2И-1-ШИ каждого канала соединены с первыми входами соответствующих элементов И, вторые и третьи входы элементов 2И-Ш1И каждого канала подключены соответственно к нулевым выходам триггеров и третьим входам элементов И и единичным выходам триггеров соответствующих каналов, выходы элементов 2И-РШИ образуют информационные выходы генератора случайных сочетаний, объединенные (по одноименным элементам) четвертые входы элементов И, первые входы элементов lilMy третьи и четвертые входы элементов 2И-ИЛИ образуют вторую группу управл ющих входов генератора случайных сочетаний, а объединенные вторые входы элементов ИЛИ  вл ютс  входом установки в исходное состо ние генератора случайных сочетаний.5, the numbers of its vertices are recorded in the second register of the display unit 11, and in register I, the numbers of the vertices of the second subgraph are added to the register numbers of the vertices of the first subgraph. Accordingly, the number of inverse outputs of register 1 is reduced, on which single potentials remain, i.e. the number of vertices not included in any of the subgraphs is reduced. The third subgraph is already formed from these remaining vertices, etc. until all subgraphs have been formed. A sign of the end of subgraph formation is the appearance of a signal at the output of counter 33. Claim 1: Apparatus for dividing a graph into subgraphs containing a combination code lock register, random combination generator, the first group of control inputs of which are connected to inverse outputs of the code lock register combinations, graph topology mapping unit, edge residual code register, converter combination - code whose inputs are connected to the graph topology mapping unit goders, subtracter, circuit compared and, the register register of the number of external edges, whose outputs are connected to the first group of inputs of the comparison circuit, the output of which is connected to the read input of the register of the number of external edges, whose information inputs are connected to the second group of inputs of the comparison circuit and the outputs of the detector, the first group of inputs of the reader, is connected to the outputs of the register of the remainder of the edges, the second group is connected to the outputs of the converter of the combination — the code and the information inputs of the register of the code of the remainder of the edges, the buffer register of the indication, the register block the control unit, including the 1st two counters, the decoder, the inputs of which are connected to the outputs of the second counter, the trigger, the five OR elements, the five delay elements, and the AND element, which, in order to simplify the device, a group of N elements AND (N is the number of graph vertices), a group of N counters, the sixth OR element, the sixth and seventh delay elements and the prohibition element, while the information outputs of the random combination generator are connected to the inputs of the graph topology display unit and information the inputs of the buffer display register, the control outputs of the random combination generator are connected to the inputs of the first element OR, the inputs of the buffer register register are connected to the information inputs of the registers of the display unit and the register of the combination code lock, the output of the first element OR is connected to the first inputs of the elements AND group of the control unit, the second inputs of which are connected to the outputs of the decoder and the inputs for enabling the recording of the registers of the display unit, the outputs of the elements AND of the group of the control unit are connected to the counters and inputs of the corresponding counters of the control unit group, the outputs of which are connected to the inputs of the second OR element, the output of which is connected to the input of the first counter, the input of the first delay element and the first input of the third OR element, the second input of which is connected to the input of the second delay element and connected to the output comparison circuits and the enable input of the recording of the buffer register of indications, the output of the first counter is connected to the input of the third delay element, the first input of the AND element and the inhibiting input of the prohibition element, info Its input is connected to the output of the second delay element, the output of the first delay element is connected to the input of the fourth delay element and the first input of the fourth OR element, the output of the fourth delay element is connected to the input of the fifth delay element and the first input of the fifth OR element, the second input of which is connected with the output of the third and the input of the sixth delay element, the output of which is connected to the input of the second counter and the second input of the element I, the input of the fifth delay element is connected to the input of the seventh element This delay and the second input of the fourth OR element, the outputs of the AND element and the inhibit element are connected respectively to the first and second inputs of the sixth OR element, the output of which is connected to the single trigger input, the zero input of which is connected to the output of the second OR element, the third and fifth outputs S1I elements, the second delay element and the zero output of the trigger of connection 1 1 and the second group of control inputs of the random combination generator, the output of the fourth element Hjrf is connected to the control input of the subtractor, the output ter its delay element is connected to the control inputs of the combination code lock register, the register of the remaining edge code, the external edge number code register and the indication block registers, the output of the seventh delay element is connected to the control input of the comparison circuit, the installation input of the initial state of the device is connected to the third input of the generic OR input and the inputs to zeroing the register of the combination code lock, random combination generator, graph display topology block, edge remap code register, number code register and external ribs per Vågå, second counters and group counters of the control unit, and information display unit inputs the topology graph are information inputs. 2, the device according to claim 1, characterized in that the random combination generator comprises N channels, each of which consists of a source of a Poisson pulse stream, element AND, prohibition element, element OR, trigger and element 2И-Ш1И, the first inputs of elements AND form The first group of control inputs of the random combination generator 4112 SRI, the second inputs of the And elements are connected to the outputs of the sources of the Poisson pulse stream, the outputs of the And channel elements i (i 1, N) are connected to the information inputs of the i-ro channel inhibitors and prohibit the inputs of the restraint elements of the other channels, the outputs of the inhibit elements are connected to the single inputs of the trigger of the corresponding channels and form the control outputs of the random combination, the zero inputs of the trigger of each channel are connected to the outputs of the corresponding OR elements, the first inputs of the 2I-1-SHI elements of each channel are connected to the first inputs of the corresponding And elements, the second and third inputs of the 2I-Sh1I elements of each channel are connected respectively to the zero outputs of the flip-flops and the third inputs of the And and ed elements the triggers of the corresponding channels, the outputs of the 2I-RSHI form information outputs of the random combination generator, combined (by the like elements) fourth inputs of the AND elements, first inputs of the lilMy elements, the third and fourth inputs of the 2I-OR elements form the second group of control inputs of the random combination generator , and the combined second inputs of the OR elements are the setup input to the initial state of the random combination generator. ф1/г.7f1 / g7 -i-i
SU843808733A 1984-10-31 1984-10-31 Device for patitioning graphs into subgraphs SU1273941A1 (en)

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)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
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