encyclopegia.org

Huang's algorithm

Huang's algorithm is an algorithm for detecting termination in a distributed system.[src] The algorithm was proposed by Shing-Tsaan Huang in 1989 in Information Processing Letters.[src]

Huang's algorithm is an algorithm for detecting termination in a distributed system.[src] The algorithm was proposed by Shing-Tsaan Huang in 1989 in Information Processing Letters.[src] ==Termination detection== The basis of termination detection is in the concept of a distributed system process' state.[src] At any time, a process in a distributed system is either in an active state or in an idle state.[src] An active process may become idle at any time but an idle process may only become active again upon receiving a computational message.[src] Termination occurs when all processes in the distributed system become idle and there are no computational messages in transit.[src] ==Algorithm== Huang's algorithm can be described by the following: Initially all processes are idle.[src] A distributed task is started by a process sending a computational message to another process.[src] This initial process to send the message is the "controlling agent".[src] The initial weight of the controlling agent is w (usually 1).[src] The following rules are applied throughout the computation: A process sending a message splits its current weight between itself and the message.[src] A process receiving a message adds the weight of the message to itself.[src] Upon becoming idle, a process sends a message containing its entire weight back to the controlling agent and it goes idle.[src] Termination occurs when the controlling agent has a weight of w and is in the idle state.[src] Some weaknesses to Huang's algorithm are that it is unable to detect termination if a message is lost in transit or if a process fails while in an active state.[src] ==See also== Dijkstra–Scholten algorithm ==Notes==[src]

18 sentences · 18 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Huang's algorithm." encyclopegia.org, 2025, https://encyclopegia.org/wiki/huang-s-algorithm. Accessed 01 December 2026.

Chicago

"Huang's algorithm." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/huang-s-algorithm.

APA

encyclopegia.org. (2025). Huang's algorithm. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/huang-s-algorithm

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

Related articles

μ-law algorithm

stub · references available

Huang Xuechen

stub · references available

bitap algorithm

stub · references available

QR algorithm

stub · references available

Xu Huang

stub · references available

Prim's algorithm

stub · references available

Huang Bowen

stub · references available

greedy algorithm

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

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.