Mega-Merger
Mega-Merger is an encyclopedia record, sourced from en.wikipedia.org, last updated 2025-09-29, source revision https://en.wikipedia.org/w/index.php?oldid=1314135807. Mega-merger is a distributed algorithm aimed at solving the election problem in generic connected undirected graph. Friendly merge: rank(C) = rank(C') \land e_{merge (C, C') = e_{merge (C', C) : If the cities share the same merge link and have same rank, a friendly merge occurs, and the two cities merge into one. A new name is picked for the newly created city, a ruling village is picked and the path from the previous ruler to the node in the merge link is re-oriented such that it leads to the new leader. The new city also has its rank increased by one. Notice as this is the only way two cities can increase each other's rank. Absorption: rank(C) : If the requesting city has a lower rank... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
Mega-merger is a distributed algorithm aimed at solving the election problem in generic connected undirected graph. Friendly merge: rank(C) = rank(C') \land e_{merge}(C, C') = e_{merge}(C', C) : If the cities share the same merge link and have same rank, a friendly merge occurs, and the two cities merge into one. A new name is picked for the newly created city, a ruling village is picked and the path from the previous ruler to the node in the merge link is re-oriented such that it leads to the new leader. The new city also has its rank increased by one. Notice as this is the only way two cities can increase each other's rank. Absorption: rank(C) : If the requesting city has a lower rank, the city in the receiving end enacts an absorption process: C is absorbed like in the friendly merge, but loses its name and the resulting city has the rank of C' . Suspension: rank(C) = rank(C') \land e_{merge}(C, C') \neq e_{merge}(C', C) \lor rank(C) > rank(C') : In such cases C' freezes the request: it waits to either be absorbed by rule 2 or to merge and increase its rank above the one of C in order to be able to enact rule 1 and absorb C . x.city = y.city : clearly the edge is an intra-edge in C . x and y exchange negative responses. x.city \neq y.city \land x.rank : x is asking to a city of higher rank. By rule 2 we can assert that no absorption occurs, and y indeed belongs to another city. x.city \neq y.city \land x.rank > y.rank : in this case y will delay the answer as by rule 3. rank(C) = K \implies |C| \geq 2^k : we have a level increase each time a friendly merge is operated. We compute by induction: on the base case, rank(C) = 0 , exactly one village is in C . On the inductive case, two cities C', C s.t. rank(C') = rank(C) = k operate a friendly merge, hence |C'-C| = |C'| + |C| = 2^k + 2^k = 2^{k+1} by inductive hypothesis. \max{rank(C)} \leq \log n : by the previous rule cities are built up on an exponential base 2 , hence the inverse \log_{2} n . Deadlock prevention: Mega-Merger doesn't incur in any deadlock. As shown by rule 3 a city C can wait for a lower-rank city to answer on merge link e : in order to incur in a deadlock such city C' would have to wait on C , and C on C , and so on until a cycle is detected on C^n waiting on C on a merge link e' . But by hypothesis e is the merge-link of C , hence such chain cannot exist. The other deadlock-inducing situation is a request from C to C' where C' has a different merge link than C . Still, as shown by monotonic rank either C' will grow its rank to absorb C , or will consume all its merge links to be the only city in the graph with C . Trivially in such case the two merge links would coincide and C' would be forced into absorption by rule 2.
Cite this
"Mega-Merger". 1759177587. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1314135807 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy