SU1596344A1 - Device for solving problems on graphs - Google Patents

Device for solving problems on graphs Download PDF

Info

Publication number
SU1596344A1
SU1596344A1 SU884425141A SU4425141A SU1596344A1 SU 1596344 A1 SU1596344 A1 SU 1596344A1 SU 884425141 A SU884425141 A SU 884425141A SU 4425141 A SU4425141 A SU 4425141A SU 1596344 A1 SU1596344 A1 SU 1596344A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
block
arcs
output
graph
Prior art date
Application number
SU884425141A
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 SU884425141A priority Critical patent/SU1596344A1/en
Application granted granted Critical
Publication of SU1596344A1 publication Critical patent/SU1596344A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Изобретение относитс  к вычислительной технике и может быть использовано дл  исследовани  путей в графах. Целью изобретени   вл етс  повышение быстродействи  устройства при решении задачи определени  кратчайшего пути в графе со взвешенными вершинами. Устройство содержит блок 46 задани  матрицы смежности, блок 47 определени  кратчайшего маршрута, регистр 48, коммутатор 49 смежных вершин, многоканальный накапливающий блок 50 выбора минимальной суммы, входы 51 задани  весов вершин устройства, входы 52 задани  начальной вершины устройства, выходы 53 признаков принадлежности дуг множеству дуг кратчайшего пути устройства, тактовые входы 54, 55 устройства, коммутатор 56 инцидентных дуг и входы 57 задани  конечной вершины графа устройства. Перед началом работы обнул ют регистр 48, в блок 46 занос т информацию о топологии графа, в каналы блока 50 занос т коды весов вершин графа, те же коды подают на входы 51. Один из разр дов регистра 48, соответствующий номеру начальной вершины пути, устанавливают по входу 52 в единичное состо ние. На входы 54, 55 подают поочередно тактовые импульсы уровн  логической единицы. При этом блок 47 формирует на выходах 53 устройства признаки принадлежности дуг множеству дуг кратчайшего пути. 5 ил.The invention relates to computing and can be used to study paths in graphs. The aim of the invention is to improve the speed of the device when solving the problem of determining the shortest path in a graph with weighted vertices. The device contains a block 46 specifying the adjacency matrix, block 47 determining the shortest route, register 48, switch 49 adjacent vertices, multi-channel accumulating block 50 for selecting the minimum amount, inputs 51 specifying the device vertex weights, inputs 52 specifying the initial vertex of the device, outputs 53 signs of arcs belonging to the set the shortest path arcs of the device, the clock inputs 54, 55 of the device, the switch 56 of the incident arcs and the inputs 57 specify the final vertex of the device graph. Before starting, the register 48 is zeroed, block 46 is entered into the topology of the graph, the vertex weights are entered into the channels of the block 50, the same codes are fed to the inputs 51. One of the bits of the register 48 corresponding to the number of the initial vertex of the path, set on input 52 to one state. The inputs 54, 55 are alternately supplied with clock pulses of the logical unit level. In this case, the block 47 forms at the outputs 53 of the device signs of belonging of arcs to the set of arcs of the shortest path. 5 il.

Description

us. S Изобретение относитс  к вычислительной технике и может быть использовано дл  исследовани  путей в графах . ЦельнУ изобретени   вл етс  повыше ние быстродействи  устройства при ре шении задачи определени  кратчайшего пути в графе со взвешенными вершинами . На фиг.1 представлена функциональ на  схема устройства; на фиг.2 - фун кциональна  схема блока управлени ; на фиг.З - пример моделировани  графа , на фи.4 - этапы; определени  кра чайшего пути в графе; на фиг.5 - обо щенна  структурна  схемаустройства. Устройство,, (фиг. 1) содержит регистр 1 сдвига, реверсивный регистр 2 сдвига, сумматор 3, блок 4 управлени , триггер 5, группу триггеров 6(1)-6(В), элементы И 7 и 8, две груп пы элементов И 9(1)-9(В) и 10(1) - / 10(В), элементы ИЛИ 11-13, элемент .И-ИПИ 14, элемент ИСКЛКНАЮ1ЦЕЕ ИЛИ 15 элемент ИЛИ-НЕ 16, группу элементов ИЛИ-НЕ 17(1)-17(В), ключи 18 и 19, информационные входы 20(1)-20(В), ин формационный выход 21, информационные входы 22(1)-22(В) и индикационные выходы 23(1)-23(В), где В - количество вершин в графе. Блок 4 управлени  (фиг.2) содержит генератор 24 импульсов, распределитель 25 импульсов, генератор 26 одиночных импульсов, когФ1утаторы 27 29 , т иггеры 30-33, элемент 34 задержки , элементы И 35-39, элементы ИЛИ 40-42, элемент ИЛИ-НЕ 43, элементь1 НЕ 44 и 45. На фиг.5 обозначены блок 46 задани  матрицы смежности, блок 47 определени  кратчайшего маршрута, регистр 48, коммутатор 49 смежных вершин , многоканальный накапливающий блок 50 выбора минимальной суммы,вхо ды 51 задани  весов вершин устройства , входы 52 задани  начальной вершины устройства, выходы 53 признаков принадлежности дуг множеству дуг кратча;йшего пути устройства, -лактовые входы 54 и 55 устройства, коммутатор 56 инцидентных дуг и входы 57 задани  конечной вершины графа устройства,.. На фиг.4а изображен пример графа со взвешенными вершинами, веса которых указаны внутри обозначени  вер- шины. Начальна  вершина обозначена буквой Н, а конечна  - буквой К. Алгоритм поиска кратчайшего пути ; на графе фиг.4 заключаетс  в следуюшем . Отмечают все вершины, св занные с начальной вершиной. Метка вершин осуществл етс  квадратом внутри вершины графа. К весу всех отмеченных вершин 8, 7 и 2 прибавл ют вес начального узла, равный единице. Полученную сумму запоминают в отмеченных вершинах 9, 8 и 3. После этих операций завершают первый шаг вычислений , получают граф, изображенный fia фиг.46. Дальнейшие вычислени  выполн ют от всех ранее меченых вершин . Отмечают все вершины графа,св занные дугами с мечеными вершинами на предыдущем шаге вьгчйслений. На втором шаге вычислений метке подлежит конечна  вершина и вершина с весом 4. Выдел ют минимальную сумму весов из всех меченых ранее вершин, св занных направленными дугами с отмеченными вершийами Кис еесом 4.Вершина с весом 4 св зана с :мечеными вершинами,в которых после первого шага вычислений сумма весов равна 8 и 3(фиг.4б). Минимальна  сумма из 8 и 3 равна 3. Эта минимальна  сумма 3 суммируетс  с весом вершины 4 и запоминаетс  в ней в виде нового веса 4.+ 3 7 (фиг.4в). Аналогично дл  конечной вершины следует выбрать минимальную сумму из двух меченых вершин 9 и 8. Минимальна  сумма, равна  8, цоступагаца  из всех меченых на первом шаге вершин, суммируетс  с нулевым весом .конечной вершины и запоминаетс  в ней . После второго шага ВЕ1числений имеем граф, изображенный на фиг.4в. Дуга, соедин юща  конечную вершину с вершиной с весом 4, на втором шаге вычислений не учитывалась, так как вершина с весом 4 до начала второго шага вычислений не бьша мечена. Вычислени  на третьем шаге вычислений выполн ют Дл  всех меченьпс узлов . Теперь при выборе минимальной суммы весов, поступающей в конечный узел графа, необходимо учитывать все вершины графа, св занные направленными дугами с конечной вершиной., Итак, на третьем шаге вычислений в конечную вёрцину поступают суммы веCQg .-ИЗ вершин 9, 8 и 7 (фиг.4г). Минимальна  сумма из 9, 8 и 7, равна  7, суммируетс  с нулевым весом конечной вершины и запоминаетс  в конечной вершине вместо предыдущего значени  8, которое сформировалось на предыдущем шаге. На этом вычислени  заканчиваютс , так как состо ние все меченых вершин не измен етс .us. S The invention relates to computing and can be used to examine paths in graphs. The whole of the invention is to increase the speed of the device when solving the task of determining the shortest path in a graph with weighted vertices. Figure 1 shows the functional scheme of the device; 2 is a functional diagram of a control unit; FIG. 3 shows an example of modeling a graph; in FIG. 4, stages; determine the best way in the graph; Fig. 5 shows a generalized structural arrangement. The device ,, (Fig. 1) contains a shift register 1, a reverse shift register 2, an adder 3, a control unit 4, a trigger 5, a group of triggers 6 (1) -6 (B), elements 7 and 8, two groups of elements And 9 (1) -9 (B) and 10 (1) - / 10 (B), elements OR 11-13, element. AND-IPI 14, element EXCLUSIVE OR 15 element OR-NOT 16, group of elements OR-NOT 17 (1) -17 (В), keys 18 and 19, information inputs 20 (1) -20 (В), informational output 21, information inputs 22 (1) -22 (В) and indicator outputs 23 (1) -23 (B), where B is the number of vertices in the graph. The control unit 4 (FIG. 2) comprises a pulse generator 24, a pulse distributor 25, a single pulse generator 26, which has 27 29, tons of iggers 30-33, a delay element 34, AND 35-39 elements, OR elements 40-42, an OR element -NE 43, elements 1 NOT 44 and 45. In FIG. 5, an adjacency matrix setting unit 46, a shortest route determination unit 47, a register 48, an adjacent vertex switch 49, a multi-channel minimum sum accumulating unit 50, device 51 vertex weights inputs , inputs 52 specify the initial vertex of the device, outputs 53 signs of The arrays of multiple arcs are brief; your device’s path, the lactic inputs 54 and 55 of the device, the switch 56 of incident arcs, and the inputs 57 define the final vertex of the device graph, .. Figure 4a shows an example of a graph with weighted vertices whose weights are indicated inside the vertex symbol - tires. The initial vertex is denoted by the letter H, and the final - by the letter K. The algorithm for finding the shortest path; in the column of FIG. 4, the following is summarized. Mark all vertices associated with the initial vertex. The label of the vertices is performed by a square inside the vertex of the graph. The weight of all marked vertices 8, 7, and 2 adds the initial node weight equal to one. The resulting sum is stored in the marked vertices 9, 8 and 3. After these operations complete the first step of the calculations, we get the graph shown in fia of Fig. 46. Further calculations are performed from all previously labeled vertices. Mark all vertices of the graph connected by arcs with labeled vertices at the previous step of the graph. In the second step of the calculation, a final vertex and a vertex with a weight of 4 are to be labeled. Select the minimum sum of weights from all previously labeled vertices associated with directed arcs to the marked Kish ees 4. The vertex with a weight of 4 is associated with: labeled vertices, in which after The first step of the calculation is the sum of the weights equal to 8 and 3 (figb). The minimum sum of 8 and 3 is equal to 3. This minimal sum of 3 is summed up with the weight of vertex 4 and is stored in it as a new weight 4. + 3 7 (figv). Similarly, for the final vertex, select the minimum sum of two labeled vertices 9 and 8. The minimum sum, equal to 8, from the number of all labeled vertices in the first step, is summed with the zero weight of the final vertex and is remembered in it. After the second step of the BEI, we have the graph shown in figv. The arc connecting the final vertex with the vertex weighing 4 was not taken into account at the second calculation step, since the vertex weighing 4 before the beginning of the second computation step was not labeled. The calculations in the third step of the calculations are performed for all the cardi ng nodes. Now, when choosing the minimum sum of weights arriving at the final node of the graph, it is necessary to take into account all the vertices of the graph associated with directed arcs with the final vertex. So, at the third step of the calculations, the sum vertex receives the sum veCQg. -From vertices 9, 8 and 7 ( Figd). The minimum sum of 9, 8 and 7, equal to 7, is summed with the zero weight of the final vertex and is stored at the final vertex instead of the previous value 8, which was formed in the previous step. This ends the computation because the state of all labeled vertices does not change.

Таким образом, вес 7 конечной вершины графа после завершени  вычислений равен длине кратчайшего пути. Конфигураци  кратчайшего пути определ етс  из графа фиг.4г, начина  с конечного узла,вдоль той дуги,по которой поступает минимальна  сумма весов , равна  7. Эта дуга соедин ет ко нечную вершину с вершиной 7 на фиг.4г. Вершина 7 дугой кратчайшего пути соедин етс  с вершиной 3, котора  соединена дугой с начальной вершиной Н. Следовательно, кратчайший путь на исходном графе (фиг.4а) проходит чере(з вершины 1, 2, 4, О и выделен двойными дугами.Thus, the weight 7 of the final vertex of the graph after the completion of the calculations is equal to the length of the shortest path. The shortest path configuration is determined from the graph of FIG. 4d, starting at the end node, along the arc along which the minimum sum of weights is equal to 7. This arc connects the final vertex with vertex 7 in FIG. 4d. Vertex 7 is connected to vertex 3 by the shortest path arc, which is connected by an arc to the initial vertex N. Therefore, the shortest path on the initial graph (Fig. 4a) goes through (3, 2, 4, O vertices and is marked by double arcs.

Генератор 24 импульсов блока 4 управлени  (фиг. 2) вырабатывает последовательность тактовых импульсов частоты f, из которых распределитель 25 импульсов формирует п последовательностей .импульсов частоты f/n, сдвинутых друг.относительно друга на врем  1/f, где п - количество разр дов представлени  веса узла графа,The pulse generator 24 of the control unit 4 (FIG. 2) generates a sequence of clock pulses of frequency f, of which the distributor 25 pulses form n sequences of frequency pulses f / n shifted each other relative to each other for time 1 / f, where n is the number of bits representing the weight of a graph node,

. В режиме ввода веса узлов графа в регистр 1 сдвига коммутатором 28 (выполнен, например, в ввде переключател  на два положени ) блока 4 управлени  подключают выход генератора 26 одиночных импульсов к входу установки в единицу триггера 30. С помоШ;ью-коммутатора 27 (выполненного, например , в виде клавишного переключател ) блока 4 управлени  задают двоичный код веса узла графа. Коммутатор 27 подключает в единичных разр дах двоичного кода веса узла соответствующие выходы распределител  25 импульсов к входам элемента ИЛИ 40, на выходе которого формируетс  после- довательньш двоичный код веса узла, Например, если вес узла равен п ти 101, то выходы первого и третьего, разр дов распределител  25 импульсов подключаютс  коммутатором 27 к входам элемента ,. In the mode of inputting the weight of the graph nodes into the shift register 1 by the switch 28 (performed, for example, in a two-position switch) of the control unit 4 connect the output of the generator 26 of single pulses to the installation input to the trigger unit 30. With the help of the new switch 27 (performed For example, in the form of a key switch) of the control unit 4, a binary code of the weight of the graph node is set. The switch 27 connects in unit bits of the binary code of the node weight the corresponding outputs of the distributor 25 pulses to the inputs of the element OR 40, at the output of which a sequential binary code of the node weight is formed. For example, if the weight of the node is equal to 101, then the outputs of the first and third the bits of the distributor 25 pulses are connected by the switch 27 to the inputs of the element,

Ввод последовательного двоичного . кода веса Узла в п-разр дный регистрЛ 1 сдвига осуществл етс  после подачи с помощью коммутатора 29 (выполненного , например, в виде кнопочного пере ключател ) единичного сигнала с выхода элемента НЕ 44 на вход запуска генератора 26 импульсов, который выдел ет из последовательности импульсов выхода элемента И 35, действ тощих с частотой f/2n, одиночный импульс , устанавливающий через коммуQ татор 28 триггер 30 в единичное состо ние на врем  n/f.Serial binary input. The Node weight code in the p-bit shift register 1 is made after the switch 29 (made, for example, in the form of a push-button switch) applies a single signal from the output of the HE element 44 to the start input of the pulse generator 26, which extracts from the sequence of pulses the output of the element 35, acting thin at a frequency f / 2n, is a single impulse that, via switch 28, sets trigger 30 to the unit state for time n / f.

Триггер 31 из последовательности импульсов п-го разр да распределител  25 импульсов формирует две последовательности импульсов.The trigger 31 of the sequence of pulses of the n-th bit of the distributor of 25 pulses forms two sequences of pulses.

Эти чередующиес  с частотой f/2n две последовательности импульсов на пр мом и инверсном выходах триггера 31 определ ют два временных цикла 0 работы устройства. Будем считать,что последовательность импульсов на пр мом выходе триггера 31 определ ет первый цикл, а на инверсном выходе - второй. Тогда триггер 30, установленный в единичное состо ние одиночным импульсом в конце второго цикла, будет находитьс  в единичном состо нии в течение первого цикла, в конце которого он- устанавливаетс  в нулевое состо ние импульсом п-го раз-р да распределител  25 импульсов.These two sequences of pulses alternating with the frequency f / 2n on the forward and inverse outputs of the trigger 31 define two time cycles of operation of the device. We assume that the sequence of pulses at the forward output of the trigger 31 determines the first cycle, and at the inverse output the second cycle. Then the trigger 30, which is set to a single state by a single pulse at the end of the second cycle, will be in a single state during the first cycle, at the end of which it is set to the zero state by a pulse of the nth times of the distributor 25 pulses.

Единичный сигнал пр мого выхода триггера 30,.поступа  на управл ющий вход регистра 1 сдвига, обеспечивает запись, начина  с младшего разр да, A single direct output signal of trigger 30, access to the control input of the 1 shift register, provides a record, starting with the low-order bit,

5 последовательного двоичного кода веса узла графа, поступающего с вькода элемента ИЛИ 40 блока 4 управлени  на вход ввода данных регистра 1 сдвига . Запись двоичного кода в регистр 5 consecutive binary code of the weight of the node of the graph coming from the code of the element OR 40 of the control unit 4 to the data input of the shift register 1. Writing binary code to register

0 1 сдвига осуществл етс  под действием тактовых импульсов генератора 24 импульсов блока 4 управлени , поступаюй1их на вход синхронизации регистра 1 сдвига. После записи двоичный 0 1 shift is carried out under the action of the clock pulses of the generator 24 pulses of the control unit 4 received at the synchronization input of the shift register 1. After writing the binary

5 код веса узла графа хранитс  динамическим способом в регистре 1 сдвига за счет его циркул ции с выхода регистра 1 сдвига на его информационный Q вход под действием тактовых импульсов генератора 24 импульсов блока 4 управлени .5, the graph node weight code is stored dynamically in the shift register 1 due to its circulation from the output of the shift register 1 to its information Q input under the action of the clock pulses of the pulse generator 24 of the control unit 4.

В режиме ввода весов триггеры 6(1)-6(В) наход тс  в нулевом состо55In the weighing input mode, the triggers 6 (1) -6 (B) are in zero state55

. нии, в которое их устанавливает по инверсному нулевому входу одиночной импульс генератора 26 одиночных им пульсов , поступающий через элемент НЕ 45 блока 4 управлени . Триггер 5 устанавливаетс  в нулевое состо ние импульсами, действующими на выходе генератора 26 одиночных импульсов блока 4 управлени . Триггер 32 блока 4 управлени  устанавливаетс  в нулевое состо ние импульсами первого разр да распределител  25 импульсов. Последовательность импульсов выхода элемента И 35, действующа  через элемент И 38, открыташ инверсным выходом триггера 32, устанавливает триггер 33 в нулевое состо ние. После записи в первом цикле двоичного кода веса узла в регистр 1 сдвига этот код во втором цикле под действием, тактовых импульсов генератора 24 импульсов блока 4 управлени  записьшаетс , начина  с младшего разр да, через сумматор 4 в реверсивный регистр 2 сдвига. В режиме моделировани  коммутатором 28 блока 4 упр авлени  подключают выход генератора 26 одиночных импульсов к единичному входу триггера 33. Начальный узел графа задают с помощью ключа 18, подключа  выход генератора 26 одиночных импульсов блока 4 управлени  к входу элемента ИЛИ 11. Конечный узел грасЬа задают ключом 19, который соедин ет инверсный выход триггера 33 блока 4 управлени  с одним из входов элемента ИЛИ 12. Пуск устройства осутдествл ют коммутатором 29 блока 4 управлени , с помощью которого на вход запуска генератора 26 одиночных импульсов п6дшот сигнал выхода элемента НЕ 44. Выходной импульс генератора 26 одиночных импульсов блока 4 управлени  поступает через коммутатор 28 на еди ничный вход триггера 33, устанавлива его в единичное состо ние, и через. ключ 18 модул , содержащего начальный узел графа, устанавливает триггер 5 этого модул  в единичное состо  ние. Триггер 5 начального узла графа в единичном состо нии снимает блокировку первой и второй групп вхо дов элемента И-ШШ 14, блокиру  его третью группу входов. Во врем  первого цикла работы уст ройства под действием единичнЪго сиг нала пр мого выхода триггера 31 и по следовательности тактрвых импульсов генератора 24 импульсов блока 4 управлени  из реверсивного регистра 2 сдвига осуществл етс  сдвиг двоичного кода веса начального узла графа. начина  со старшего разр да. Этот двоичнъш код, сдвигаемый из реверсивного регистра 2 сдвига старшими разр дами вперед, вновь записьгоаетс  в реверсивный регистр 2 сдвига по входу записи при сдвиге влево, а также через элемент И-ИЛИ 14 поступает на информационный выход 21 модул , содержащего начальный узел графа, и далее согласно топологии графа на информационные входы 20(1)-20(В) других модулей моделирзтощей структуры. Будем полагать в дальнейшем, что модули , у которых триггер 5 установлен в единичное состо ние, наход тс  в возбужденном состо нии, а модули, содержащие триггер 5 в нулевом состо нии , наход тс  в невозбужденном состо нии . В невозбужденном состо нии модули вырабатывают на информационном выходе 21 последовательность двойных импульсов, формируемых на выходе элемента ИЛИ 42 блока 4 управлени  из последовательностей импульсов, которые вырабатываютс  на выходах элементов И 35 и 37 блока 4 управлени . На выходе элемента И 35 блока 4 управлени  формируетс  последовательность импульсов п-го разр да распределител  25 импульсов, действующа  во врем  второго цикла работы устройства при единичном сигнале на инверсном выходе триггера 31 блока 4 управле-. ни . На выходе элемента И 37 действует последовательность импульсов первого разр да распределител  25 импульсов во врем  первого цикла работы устройства при единичном сигнале на пр мом выходе триггера 31 блока 4 управлени . Таким образом, на выходе элемента ЛИ 42 блока 4 управлени  формируетс  последовательность двойных импульсов, ействующих в первом разр де первого цикла и в п-м разр де второго цика работы устройства. Последовательность импульсов выхода элемента ИЛИ 42 блока 4 управлени  поступает через элементы И-ИЛИ 14 на информационные выходы 21, всех невозбужденных модулей модулирующей структуры, у кото- рых триггер 5 находитс  в нулевом состо нии . После установки в единичное состо ние триггера 33 блока 4 управлени  через элемент И 39 начинает поступать последовательность импульсов п-го разр да второго цикла, задержанна  элементом 34 задержки на длительность тактового импульса генератора 24 импульсов блока 4 управлени . Первьй .импульс последовательности выхода эл мента И 39 блока 4 управлени  устанавливает триггеры 6(1)-6(В) во всех модул х моделирующей структуры в еди ничные состо ни , при которых снимаетс  блокировка элементов ИЛИ-НЕ 17(1)-17(B), так как на инверсных выходах триггеров 6(1)-6(В) устанавливаютс  нулевые сигналы. Кроме того , в режиме моделировани , когда триггер 33 блока 4 управлени  устанавливаетс  в единичное состо ние, снимаетс  блокировка элемента ИЛИ-НЕ 43 блока 4 управлени  со стороны инверсного выхода триггера 33. Управл  юща  последовательность второго цикл с инверсного выхода триггера 31 блок 4 управлени  инвертируетс  элементом ИЛИ-НЕ 43 блока 4 управлени  и в виде управл кю1ей последовательности первого цикла поступает на вход элементов И 7 всех модулей моделирующей структуры. в первом цикле работы устройства в модул х моделирующей структуры,на информационные входы которых 20(1)-20(В) поступают последовательные двоичные коды, начина  со старшего разр да, осуществл етс  выбор наименьшего двоичного кода. Это выполн етс  следующим образом. Если хоть в одном двоичном коде в старшем разр де содержитс  нуль, то на выходе соответствующего элемента ИЛИ-Н 17 формируетс  единичный сигнал, который проходит через элемент И 7 на все элементы И 10(1)-10(В) и сбрасывает в нулевые состо ни  триггеры 6(1)-б(В) в. тех каналах, в которых, н информационных входах 20(1)-20(В) в старшем разр де действует единичный сигнал. Дальнейший анализ двоичных кодов по входам 20(1)-20(В) выполн етс  аналогично - поразр дно от стар шего разр да к .младшему - за, врем  первого цикла, составл ющего п тактов . После окончани  первого цикла в единичном состо нии оказываетс  триг гер 6 (к) К-го канала, в котором дей ствовал наименьший двоичный код (К 1,...,В). Во втором цикле работы устройства модули моделирующей структуры, наход щиес  в возбужденном состо нии, вьода 1 ют из реверсивного регистра 2 сдвига через элементы И-ИЛИ 14 на информационный выход 2 последовательный двоичный код веса, начина  с младшего разр да, т.е. младшими разр дами вперед . Выдача двоичного кода из реверсивного регистра 2 сдвига осуществл етс  под действием тактовых импульсов генератора 24 импульсов и управл ющей последовательности второго цикла, действующей на инверсном выходе триггера 31 блока 4 управлени . Наименьший последовательный двоичный код, действующий, например, в К-м канале, поступает младшими разр дами вперед через элементы ШШ-НЕ 17 (К), ИЛИ 13 и ИЛИ-НЕ 16 на вход посладовательно:ГО двоичного сумматора 3,на другой. вход которого под действием тактовък импульсов генератора 24 импульсов блока 4 управлени  сдвигаетс  с выхода регистра 1 сдвига последовательный двоичный код веса узла данного модул  моделируюп ей структуры. Сумиатор 3 выполн ет последовательно во времени , начина  с младшего разр да, суммирование двоичного кода регистра 1 сдвига и наименьшего двоичного кода , поступающего по информационному входу 20 (к). Результат суммировани  с выхода сумматора 3 записьшаетс , начина  с младшего разр да, в реверсивный регистр 2 сдвига под действием тактовых икшульсов генератора 24 импульсов и управл ющей последовательности второго цикла, формируемой на инверсном выходе триггера 31 блока 4 управлени . Причем св зь одного из входов элемента ИЛИ-НЕ 16 с пр мым входом триггера 31 блока 4 управлени  обеспечивает передачу кодов через этот элемент только во врем  второго цикла работы устройства. Во врем  передачи наименьшего двоичного кода с информационного входа 20(К) через элементыЦПИ-НЕ 17 .(К) и ИЛИ 13 в последнем п-м разр де второго цикла происходит установка триггера 5 данного модул  в единичное ,, состо ние, т.е. передача возбузвдени  от одного МОДУЛЯ моделирующей структура . к другому. Действительно, в п-м . (старшем) разр де наименьшего кода содержитс  нуль, который преобразуетс  при передаче через элемент ИЛИ-НЕ 17 (к) в единичный сигнал, устанавли-: вающий через элементы И 8 и ИЛИ t.1 , 15 триггер 5 данного модул  в -единичное состо ние. В дальнейшем устройство работает аналогичным образом. Последовательный двоичный код веса начального узла графа передает возбуждение вычислительного процесса на другие модули моделирующей структуры , которые в первом цикле выдел ют. наименьший двошгный код из всех кодов , действующих на информационных входах 20(1)-20(В)5 а во .втором цикле прибавл ют к наименьшему двоичному коду вес узла данного модул  моделирункцей структурь. Невозбужденные модули моделирующей структуры в процессе работы выдают в первом цикле максимальньш двоичный :код - единицу в первом (старшем) разр де, поступающу с выхода элементй И 37 блока 4 управ лени  через атемент 42 блока 4 управ лени  и элемент И-ИЛИ 14 на информационный выход 21 данного модул . Поэтому максимальные двоичные коды, по отстающие от невозбу кденных модулей моделирующей структуры на информационные входы 20(1)-20(В) данного мо дул , не вли ют на выбор наименьшего двоичного кода из всех кодов, поступагацих от возбужденных модулей. Если на все информационные входы 20(1)-20(В) данного модул  пос тупают максимальные двоичные коды от невозбулденных других модулей, то данный модуль остаетс  в невозбужденном состо нии, так как импульс п-го разр да второго цикла с выхода элемента И 35, поступа  через элемент . ИЛИ 42 блока 4 управлени  и элемент .И-ИЛИ 14 невозб кденного модул , про ходит по входу 20(к) данного модул  на в.ыход элемента 1-ШИ-НЕ 17(К) в виде нулевого сигнала, который блоки- рует элемент И 8 и предотвращает установку триггера 5 данного модул  в единичное состо ние. В это врем  эле мент 16 блокируетс  импульсом п-го разр да второго цикла, поступающего с выхода элемента И 35 блока 4 управлени . В процессе моделировани  триггер 33 блока 4 управлени  сохран ет единичное состо ние, так как в процессе вычислений последовательные двоичные коды, сдвигаемые младшими разр дами вперед с выхода реверсивного регистра 2 сдвигс, и двоичные коды, действующие на выходе суммато4 ра 3, различны. Поэтому на выходах элементов ИСКЛЮЧАЮЩЕЕ РШИ 15 модулей формируютс  единичные сигналы, которые поступают на входы элемента ЕЛИ 41 блока 4 управлени  и через элемент И 36, открытый во втором цикле сигналом инверсного выхода триггера 31, устанавливают триггер 32 в единичное состо ние до момента действи  импульса п-го разр да второго цикла на выходе элемента И 35. В результате элемент И 38 во врем  действи  импульса п-го разр да второго цикла закрыт нулевым сигналом инверсного выхода триггера 32, и триггер 33 сохран ет в процессе вычислений единичное состо ние. Процесс вычислений в моделирующей структуре заканчиваетс , когда процесс возбуждени  распростран етс  от начального узла графа во все другие его узлы В этом случае в моделирующей структуре наступает динамическое равновесие. Каждый модуль модулирующей структуры на Р-м шаге вычислений выдел ет по входам 20(1) 20 (в) такой же наименьший двоичный код, который был выделен на предьщущем (Р-1)-м шаге вычислений. В каждом модуле моделирующей структуры сумма наименьшего двоичного кода, вьщеленного по входам 20(1)-20(В), с двоичным кодом веса узла данного модул , сдвигаемого с выхода регистра 1 сдвига, на Р-м шаге вычислений равна сумме, выделенной на предыдущем (Р -О-м шаге вычислений и хран щейс  в реверсивном регистре 2 сдвига. На BbiKcie элементов ИСКЛЮЧАЮЩЕЕ ИЛИ 15 всех модулей моделирующей структуры действует во врем  вторых циклов нулевые сигналы, и триггер 32 блока 4 управлени  устанавливаетс  в нулевое состо ние импульсом первого разр да распределител  23 импульсов. Импульс п-го разр да, второго цикла, действующий на выходе элемента И 35, устанавливает через элемент И 38 триггер 33 в нулевое состо ние. Единичный сигнал, формируемый на инверсном выходе триггера 33 блока 4 управлени , поступает через ключ 19 в модуль,содержащий конечный узел графа. Если в этом модуле наименьший двоичный код действует по Т-му входу и триггер 6 (т) находитс  в единичном состо нии , то единичный сигнал с выхода ключа 19 проходит через элементы ИЛИ 12, и 9 (к) на индикационный выход 23 (т) и далее поступает на один из индикационных входов 22(1) 22(в) предащущего модул  моделирующей структуры. Если в этом модуле на меньший двоичный код действует по К-му входу и триггер 6 (К) находитс  в единичном состо нии, то единичный сигнал индикации 23 (К) и далее рас простран етс  по модул м моделирующей структуры от конечного узла графа к начальному узлу вдоль кратчайше пути, I оторому соответствует наимень ща  сумма весов узлов графа,. Двоичный код, пропорциональный дл не кратчайшего пути, формируетс  в процессе моделировани  в реверсивном регистре 2 сдвига модул , содержащего конечный узел графа. После окончани  вычислений наименьша  сумма ве сов графа между начальным и конечным узлами выдаетс  во врем  второго цик ла под действием тактовых импульсов генератора 24 импульсов блока 4 управлени  из реверсивного регистра 2 сдвига через элемент И-ИЛИ 14..на информационный выход 21 модул , содержащего конечный узел графа. Таким образом, в общем виде работа устройства может быть представлен следующим образом (фиг.5). Перед началом работы обнул ют регистр 48, в блок 46 задани  матрицы смежности занос т информацию о топол гии графа, в каналы блока 50 занос т коды весов вершин графа-, те же коды подают на входы 51. Один из разр дов регистра 48, который соответствует номеру начальной вершины пути, устанавливают по входу 52 в единичное со сто ние. При этом коммутатор 49 выдает на свои выходы состав вершин. смежных с опрошенными, а коммутатор 56 на свой (К,М)-й информацио ный вход (К 1,... ,В; М 1,.,.,В) код, поступивший на его К-й информационный вход, если К-й информационный вход подключен и есть разрешение , на подключение К-го информациоцнтэго входа на М-й информационный выход, тем на (К,М)-й информационный выход передаетс  вес пути, накопленный К-м каналом блока 50. Через врлм , достаточное дл  завершени  указа ных операций, на вход 55 устройства. in which they are installed on the inverse zero input of a single pulse of the generator 26 of single pulses, coming through the element 45 of the control unit 4. The trigger 5 is set to the zero state by pulses acting on the output of the generator 26 of single pulses of the control unit 4. The trigger 32 of the control unit 4 is set to the zero state by pulses of the first discharge of the distributor 25 pulses. The pulse sequence of the output element AND 35, acting through the element AND 38, opened by the inverse output of the trigger 32, sets the trigger 33 to the zero state. After writing in the first cycle of the binary code of the node weight in the shift register 1, this code in the second cycle under the action of the clock pulses of the generator 24 pulses of the control unit 4 is written, starting with the lower order, through the adder 4 into the reverse shift register 2. In the simulation mode, the switch 28 of the control unit 4 connects the output of the generator 26 single pulses to a single input of the trigger 33. The starting node of the graph is set with a key 18 by connecting the output of the generator 26 of single pulses of the control unit 4 to the input of the element 11. The end node of the graph is set with a key 19, which connects the inverted output of the trigger 33 of the control unit 4 to one of the inputs of the element OR 12. The device is started up by the switch 29 of the control unit 4, through which the single impulse generator 26 starts up cos p6dshot NOT element output signal 44. The output pulse generator 26 single-pulse control unit 4 receives through the switch 28 on the unit input latch 33 and sets it in a single state, and after. the key 18 of the module containing the initial node of the graph sets the trigger 5 of this module to one. The trigger 5 of the initial node of the graph in the single state removes the blocking of the first and second groups of inputs of the I-ШШ 14 element, blocking its third group of inputs. During the first cycle of the device operation, under the action of the unit signal of the direct output of the trigger 31 and the sequence of clock pulses of the generator 24 pulses of the control unit 4 from the reverse shift register 2, the binary code of the weight of the initial node of the graph is shifted. starting with the older bit. This binary code, shifted from the reverse shift register 2 by the higher bits, is again written to the reverse shift register 2 by the write input during the left shift, as well as through the AND-OR element 14 enters the information output 21 of the module containing the initial node of the graph, and further, according to the topology of the graph for the information inputs 20 (1) -20 (B) of other modules of the building structure. We will further assume that the modules in which the trigger 5 is set to one state are in the excited state, and the modules containing the trigger 5 are in the zero state are in the unexcited state. In the unexcited state, the modules produce at the information output 21 a sequence of double pulses generated at the output of the OR element 42 of the control unit 4 from sequences of pulses that are produced at the outputs of the AND elements 35 and 37 of the control unit 4. At the output of the element And 35 of the control unit 4, a sequence of pulses of the nth discharge of the pulse distributor 25 is generated, which is active during the second cycle of operation of the device with a single signal at the inverse output of the trigger 31 of the control unit 4. neither At the output of the element 37, a sequence of pulses of the first discharge of the distributor 25 of pulses acts during the first cycle of operation of the device with a single signal at the forward output of the trigger 31 of the control unit 4. Thus, at the output of the LII element 42 of the control unit 4, a sequence of double pulses is generated, acting in the first discharge of the first cycle and in the nth discharge of the second device operation. The pulse sequence of the output of the element OR 42 of the control unit 4 is transmitted through the elements AND-OR 14 to the information outputs 21 of all unexcited modules of the modulating structure, in which the trigger 5 is in the zero state. After the control unit 33 of the control unit 4 is set to one state, a sequence of n-th digits of the second cycle starts through the element I 39 and is delayed by the delay element 34 for the duration of the clock pulse generator 24 of the control unit 4. The first impulse of the sequence of the output of the AND 39 control unit 4 sets the triggers 6 (1) -6 (B) in all modules of the modeling structure into single states at which the blocking of the elements OR-NOT 17 (1) -17 is released ( B), since zero signals are set at the inverse outputs of the 6 (1) -6 (B) flip-flops. In addition, in the simulation mode, when the trigger 33 of the control unit 4 is set to one, the element OR-HE 43 of the control unit 4 is locked from the inverse output of the trigger 33. The control sequence of the second cycle from the inverted output of the trigger 31 the control unit 4 is inverted the element OR-NE 43 of the control unit 4 and in the form of a control of the sequence of the first cycle is fed to the input of the elements AND 7 of all modules of the modeling structure. In the first cycle of operation of the device in the modules of the modeling structure, the information inputs of which are 20 (1) -20 (B) receive consecutive binary codes, starting with the highest bit, the selection of the smallest binary code is performed. This is done as follows. If at least one binary code contains zero in the high-order bit, then the output of the corresponding element OR-H 17 forms a single signal that passes through the element AND 7 to all elements AND 10 (1) -10 (B) and resets to zero nor triggers 6 (1) -b (B) c. those channels in which, on the information inputs 20 (1) -20 (V), a single signal acts in the higher order. Further analysis of binary codes at inputs 20 (1) -20 (B) is performed similarly — bitwise from the highest bit to the lowest bit — during the time of the first cycle, which is n cycles. After the end of the first cycle, the trigger of the 6th (K) channel, in which the smallest binary code (K 1, ..., B) was in the single state, appears. In the second cycle of operation of the device, the modules of the modeling structure that are in the excited state, vyod 1 from the reversing register 2 of the shift through the AND-OR 14 elements to the information output 2, the serial binary weight code, starting with the low-order bit, i.e. younger bits ahead. The issuance of a binary code from the reversing shift register 2 is carried out under the action of the clock pulses of the pulse generator 24 and the control sequence of the second cycle operating at the inverse output of the trigger 31 of the control unit 4. The smallest consecutive binary code acting, for example, in the Kth channel, comes in lower bits ahead through the elements SHSh-NOT 17 (K), OR 13 and OR-NOT 16 to the input, sequentially: GO of the adder 3, to the other. the input of which, under the action of pulses of the pulses of the generator 24 of the pulses of the control unit 4, shifts from the output of the shift register 1 the serial binary code of the weight of the node of this module modulates its structure. SUMATOR 3 performs sequentially in time, starting with the least significant bit, the summation of the binary code of the shift register 1 and the smallest binary code received at the information input 20 (k). The result of the summing from the output of the adder 3 is recorded, starting with the least significant bit, into the reversing shift register 2 under the action of the clock pulses of the pulse generator 24 and the control sequence of the second cycle formed at the inverse output of the trigger 31 of the control unit 4. Moreover, the connection of one of the inputs of the element OR NOT 16 to the direct input of the flip-flop 31 of the control unit 4 ensures that codes are transmitted through this element only during the second cycle of operation of the device. During the transmission of the smallest binary code from the information input 20 (K) through the elements of the CRPD-NOT 17. (C) and OR 13 in the last nth bit of the second cycle, the trigger 5 of this module is set to one, i.e. . transfer of excitation from one MODULE simulating the structure. to another. Indeed, in the nth. the (highest) bit of the smallest code contains zero, which is transformed when transmitted through an OR-NOT 17 (k) element into a single signal that sets: AND 8 and OR t.1, 15 trigger 5 elements of this module into the -unit state the In the future, the device works in a similar way. The sequential binary code of the weight of the initial node of the graph transfers the excitation of the computational process to other modules of the modeling structure, which are selected in the first cycle. the smallest dvoggny code from all the codes acting on the information inputs 20 (1) -20 (B) 5 a in the second cycle adds to the smallest binary code the weight of the node of this module by the model structure. In the first cycle, the unexcited modules of the modeling structure produce a maximal binary in the first cycle: the code is a unit in the first (senior) bit, coming from the output of the AND 37 elements of the control unit 4 through the control unit 42 of the control unit 4 and the AND-14 element to the informational output 21 of this module. Therefore, the maximum binary codes lagging behind the non-emitted modules of the modeling structure on the information inputs 20 (1) -20 (B) of the module, do not affect the choice of the smallest binary code from all the codes received from the excited modules. If all information inputs 20 (1) -20 (B) of this module are supplied with maximum binary codes from unimplemented other modules, then this module remains in an unexcited state, since the pulse of the n-th bit of the second cycle from the output of the And 35 element by acting through the item. OR 42 of the control unit 4 and the element. AND-OR 14 of the unmodified module, passes through the input 20 (k) of this module to the output of element 1-ШИ-НЕ 17 (К) in the form of a zero signal, which blocks the element And 8 and prevents the installation of the trigger 5 of this module in one state. At this time, the element 16 is blocked by a pulse of the n-th bit of the second cycle, coming from the output of the element And 35 of the control unit 4. In the process of modeling, trigger 33 of control unit 4 saves a single state, since in the course of calculations sequential binary codes shifted by lower bits from the output of the reverse register 2 shifts and binary codes acting at the output of totalizer 3 are different. Therefore, at the outputs of the EXCLUSIVE RSHI elements of the 15 modules, single signals are generated, which are fed to the inputs of the EFI element 41 of the control unit 4 and through the AND 36 element opened in the second cycle by the inverse output signal of the trigger 31, the trigger 32 is set to one until the moment of the pulse n th digit of the second cycle at the output of the element 35. As a result, the element 38 at the time of the action of the pulse of the nth digit of the second cycle is closed by the zero signal of the inverse output of the trigger 32, and the trigger 33 saves the unit oh state. The calculation process in the modeling structure ends when the excitation process spreads from the initial node of the graph to all its other nodes. In this case, dynamic equilibrium occurs in the modeling structure. Each module of the modulating structure at the P-th calculation step allocates the same smallest binary code that was allocated at the previous (P-1) -th calculation step by the inputs 20 (1) 20 (c). In each module of the modeling structure, the sum of the smallest binary code allocated by the inputs 20 (1) -20 (B), with the binary code of the node weight of this module shifted from the output of the shift register 1, at the Pth calculation step is equal to the sum allocated to the previous one (Р-О-th calculation step and stored in the reverse shift register 2. On the BbiKcie elements EXCLUSIVE OR 15 of all modules of the modeling structure acts during the second cycles zero signals, and the trigger 32 of the control unit 4 is set to the zero state by the first discharge pulse distribute 23 pulses. A pulse of the n-th bit, of the second cycle, acting at the output of the element 35, sets the element 33 through the element 38 to the zero state. The single signal generated at the inverse output of the trigger 33 of the control unit 4 passes through the key 19 into the module containing the final node of the graph. If in this module the smallest binary code acts on the T-th input and the trigger 6 (t) is in the unit state, then the unit signal from the output of the key 19 passes through the elements OR 12, and 9 (to ) on the indicator output 23 (t) and then goes to one of the indicators The input inputs 22 (1) 22 (c) are a forwarding module of the modeling structure. If in this module a smaller binary code acts on the Kth input and the trigger 6 (K) is in the unit state, then the single indication signal 23 (K) further spreads in moduli of the modeling structure from the end node of the graph to the initial one. the node along the shortest path, I will correspond to the smallest sum of the weights of the graph nodes. A binary code, proportional to the non-shortest path, is generated during the simulation in the reverse shift register 2 of the module containing the final node of the graph. After completing the calculations, the smallest sum of the graph weights between the start and end nodes is output during the second cycle under the action of the clock pulses of the pulse generator 24 of the control unit 4 from the reversing shift register 2 through the AND-OR 14 .. element to the information output 21 of the module containing the final node graph. Thus, in general, the operation of the device can be represented as follows (figure 5). Before starting, the register 48 is zeroed, the information about the topology of the graph is entered into the block 46 of the setting of the adjacency matrix, the weight codes of the vertices of the graph are entered into the channels of the block 50, the same codes are fed to the inputs 51. corresponds to the number of the initial vertex of the path, set at the entrance 52 in unit position. In this case, the switch 49 provides for its outputs a vertex composition. adjacent to the respondents, and the switch 56 to its (K, M) -th information input (K 1, ..., B; M 1,.,., B) the code received at its K th information input, if The Kth information input is connected and there is a resolution; to connect the Kth information input of the Mth information output, the weight of the path accumulated by the K channel of block 50 is transmitted to (K, M) th information output. sufficient to complete the specified operations, to the input 55 of the device

Claims (1)

подают импульс уровн  логической еди;ницы . При этом каждый канал блока 50 складывает значение первого слаглемрмножеству дуг кратчайшего пути ус тройства , отличающеес  тем, тем, что, с целью повышени  быстродейго со значени ми каждого из В вторых, слагаемых (отличных от нул ), выбирает минимальное значение суммы, сравнивает его с ранее накопленным и, если последнее окажетс  больше, фиксирует текущее значение суммы и номер второго слагаемого. Таким образом, выбираетс  минимальный из всех путей в каждую вершину из всех уже достигнутых вершин и отмечаютс  дуги, принадлежащие кратчайшему пути,Через врем , достаточное окончани  указанных процессов, на вход 54 устройства подакху импульс уровн  логической единицы . При этом регистр 48 фиксирует (по ИЛИ) информацию, поступившую на его информационный вход, тем самым в состав достигнутых включаютс  новые вершины. Далее работа устройства повтор етс  до тех пор, пока блок 50 не зафиксирует отсутствие каких-либо изменений (значени  минимальной суммы в любом из каналов или ее позиции). При этом блок 47 определени  кратчайшего маршрута формирует на выходах 53 устройства признаки принадлежности дуг множеству дуг кратчайшего пути. Формула изобретени  Устройство дл  решени  задач на графах, содержащее блок задани  матрицы смежности, блок определени  кратчайшего маршрута, регистр, коммутатор смежных вершин и коммутатор инцидентных дуг, причем К-й разр д информационного выхода регистра (К 1,...,,В, где В - количество вершин в графе) подключен к К-му информационному входу коммутатора смежных вершин и к входу подключени  К-го информационного направлени  коммутатора инцидентных дуг, выход значени  (К,М)-го элемента блока задани  матрицы смежности (М 1,...,В) подключен к входам разрешени  подключени  К-го информационного входа на М-й информационный выход коммутатора смежных вершин и коммутатора инцидентных дуг и к входу признака наличи  (К,М)гй дуги блока определени  кратчайшего маршрута, выход признака принадлежности (К,М)-и дуги кратчайшему маршруту которого  вл етс  выходом признака принадлежности (К,М)-й дуги ;: стви  устройства при определении кратчайшего пути в графе со взвешенными вершинами, в него введен многоканальный накапливающий блок выбора минимальной суммы, причем, М-й инфор мационный выход коммутатора смежных вершин подключен к М-му разр ду информационного входа регистра, вход установки в 1 К-го разр да которого  вл етс  входом задани  начальной вершины графа устройства, вход задани  веса К-й вершины которого подключен к входу, первого слагаемого К-го канала мнЬгоканального накапливающего блока выбора минимальной суммы , информационный выход К-го канала которого подключен к К-му информационному входу коммутатора инцидентных дуг, (К,М)-й информационный выход которого подключен к К-му входу второгоimpulse a level of logical one; In addition, each channel of block 50 adds the value of the first to the set of arcs of the shortest path of the device, characterized in that, in order to increase the speed with the values of each of the second, the terms (other than zero) selects the minimum value of the sum, compares it with previously accumulated and, if the latter is greater, fixes the current value of the sum and the number of the second term. Thus, the minimum of all paths to each vertex is selected from among all the peaks already reached and the arcs belonging to the shortest path are marked. After a time sufficient for these processes to end, to the input 54 of the device podkha the impulse level logical unit. In this case, the register 48 records (by OR) the information received at its information input, thereby including new vertices. Further, the operation of the device is repeated until block 50 records the absence of any changes (the value of the minimum amount in any of the channels or its position). At the same time, the shortest route determination unit 47 forms, at the device outputs 53, signs of arcs belonging to a set of shortest path arcs. The invention includes a device for solving problems on graphs, containing a block for specifying an adjacency matrix, a block for determining the shortest route, a register, a switch for adjacent vertices and a switch for incident arcs, the Kth bit of the information output of the register (K 1, ..., B, where B is the number of vertices in the graph) is connected to the K-th information input of the commutator of adjacent vertices and to the input of the K-th information direction of the switch the incident arcs, the output value (K, M) of the th element of the adjacency matrix setting block (M 1 ,. .., B) is connected to in Odam permitting the connection of the Kth information input to the Mth information output of the switch of adjacent vertices and the switch of incident arcs and to the input of the presence indicator (K, M) of the arc of the shortest route determination unit, the output of the attribute of belonging (K, M) and the shortest arc the route of which is the output of the attribute of the (K, M) th arc;: when the device determines the shortest path in the graph with weighted vertices, a multichannel accumulating block for selecting the minimum sum is entered into it, and the Mth information output The d switch of adjacent vertices is connected to the M-th bit of the information input of the register, the installation input of 1 K-th bit of which is the input of setting the initial vertex of the device graph, the input of setting the weight of the K-th peak of which is connected to the input of the first addend K- channel of a multi-channel accumulative block for selecting the minimum amount, the information output of the K-th channel of which is connected to the K-th information input of the switch for incident arcs, (K, M) -th information output of which is connected to the K-th input of the second „ Z2rfJ слагаемого М-го канала многоканального накапливакж его блока выбора минимальной суммы, К-й выход позиции минимальной суммы М-го канала которого подключен к входу признака принадлежности (К,М)-й дуги множеству дуг кратчайшего маршрута блока определени  кратчайшего маршрута, М-й вход заданий конечной вершины маршрута которого  вл етс  М-м входом задани  конечной вершины графа устройства, первый и второй тактовые входы которого подключены соответственно к входу .: . признака записи регистра и к тактовому входу многоканального накапливающего блока выбора минимальной суммы, выход признака отсутстви  изменений которого подключен к входу опроса конечной вершины блока определени  кратчайшего маршрута.Z2rfJ of the addendum of the Mth channel of the multichannel accumulation of its minimum amount selection block, the Kth output of the position of the minimum sum of the Mth channel of which is connected to the input of the sign of belonging (K, M) of the arc to the set of arcs of the shortest route of the block determining the shortest route, M The th input of the tasks of the final vertex of the route of which is the M th input of the task of the final vertex of the device graph, the first and second clock inputs of which are connected respectively to the input.:. the sign of the register and to the clock input of the multichannel accumulating block for selecting the minimum amount, the output of which does not change sign is connected to the polling input of the final vertex of the block determining the shortest route. .. 1one нn
SU884425141A 1988-05-12 1988-05-12 Device for solving problems on graphs SU1596344A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU884425141A SU1596344A1 (en) 1988-05-12 1988-05-12 Device for solving problems on graphs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU884425141A SU1596344A1 (en) 1988-05-12 1988-05-12 Device for solving problems on graphs

Publications (1)

Publication Number Publication Date
SU1596344A1 true SU1596344A1 (en) 1990-09-30

Family

ID=21374887

Family Applications (1)

Application Number Title Priority Date Filing Date
SU884425141A SU1596344A1 (en) 1988-05-12 1988-05-12 Device for solving problems on graphs

Country Status (1)

Country Link
SU (1) SU1596344A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР ff- 1315993, кл. G 06 F 15/20, 1985.Авторское сввдетельство СССР № 1246110, кл. G 06 F 15/20, 1984. *

Similar Documents

Publication Publication Date Title
SU1596344A1 (en) Device for solving problems on graphs
SU1615702A1 (en) Device for numbering permutations
SU1575177A1 (en) Device for extraction of square root
SU1293727A1 (en) Polyfunctional calculating device
SU1307455A1 (en) Sequential multiplying device
SU734669A1 (en) Converter of proper binary fraction into binary-decimal fraction and integer binary-decimal numbers into binary numbers
SU1142845A1 (en) Device for implementing two-dimensional fast fourier transform
SU732946A1 (en) Stochastic converter
SU922765A1 (en) Device for determining probability distribution laws
SU1119025A1 (en) Device for implementing fast fourier transform of sequence with zero elements
SU1315993A1 (en) Device for simulating graphs
SU1725215A1 (en) Device for sorting numbers
SU1348847A1 (en) Device for simulating graph branch
SU1667061A1 (en) Multiplication device
SU930689A1 (en) Functional counter
SU824200A1 (en) Adding device
SU1010622A1 (en) Generator of pseudo-random numbers
SU1683017A1 (en) Modulo two check code generator
SU1501021A1 (en) Function generator
SU941992A1 (en) Digital pulse to parallel binary code converter
SU1188728A1 (en) Device for implementing boolean functions
SU1718215A1 (en) Device to perform vector-scalar operations over real numbers
SU888134A1 (en) Device for determining minimum sections of graph
SU1180917A1 (en) Permutation generator
SU1013965A1 (en) Network graph simulating device