SU798854A1 - Device for simulating network graphs - Google Patents
Device for simulating network graphs Download PDFInfo
- Publication number
- SU798854A1 SU798854A1 SU782683352A SU2683352A SU798854A1 SU 798854 A1 SU798854 A1 SU 798854A1 SU 782683352 A SU782683352 A SU 782683352A SU 2683352 A SU2683352 A SU 2683352A SU 798854 A1 SU798854 A1 SU 798854A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- elements
- inputs
- output
- counters
- graph
- Prior art date
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Description
Изобретение относитс к вычислительной технике и может быть использовано при исследовании параметров сетевых графов. Известно устройство дл определени критического пути в графе , содержащее модель сети, блок управлени генератор импульсов, формирователь весов дуг, по числу столбцов матрицы элементы ИЛИ, И, триггеры l. Однако устройство позвол ет определить только величину кратчайшего пути, численно равную числу импульсов , отсчитываемому в блоке управлени . Наиболее близким по технической сущности к предлагаемому вл етс устройство дл моделировани сетевых гра.фов, содержащее блок управлени , импульсный вход которого соединен с выходом генератора импульсов, элементы И по числу столбцов матрич ной модели сети, цепочки из последо вательно соединенных счетчика и. триггера по числу строк и столбцов матричной модели сети. Выход тригге ра каждого, столбца подключен к информационному входу элемента И соответствующего столбца 2, Недостатком -этого устройства вл етс мала точность моделировани . Цель изобретени - повышение точности . Указанна цель достигаетс тем, что в устройство дл моделировани сетевых граЛ)Ов, содержащее матрицу формирователей весов дуг, каждый из которых содержит триггер и счетчик, выход которого подключен к входу триггера, выход триггера ка;кдого столбца матрицы Формирователей дуг соединен с информационным входом соответствующего элемента И первой группы, генератор тактовых импульсов , выход которого подключен к входу распределител импульсов, введены элементЕ, НЕ, группы элементов И, группы счетчиков, схемы сравнени и триггеры, счетные входы каждого из которых подключены к выходу соответствующей схемы сравнени , первые входы каждой из которых соединены с .первым выходом распределител импульсов , второй выход которого подключен к первым входам элементов И второй группы, вторые входы которых соединены с выходами элементов НЕ, вхохИ которых подключены к выходам соответствующих элементов И первой группыThe invention relates to computing and can be used in the study of the parameters of network graphs. A device is known for determining the critical path in a graph, which contains a network model, a control unit, a pulse generator, an arc wearer, the number of columns of the matrix, the elements OR, AND, triggers l. However, the device only allows the determination of the shortest path, numerically equal to the number of pulses, counted in the control unit. The closest in technical essence to the present invention is a device for simulating network graphs containing a control unit, a pulse input of which is connected to the output of a pulse generator, elements AND according to the number of columns of the matrix network model, chains of successively connected counters and. trigger by the number of rows and columns of the matrix network model. The trigger output of each column is connected to the information input of the AND element of the corresponding column 2. The disadvantage of this device is the low accuracy of the simulation. The purpose of the invention is to improve accuracy. This goal is achieved by the fact that a device for simulating network g) s, containing a matrix of arc weights formers, each of which contains a trigger and a counter, the output of which is connected to the trigger input, the trigger output of the arc shaper matrix, is connected to the information input of the corresponding the element AND of the first group, the clock pulse generator, the output of which is connected to the input of the pulse distributor, are introduced the element, NOT, the group of elements AND, the group of counters, the comparison circuits and the triggers counting in Each one of which is connected to the output of the corresponding comparison circuit, the first inputs of each of which are connected to the first output of the pulse distributor, the second output of which is connected to the first inputs of the elements AND of the second group, the second inputs of which are connected to the outputs of the elements NOT whose output is connected to the outputs corresponding elements And the first group
к первым входам элементов И третьей руппы, выходы которых подключены к ходам счетчиков соответствующей троки матрицы формирователей весов уг и к первым входам элементов И етвертой групйы, вторые входы которых соединены с третьим выходом расределител импульсов, четвертый выход которого подключен к вторым входам элементов И третьей группы и к третьим входам элементов И второй группы, выходы элементов И второй и четвертой группы соединены через соответствующие счетчики с. вторыми и третьими входами соответствующих схем сравнени .to the first inputs of the elements of the third group, the outputs of which are connected to the counters moves the corresponding rows of the matrix of the formers of the scales ug and to the first inputs of the elements of the fourth group, the second inputs of which are connected to the third output of the pulse distributor, the fourth output of which is connected to the second inputs of the elements of the third group and to the third inputs of the elements And the second group, the outputs of the elements And the second and fourth groups are connected through appropriate counters with. the second and third inputs of the respective comparison circuits.
,ia чертеже представлена-структурна схема устройства., ia the drawing shows a structural diagram of the device.
Устройство содер((ит матричную моель 1 сети, распределитель 2 импульсов , генератор 3 тактовых импульсов, по числу строк и столбцов матрицы формирователи 4 весов- дуг, .включаюие счетчики 5 и триггеры-в, по чису столбцов матрицы первую группу элементов И 7, элементы НЕ 8, третью группу элементов И 9, вторую группу элементов И 10 и четвертую группу элементов И 11, группы счетчиков 12 и 13, схемы 14 сравнени и триггеры 15. The device contains ((it matrix matrix 1 network, distributor 2 pulses, generator 3 clock pulses, according to the number of rows and columns of the matrix, formers 4 weights-arcs, including counters 5 and triggers-in, according to the number of columns of the matrix, the first group of elements And 7, He elements 8, the third group of elements And 9, the second group of elements And 10 and the fourth group of elements And 11, a group of counters 12 and 13, comparison schemes 14 and triggers 15.
Модель 1 сети представл ет собой матрицу однородных чеек Формирователей весов дуг размером пхп,где пмаксимальное число узлов моделируемого графа.Model 1 of the network is a matrix of homogeneous cells of the Formers of the weights of arcs with the size of php, where max is the maximum number of nodes of the simulated graph.
Устройство работает сл едующим образом .The device works in the same way.
В исходном состо нии все триггеры 15, счетчики 12 и 13 наход тс в нулевом состо нии. Распределитель 2 подает разрешающий сигнал на управл ющий вход элемента И 10. Первоначально в модель 1 заноситс информаци о топологии моделируемого графа сети. При этом триггеры б формирователей 4, моделирующих ветви графа, устанавливаютс в единичное состо ние . Соответствующий формирователь 4 определ етс пepece Jeниeм строки с номером, равным номеру начального узла моделируемой ветви, и столбца с номером, равным номеру ее конечного узла. В счетчики 5 соответствующих формирователей 4 занос тс числа импульсов, дополн ющие длительности ветвей до полной емкости счетчиков . После занесени исходной информации на входах элементов И 7, объедин ющих выходы формирователей 4 в столбцах, соответствующих начальным узлам моделируемого графа, будут высокие потенциалы. Это объ сн етс тем, что в однонаправленном графе без циклов и петлей начальные узлы не содержат вход щих ветвей, а, следовательно , и триггеры 6 формирователей 4, наход щихс в этом столбце, будут в нулевом состо нии (элементыIn the initial state, all the triggers 15, the counters 12 and 13 are in the zero state. The distributor 2 supplies the enabling signal to the control input of the element 10. Initially, information on the topology of the simulated network graph is entered into model 1. In this case, the triggers b of the formers 4, which simulate the branches of the graph, are set to one. The corresponding shaper 4 is determined by the Line Row with the number equal to the starting node number of the simulated branch and the column with the number equal to the number of its ending node. The counters 5 of the corresponding formers 4 bring in the number of pulses, which add to the duration of the branches to the full capacity of the counters. After entering the initial information at the inputs of the And 7 elements that combine the outputs of the formers 4 in the columns corresponding to the initial nodes of the simulated graph, there will be high potentials. This is due to the fact that in a unidirectional graph without cycles and a loop, the initial nodes do not contain incoming branches, and, consequently, the triggers 6 of the formers 4 that are in this column will be in the zero state (elements
и 7 соединены.нулевыми входами триггеров 6. Определение вершин графа, образующих критический путь, осуществл етс в три этапа.and 7 are connected. by the zero inputs of the triggers 6. The determination of the vertices of the graph forming the critical path is carried out in three stages.
На первом этапе осуществл етс определение наиболее равных моментов начала свершени событий дл вершин исследуемого графа. Дл этого с по влением пускового сигнала распределитель 2 разрешает прохождение импульсов с выхода генератора 3 на входы всех элементов И 9 и 10. При этом импульсы проход т на входы тех счетчиков 5, соответствующие столбцы матрицы 1 которых моделируют веса дуг, исход щих из начальных узлов. Эти же импульсы через элементы И 10 проход т на счетчики 12 всех вершин графа , кроме начальной, так как на выходе соответствующего элемента НЕ 8- высокий потенциал.At the first stage, the determination of the most equal moments of the beginning of the occurrence of events for the vertices of the graph under study is carried out. For this, with the appearance of a trigger signal, the distributor 2 permits the passage of pulses from the output of generator 3 to the inputs of all elements 9 and 10. At the same time, the pulses pass to the inputs of those counters 5 whose corresponding columns of matrix 1 simulate the weights of arcs emanating from the initial nodes . These same pulses through the elements And 10 pass to the counters 12 of all the vertices of the graph, except the initial one, since the output of the corresponding element is NOT 8 - a high potential.
Отсчитав число импульсов, пропорциональное весу моделируемой дуги, счетчик 5 одного из формирователей переполн етс , устанавливает в нулевое состо ние соответствуюший триггер б, и на вход соответствуюгцего элемента И 7 поступает разрешение с нулевого- выхода этого триггера. Если на остальных входах этого элемента И 7 - разрешающие потенциалы, то на его выходе по вл етс разрешающий синал . Это свидетельствует о том, что веса дуг, вход щих в узел, номер которого соответствует номеру столбца формирователей 4, объединенных этим элементом И -1, сформированы. При этом формируетс разрешение, поступлени импульсов на входы счетчиков 5 формирователей 4, моделирующих ветви графа, исход щих из сформированного узла. Одновременно с этим на вход элемента столбца подаетс высокий потенциал, а с его выхода - низкий , следовательно, подача импульсов на вход счетчика 12 через элемент И 10 прекращаетс и на выходе счетчика 12 зафиксируетс врем наиболее раннего момента начала свершени событи дл данной вершины исследуемого графа. Вычислительный процесс продолжаетс до тех пор, пока на входах всех элементов И 7 не будут присутствовать высокие потенциошы. Это свидетельствует о том, что все узлы исслеjjyeMoro графа сформированы. Распределитель 2 при этом прекращает подачу импульсов на входы элементов И 9 и 10. Число импульсов, зафиксированное насчетчиках 12, соответствует моментам наиболее раннего начала свершени событий. На этомпервый этап работы предлагаемого устройства заканчиваетс . /By counting the number of pulses proportional to the weight of the simulated arc, the counter 5 of one of the formers overflows, sets the corresponding trigger b to the zero state, and the input from the zero output of this trigger enters the input of the corresponding element And 7. If at the other inputs of this element AND 7 are the resolving potentials, then the resolving signal appears at its output. This indicates that the weights of the arcs included in the node, whose number corresponds to the column number of the drivers 4, united by this element AND -1, are formed. In this case, the resolution is formed, the pulses arriving at the inputs of the counters 5 of the formers 4, which simulate the branches of the graph, coming from the formed node. At the same time, a high potential is supplied to the input of the column element and low from its output, therefore, the supply of pulses to the input of counter 12 through the element 10 stops and the time of the earliest start of the event for the given graph is fixed at the output of counter 12. The computational process continues until high potentials are present at the inputs of all And 7 elements. This indicates that all the nodes in the study of the graph are formed. The distributor 2 at the same time stops the supply of pulses to the inputs of elements And 9 and 10. The number of pulses recorded at the meter 12, corresponds to the moments of the earliest onset of the events. At this point, the first stage of operation of the proposed device ends. /
На втором этапе осуществл етс определение наибблее поздних моментов начала свершени событий дл всех вершин исследуемого графа. Дл этого распределителем 2 осуществл етс восстановление информации о топологии моделируемого графа сети, при этом исходный граф заноситс в матричную модель сети в инверсном пор дке , т.е. матрица смежности заносимого графа транспонирована относительно неглавной диагонали.At the second stage, the determination of the most late moments of the beginning of the accomplishment of events for all vertices of the graph under study is carried out. For this, the distributor 2 recovers the information about the topology of the simulated network graph, and the initial graph is entered into the matrix network model in inverse order, i.e. adjacency matrix of the entered graph is transposed relative to the non-principal diagonal.
С по влением пускового сигнала распределитель 2 разрешает прохождение импульсов с выхода генератора 3 на входы всех элементов И 9 и далее на входы элементов И 11 соответствующего столбца и счетчиков 5 одноименной строки матрицы. Кроме этого распределитель 2 подает разрешающий сигнал на управл емый вход элементов И 11,поэтому импульсы далее поступают на счетные входы счетчиков 13. Отсчитав число импульсов, пропорциональное весу моделируемой дуги , счетчик 5 одного из формирователей переполн етс , и на вход соответствующего элемента И 7 поступает разрешающий сигнал с этого триггера. Если на остальных входах элемента И 7 - разрешающие потенциалы, то на выходе элемента И9 по вл ютс импульсные сигналы, которые поступают на счетчики 5 одноименной строки матрицы и через элементы И 11 на счетчики 13 и т.д. Вычислительный процес на втором этапе продолжаетс до тех пор, пока на выходах всех элементов И 7 не будут присутствовать высокие потенциалы.With the appearance of the trigger signal, the distributor 2 permits the passage of pulses from the output of the generator 3 to the inputs of all elements AND 9 and further to the inputs of elements AND 11 of the corresponding column and counters 5 of the same row of the matrix. In addition, the distributor 2 delivers the enabling signal to the controlled input of the And 11 elements, so the pulses then go to the counting inputs of counters 13. Having counted the number of pulses proportional to the weight of the simulated arc, the counter 5 of one of the formers overflows and the input of the corresponding And 7 element enters enable signal from this trigger. If at the remaining inputs of the And 7 element there are resolving potentials, then at the output of the I9 element there appear pulsed signals, which are fed to the counters 5 of the same row of the matrix and through the elements 11 to the counters 13, etc. The computational process at the second stage continues until the high potentials are present at the outputs of all elements And 7.
Третий этап работы устройства заключаетс в сравнении показаний счетчиков 12 и.13, соответствующих наиболее ранним и наиболее поздним моментам свершени событий, путем подачи распределителем 2 управл ющего сигнала на схемы 14 сравнени . С выхода схем 14 сигнал сравнени перебрасывает триггеры 15 в единичное состо ние. Единичные состо ни триггеров 15- соответствуют вершинам графа, образующих максимальный критический путь.The third stage of operation of the device consists in comparing the readings of the counters 12 and 13, corresponding to the earliest and latest events, by applying the control signal to the comparison circuits 14 by the distributor 2. From the output of the circuits 14, the comparison signal transfers the triggers 15 to a single state. The unit states of the triggers 15- correspond to the vertices of the graph forming the maximum critical path.
Из-за введенных блоков и св зей между ними повышаетс точность моделировани .Because of the blocks introduced and the connections between them, the accuracy of the simulation is improved.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU782683352A SU798854A1 (en) | 1978-09-01 | 1978-09-01 | Device for simulating network graphs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU782683352A SU798854A1 (en) | 1978-09-01 | 1978-09-01 | Device for simulating network graphs |
Publications (1)
Publication Number | Publication Date |
---|---|
SU798854A1 true SU798854A1 (en) | 1981-01-23 |
Family
ID=20793093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU782683352A SU798854A1 (en) | 1978-09-01 | 1978-09-01 | Device for simulating network graphs |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU798854A1 (en) |
-
1978
- 1978-09-01 SU SU782683352A patent/SU798854A1/en active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU798854A1 (en) | Device for simulating network graphs | |
SU744592A2 (en) | Device for determining maximum paths values in graphs | |
SU640314A1 (en) | Arrangement for determining extremum paths in graphs | |
SU491132A1 (en) | Device for determining maximum values of paths in columns | |
SU959090A1 (en) | Device for simulating network graphes | |
SU862145A1 (en) | Device for determination maximum paths in graphs | |
SU1285487A1 (en) | Device for determing maximal routes in graphs | |
SU1001101A1 (en) | Device for distributing tasks for processors | |
SU525954A1 (en) | Device for determining the shortest path in the graph | |
SU1376096A2 (en) | Device for simulating network graphs | |
SU716043A1 (en) | Device for simulating network graphs | |
SU732898A1 (en) | Device for modelling graphs | |
SU1383386A1 (en) | Device for determining maximum forward paths of graph | |
SU842842A1 (en) | Device for determining the shortest path in graph | |
SU921059A1 (en) | Random number generator | |
SU1376097A1 (en) | Device for simulating network graphs | |
SU750503A1 (en) | Computing device for solving problems of planning | |
SU951319A1 (en) | Device for bypassing grid area | |
SU682910A1 (en) | Apparatus for modelling neuron | |
SU468259A1 (en) | Network Simulator | |
SU1075268A1 (en) | Device for simulating network graphs | |
SU1182538A1 (en) | Device for simulating network graphs | |
SU501403A1 (en) | Device for modeling random event stream | |
SU881758A1 (en) | Device for simulating storehouse stock | |
SU955035A1 (en) | Computing device |