Prikladnaya Diskretnaya Matematika
RUS  ENG    JOURNALS   PEOPLE   ORGANISATIONS   CONFERENCES   SEMINARS   VIDEO LIBRARY   PACKAGE AMSBIB  
General information
Latest issue
Archive
Impact factor

Search papers
Search references

RSS
Latest issue
Current issues
Archive issues
What is RSS



Prikl. Diskr. Mat.:
Year:
Volume:
Issue:
Page:
Find






Personal entry:
Login:
Password:
Save password
Enter
Forgotten password?
Register


Prikladnaya Diskretnaya Matematika, 2019, Number 46, Pages 58–71
DOI: https://doi.org/10.17223/20710410/46/5
(Mi pdm684)
 

This article is cited in 1 scientific paper (total in 1 paper)

Mathematical Backgrounds of Informatics and Programming

Associative parallel algorithm for dynamic update of shortest paths tree after inserting an arc

A. Sh. Nepomniaschaya, T. V. Snytnikova

The Institute of Computational Mathematics and Mathematical Geophysics SB RAS, Novosibirsk, Russia
Full-text PDF (783 kB) Citations (1)
References:
Abstract: The paper proposes an associative parallel algorithm for dynamic update of the shortest paths tree after inserting an arc into a directed weighted graph. First we shortly recall the STAR-machine that simulates the functioning of associative parallel processors. The associative parallel algorithm is given as a procedure InsertArcSPT, correctness of which is proved. Now we give a short description of the associative incremental algorithm. Let the arc $ (i, j) $ be added to the graph $ G $. Then we check whether the shortest distance from the root to the vertex $ j $ decreases if the shortest path to the vertex $ j $ includes the arc $ (i, j) $. If this is true, then the vertex $ j $ becomes affected and the new shortest distance to this vertex is written in the matrix of the shortest distances. Then we replace the previous arc in the tree with the arc $ (i, j) $. After that, we calculate the distance to those vertexes $v$ for which there is an arc $ (j, v)$. Then the all vertexes the distances to which decrease become affected. After that, the new distances are written in the corresponding rows of the shortest distance matrix. Moreover the corresponding arcs are included in the shortest paths tree. We have shown that the time complexity of this procedure is O$(hk)$, while the time complexity of a static associative version of Dijkstra algorithm is O$(hn)$. Here $h$ is the number of bits for coding the maximum of the shortest paths length, $n$ is the number of all graph vertexes and $k$ is the number of affected vertexes for which the new distances are computed. This procedure was tested on the NVIDIA GEFORCE 920M using the implementation of STAR-machine on the GPU. Performance was evaluated on R-MAT graphs which simulate real graphs from social networks and the Internet. Graphs were generated by the GraphHPC-1.0 package with the following parameters: the number of vertexes is defined by a power of two (from $11$ to $13$), the average degree of vertexes connectivity is $32$. We use two modes: zero weighting arcs are added (pessimistic mode) and arcs with random weight are added (realistic mode). In the experiments, we take into account as the runtime of the procedure and the number of affected vertexes. For each test, $ \approx 10 \% \, n $ runs were performed. After that, the runs were distributed by the number of affected vertexes. The shortest paths and distances do not change in most runs (more than $ 50\, \% $ in the case of the pessimistic mode and more than $ 88\, \% $ in the case of the realistic mode). In $ 99\, \% $ cases, the number of affected vertexes does not exceed $ 5 $ in the first mode and $ 2 $ in the second mode. Note that the associative algorithm traverses the graph along the vertexes (outgoing arcs are processed in parallel). While in the sequential version, the graph is traversed along arcs, and the number of arcs that need to be checked can go up to $ 2000 $ and $ 100 $ accordingly. Also we note that in average the dynamic version runs about $500$ times faster in the pessimistic mode and about $1000$ times faster in the realistic mode than the static parallel version of Dijkstra's algorithm.
Keywords: oriented weighted graph, adjacency matrix, incremental algorithm, affected vertex, vertical data processing, associative parallel processor.
Bibliographic databases:
Document Type: Article
UDC: 591.68
Language: Russian
Citation: A. Sh. Nepomniaschaya, T. V. Snytnikova, “Associative parallel algorithm for dynamic update of shortest paths tree after inserting an arc”, Prikl. Diskr. Mat., 2019, no. 46, 58–71
Citation in format AMSBIB
\Bibitem{NepSny19}
\by A.~Sh.~Nepomniaschaya, T.~V.~Snytnikova
\paper Associative parallel algorithm for dynamic update of~shortest paths tree after inserting an arc
\jour Prikl. Diskr. Mat.
\yr 2019
\issue 46
\pages 58--71
\mathnet{http://mi.mathnet.ru/pdm684}
\crossref{https://doi.org/10.17223/20710410/46/5}
Linking options:
  • https://www.mathnet.ru/eng/pdm684
  • https://www.mathnet.ru/eng/pdm/y2019/i4/p58
  • This publication is cited in the following 1 articles:
    Citing articles in Google Scholar: Russian citations, English citations
    Related articles in Google Scholar: Russian articles, English articles
    Прикладная дискретная математика
     
      Contact us:
     Terms of Use  Registration to the website  Logotypes © Steklov Mathematical Institute RAS, 2024