encyclopegia.org

Dijkstra–Scholten algorithm

The Dijkstra–Scholten algorithm (named after Edsger W.[src] Dijkstra and Carel S.[src] Scholten) is an algorithm for detecting termination in a distributed system.[src] The algorithm was proposed by Dijkstra and Scholten in 1980.[src] First, consider the case of a simple process graph which is a tree.[src] A distributed computation which is tree-structured is not uncommon.[src] Such a process graph may arise when the computation is strictly a divide-and-conquer type.[src] A node starts the computation and divides the problem in two (or more usually, a multiple of 2) roughly equal parts and distribute those parts to other processors.[src] This process continues recursively until the problems are of sufficiently small size to solve in a single processor.[src]

The Dijkstra–Scholten algorithm (named after Edsger W.[src] Dijkstra and Carel S.[src] Scholten) is an algorithm for detecting termination in a distributed system.[src] The algorithm was proposed by Dijkstra and Scholten in 1980.[src] First, consider the case of a simple process graph which is a tree.[src] A distributed computation which is tree-structured is not uncommon.[src] Such a process graph may arise when the computation is strictly a divide-and-conquer type.[src] A node starts the computation and divides the problem in two (or more usually, a multiple of 2) roughly equal parts and distribute those parts to other processors.[src] This process continues recursively until the problems are of sufficiently small size to solve in a single processor.[src] ==Algorithm== The Dijkstra–Scholten algorithm is a tree-based algorithm which can be described by the following: The initiator of a computation is the root of the tree.[src] Upon receiving a computational message: If the receiving process is currently not in the computation: the process joins the tree by becoming a child of the sender of the message.[src] (No acknowledgment message is sent at this point.) If the receiving process is already in the computation: the process immediately sends an acknowledgment message to the sender of the message.[src] When a process has no more children and has become idle, the process detaches itself from the tree by sending an acknowledgment message to its tree parent.[src] Termination occurs when the initiator has no children and has become idle.[src] ==Dijkstra–Scholten algorithm for a tree== For a tree, it is easy to detect termination.[src] When a leaf process determines that it has terminated, it sends a signal to its parent.[src] In general, a process waits for all its children to send signals and then it sends a signal to its parent.[src] The program terminates when the root receives signals from all its children.[src] ==Dijkstra–Scholten algorithm for directed acyclic graphs== The algorithm for a tree can be extended to acyclic directed graphs.[src] We add an additional integer attribute Deficit to each edge.[src] On an incoming edge, Deficit will denote the difference between the number of messages received and the number of signals sent in reply.[src] When a node wishes to terminate, it waits until it has received signals from outgoing edges reducing their deficits to zero.[src] Then it sends enough signals to ensure that the deficit is zero on each incoming edge.[src] Since the graph is acyclic, some nodes will have no outgoing edges and these nodes will be the first to terminate after sending enough signals to their incoming edges.[src] After that the nodes at higher levels will terminate level by level.[src] ==Dijkstra–Scholten algorithm for cyclic directed graphs== If cycles are allowed, the previous algorithm does not work.[src] This is because, there may not be any node with zero outgoing edges.[src] So, potentially there is no node which can terminate without consulting other nodes.[src] The Dijkstra–Scholten algorithm solves this problem by implicitly creating a spanning tree of the graph.[src] A spanning-tree is a tree which includes each node of the underlying graph once and the edge-set is a subset of the original set of edges.[src] The tree will be directed (i.e., the channels will be directed) with the source node (which initiates the computation) as the root.[src] The spanning-tree is created in the following way.[src] A variable First_Edge is added to each node.[src] When a node receives a message for the first time, it initializes First_Edge with the edge through which it received the message.[src] First_Edge is never changed afterwards.[src] Note that, the spanning tree is not unique and it depends on the order of messages in the system.[src] Termination is handled by each node in three steps : Send signals on all incoming edges except the first edge.[src] (Each node will send signals which reduces the deficit on each incoming edge to zero.) Wait for signals from all outgoing edges.[src] (The number of signals received on each outgoing edge should reduce each of their deficits to zero.) Send signals on First_Edge.[src] (Once steps 1 and 2 are complete, a node informs its parent in the spanning tree about its intention of terminating.) ==See also== Huang's algorithm ==References==[src]

49 sentences · 49 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Dijkstra–Scholten algorithm." encyclopegia.org, 2026, https://encyclopegia.org/wiki/dijkstra-scholten-algorithm. Accessed 01 December 2026.

Chicago

"Dijkstra–Scholten algorithm." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/dijkstra-scholten-algorithm.

APA

encyclopegia.org. (2026). Dijkstra–Scholten algorithm. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/dijkstra-scholten-algorithm

Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

μ-law algorithm

stub · references available

bitap algorithm

stub · references available

QR algorithm

stub · references available

Prim's algorithm

stub · references available

greedy algorithm

stub · references available

Apriori algorithm

stub · references available

Baum–Welch algorithm

stub · references available

Glushkov's construction algorithm

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1353561558 · 0.5 · snapshot enwiki-001353561558

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.