• Home
  • About Us
  • Contact Us
  • Affiliate Disclosure
  • Disclaimer
  • Privacy & Terms
Viralfeed
ADVERTISEMENT
  • Home
  • NewsNews
  • Business
  • World Wide
  • Jobs & Vacancies
  • Science & Tech
  • Digital
    • Digital Marketing
    • Earn Money Online
    • Gadgets
    • Apps
    • Software
    • Websites
  • Entertainment
    • Gaming
    • OTT
    • Movie
    • Music
    • Sports
    • Celebrities
    • Jokes & Quotes
  • MoreAll
    • Finance
    • Biography
    • Automobile
    • GK Facts
    • Religious & Astro
    • Event, Festival & Holiday
    • Health & Fitness
    • Food & Recipe
    • Pet Care
    • Home & Garden
    • Lifestyle & Fashion
    • Travel
    • Success Story
    • Government Schemes
    • Arts & Crafts
    • Agriculture & Farming
    • Education & Career
    • Biography
    • Agriculture & Farming
    • Automobile
    • Finance
    • GK Facts
    • Religious & Astro
    • Success Story
    • Government Schemes
    • Health & Fitness
    • Food & Recipe
    • Home & Garden
    • Pet Care
    • Lifestyle & Fashion
    • Travel
    • Arts & Crafts
    • Education & Career
  • Best BuyShop
    • Products Reviews
    • Coupons & Offers
    • Deals of the dayHot
No Result
View All Result
  • Home
  • NewsNews
  • Business
  • World Wide
  • Jobs & Vacancies
  • Science & Tech
  • Digital
    • Digital Marketing
    • Earn Money Online
    • Gadgets
    • Apps
    • Software
    • Websites
  • Entertainment
    • Gaming
    • OTT
    • Movie
    • Music
    • Sports
    • Celebrities
    • Jokes & Quotes
  • MoreAll
    • Finance
    • Biography
    • Automobile
    • GK Facts
    • Religious & Astro
    • Event, Festival & Holiday
    • Health & Fitness
    • Food & Recipe
    • Pet Care
    • Home & Garden
    • Lifestyle & Fashion
    • Travel
    • Success Story
    • Government Schemes
    • Arts & Crafts
    • Agriculture & Farming
    • Education & Career
    • Biography
    • Agriculture & Farming
    • Automobile
    • Finance
    • GK Facts
    • Religious & Astro
    • Success Story
    • Government Schemes
    • Health & Fitness
    • Food & Recipe
    • Home & Garden
    • Pet Care
    • Lifestyle & Fashion
    • Travel
    • Arts & Crafts
    • Education & Career
  • Best BuyShop
    • Products Reviews
    • Coupons & Offers
    • Deals of the dayHot
No Result
View All Result
Viralfeed netkosh
No Result
View All Result
ADVERTISEMENT
ADVERTISEMENT
Home News Software

वितरित प्रणालियों में न्यूनतम स्पैनिंग ट्री: गैलेजर-हम्बलेट-स्पिरा (GHS) एल्गोरिदम

Netkosh by Netkosh
December 20, 2024
in Software
0
वितरित प्रणालियों में न्यूनतम स्पैनिंग ट्री: गैलेजर-हम्बलेट-स्पिरा (GHS) एल्गोरिदम
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

 

ADVERTISEMENT

Table of Contents

  • Minimum Spanning Tree in Distributed Systems: Gallager-Humblet-Spira (GHS) Algorithm
    • Overview of the GHS Algorithm
    • Distributed Setup
    • Key Strategies and GHS Algorithm

Minimum Spanning Tree in Distributed Systems: Gallager-Humblet-Spira (GHS) Algorithm

Distributed systems can be highly complex due to the extensive communication and interaction between server nodes, leading to potential failures within the subsystems. Consider a scenario where a node needs to broadcast a message across a distributed network efficiently. This is where the concept of a Minimum Spanning Tree (MST) becomes crucial.

An MST is a subset of the edges of a connected, weighted, undirected graph that satisfies the following properties:

  • Number of edges: An MST contains exactly V-1 edges, where V is the number of vertices in the graph.

  • Unique MST: If all the edge weights in the graph are distinct, then there is a unique MST. Otherwise, multiple valid MSTs may exist with the same total weight.

In distributed systems, MSTs can significantly enhance efficiency, throughput, and minimize latency for message transmissions. The Gallager-Humblet-Spira (GHS) algorithm is a specialized distributed MST algorithm that achieves these goals.

Overview of the GHS Algorithm

The GHS algorithm is designed to construct an MST for a connected, weighted, undirected graph in a distributed setting. This algorithm is particularly useful when nodes operate as independent entities within a distributed system, communicating through messages along the edges of the graph.

Nodes in the graph: Machines/servers communicating with each other.

Edges in the graph: Communication links.

Edge weights: The cost associated with transmitting data across the communication lines.

To achieve efficient message broadcasting, we need to cover all nodes in the network with edges such that the overall cost is minimized.

Distributed Setup

In a distributed computing environment, no single node will have complete topological information. Instead, each node only knows the weights of its adjacent edges and can maintain information about these weights.

Problem Statement: Identify the minimum-weight spanning tree for the entire network so that each node can determine which of its adjacent edges are part of the spanning tree.

Key Strategies and GHS Algorithm

Core Concepts of the GHS Algorithm:

  1. Fragments: Initially, each node forms its own fragment (a subtree with a single node). These fragments are merged iteratively to form larger fragments until a single MST is obtained.

  2. Minimum Weight Edge (MWE): Each fragment identifies its minimum outgoing edge (MWE), the edge with the smallest weight connecting it to another fragment.

  3. Levels: Fragments have levels. Initially, all fragments are at level 0. Merging two fragments increases their level.

  4. Leader: Each fragment has a leader node responsible for managing and coordinating the merging process.

  5. Message Notation: Nodes communicate using specific message types such as INIT, MERGE, FIND, REPORT, CONNECT.

  6. Termination: The algorithm terminates when all nodes are part of a single fragment spanning the entire graph.

Steps of the GHS Algorithm:

  1. Initialization: Each node starts as its own fragment and acts as its own leader. Nodes identify the minimum outgoing edge (MWE) among their neighbors.

  2. Finding MWE: Each fragment identifies its MWE and exchanges FIND and REPORT messages among the nodes within the fragment.

  3. Merging Fragments: Fragments are merged through their MWEs. When two fragments of the same level merge, the new fragment’s level increases. If levels differ, the merged fragment adopts the higher level.

  4. Repeat Until MST is Formed: The process of finding MWEs and merging fragments repeats until all nodes belong to a single fragment.

Scenario: GHS in a Distributed Environment (Data Center)

Data Center Setup: A data center consists of servers represented as nodes in the graph, with communication links between servers having weights representing data transmission costs.

Objective: Construct an MST using the GHS algorithm to minimize the overall communication cost.

Example: Consider 6 servers connected as follows (S1, S2, S3, S4, S5, S6).

Initial Graph:

 
        10
S1 ------- S2
|          |
15         5
|          |
S3         S4
|          |
20         10
|          |
S5 ------- S6
30

Using the GHS Algorithm:

  1. Initialization: Each server (S1, S2, …, S6) initializes its fragment: Fragment ID = Server ID, Level = 0, State = NULL.

  2. Identify MWE: Each server identifies the minimum cost link connecting it to another fragment. S1: MWE = (S1-S2: 10), S2: MWE = (S2-S4: 5), etc.

  3. Merge Fragments: Fragments merge through their MWEs. S1 and S2 merge through edge (S1-S2: 10), forming a new fragment (S1, S2). Similarly, S2 and S4 merge through edge (S


Source Link: medium.com

Source: medium.com

Via: medium.com

Get real time update about this post categories directly on your device, subscribe now.

Unsubscribe
ADVERTISEMENT
Previous Post

Philips Avent Natural Baby Feeding Bottle | No.1 Brand Recommended by Moms Worldwide | Ideal for 0 months+| Natural Response Technology Mimics Breastfeeding | Uniquely Designed Nipple releases milk only when baby drinks | Pack of 1 | SCY900/01

Next Post

ओमेगा सेंटॉरी में ‘लापता कड़ी’ ब्लैक होल वास्तव में अस्तित्व में है?

Netkosh

Netkosh

Related Posts

The Secret Recipe for Safe Database Changes: Apply, Rollback, and Verify
Software

The Secret Recipe for Safe Database Changes: Apply, Rollback, and Verify

February 27, 2025
Addressing Intricate Challenges in Legacy Code through the Application of SOLID Principles in Java and Kotlin.
Software

Addressing Intricate Challenges in Legacy Code through the Application of SOLID Principles in Java and Kotlin.

January 31, 2025
Optimizing Platforms with Advanced High-Performance Networking Technologies.
Software

Optimizing Platforms with Advanced High-Performance Networking Technologies.

January 16, 2025
The Role of AI in Enhancing Code Quality for Developers
Software

The Role of AI in Enhancing Code Quality for Developers

January 15, 2025
“मास्टरकॉइन से डिजीएसेट्स तक: डिजिटल एसेट प्रोटोकॉल का विकास
Software

“मास्टरकॉइन से डिजीएसेट्स तक: डिजिटल एसेट प्रोटोकॉल का विकास

January 13, 2025
🏮 क्यों प्रत्येक जावास्क्रिप्ट डेवलपर इस प्रभावशाली ऑपरेटर से मोहित हो रहे हैं 🍂
Software

🏮 क्यों प्रत्येक जावास्क्रिप्ट डेवलपर इस प्रभावशाली ऑपरेटर से मोहित हो रहे हैं 🍂

January 10, 2025
पायथन के बढ़ते प्रभाव के साथ एनालिटिक्स में डेटा की व्याख्या की गई।
Software

पायथन के बढ़ते प्रभाव के साथ एनालिटिक्स में डेटा की व्याख्या की गई।

December 27, 2024
ड्रूपा के लिए संपूर्ण मार्गदर्शिका
Software

ड्रूपा के लिए संपूर्ण मार्गदर्शिका

December 25, 2024
अस्थायी हानि संरक्षण का स्वागत करें!!!
Software

अस्थायी हानि संरक्षण का स्वागत करें!!!

December 25, 2024
स्पंदन में किसी छवि या विजेट के आयामों के बीच संबंध को नियंत्रित करें
Software

स्पंदन में किसी छवि या विजेट के आयामों के बीच संबंध को नियंत्रित करें

December 18, 2024
Next Post
ओमेगा सेंटॉरी में ‘लापता कड़ी’ ब्लैक होल वास्तव में अस्तित्व में है?

ओमेगा सेंटॉरी में 'लापता कड़ी' ब्लैक होल वास्तव में अस्तित्व में है?

Stay Connected test

  • 23.9k Followers
  • 99 Subscribers
  • Trending
  • Comments
  • Latest
हेल्थ इंश्योरेंस: चुनते समय किन महत्वपूर्ण बिंदुओं पर ध्यान दें, जानें यहां

हेल्थ इंश्योरेंस: चुनते समय किन महत्वपूर्ण बिंदुओं पर ध्यान दें, जानें यहां

December 12, 2024
6.49 लाख की गाड़ी के सामने हुई Scorpio, Fortuner फेल, बिकें 17000 unit, आप भी जानिए इस गाड़ी के बारे में

6.49 लाख की गाड़ी के सामने हुई Scorpio, Fortuner फेल, बिकें 17000 unit, आप भी जानिए इस गाड़ी के बारे में

December 5, 2024
एलन मस्क की नेटवर्थ 348 बिलियन डॉलर के पार, फिर बने दुनिया के सबसे अमीर शख्स

एलन मस्क की नेटवर्थ 348 बिलियन डॉलर के पार, फिर बने दुनिया के सबसे अमीर शख्स

December 5, 2024
Gold Price: सोने की कीमत रिकॉर्ड हाई से सिर्फ 1850 रुपये दूर, आगे भाव बढ़ेंगे या घटेंगे-जानें

Gold Price: सोने की कीमत रिकॉर्ड हाई से सिर्फ 1850 रुपये दूर, आगे भाव बढ़ेंगे या घटेंगे-जानें

December 5, 2024
ओला इलेक्ट्रिक स्कूटर डीलरशिप सम्पूर्ण जानकारी  |

ओला इलेक्ट्रिक स्कूटर डीलरशिप सम्पूर्ण जानकारी |

Ola Electric Scooter Dealership Complete Details.

Ola Electric Scooter Dealership Complete Details.

Ola Electric Scooter

Ola Electric Scooter

Et tempore illo beatae debitis

Et tempore illo beatae debitis

amazon basics TWS in-Ear Earbuds (P50) with Fast Charging up to 50 Hours of Playtime | Dual 10mm Driver | IPX4 Water-Resistance | Bluetooth 5.3 | Quad Mic with ENC | Touch Control (White)

amazon basics TWS in-Ear Earbuds (P50) with Fast Charging up to 50 Hours of Playtime | Dual 10mm Driver | IPX4 Water-Resistance | Bluetooth 5.3 | Quad Mic with ENC | Touch Control (White)

June 28, 2025
amazon basics Metal Compact Portable Tyre Inflator |12V |150 PSI |Digital Tyre Inflator with Carrying Case

amazon basics Metal Compact Portable Tyre Inflator |12V |150 PSI |Digital Tyre Inflator with Carrying Case

June 28, 2025
DREAMLET Premium Cotton Elastic Fitted Bedsheets with 2 Full Size Pillow Covers Supersoft Double Bedsheet with All Around Elastic 160TC Size 90×100 inches (Brown Floral, Fitted)

DREAMLET Premium Cotton Elastic Fitted Bedsheets with 2 Full Size Pillow Covers Supersoft Double Bedsheet with All Around Elastic 160TC Size 90×100 inches (Brown Floral, Fitted)

June 28, 2025
Ex andscientist ने 1.75 Cr Moringa साम्राज्य का निर्माण किया और 1,000+ अप किसानों को सशक्त बनाया

Ex andscientist ने 1.75 Cr Moringa साम्राज्य का निर्माण किया और 1,000+ अप किसानों को सशक्त बनाया

June 27, 2025

Recent News

amazon basics TWS in-Ear Earbuds (P50) with Fast Charging up to 50 Hours of Playtime | Dual 10mm Driver | IPX4 Water-Resistance | Bluetooth 5.3 | Quad Mic with ENC | Touch Control (White)

amazon basics TWS in-Ear Earbuds (P50) with Fast Charging up to 50 Hours of Playtime | Dual 10mm Driver | IPX4 Water-Resistance | Bluetooth 5.3 | Quad Mic with ENC | Touch Control (White)

June 28, 2025
amazon basics Metal Compact Portable Tyre Inflator |12V |150 PSI |Digital Tyre Inflator with Carrying Case

amazon basics Metal Compact Portable Tyre Inflator |12V |150 PSI |Digital Tyre Inflator with Carrying Case

June 28, 2025
DREAMLET Premium Cotton Elastic Fitted Bedsheets with 2 Full Size Pillow Covers Supersoft Double Bedsheet with All Around Elastic 160TC Size 90×100 inches (Brown Floral, Fitted)

DREAMLET Premium Cotton Elastic Fitted Bedsheets with 2 Full Size Pillow Covers Supersoft Double Bedsheet with All Around Elastic 160TC Size 90×100 inches (Brown Floral, Fitted)

June 28, 2025
Ex andscientist ने 1.75 Cr Moringa साम्राज्य का निर्माण किया और 1,000+ अप किसानों को सशक्त बनाया

Ex andscientist ने 1.75 Cr Moringa साम्राज्य का निर्माण किया और 1,000+ अप किसानों को सशक्त बनाया

June 27, 2025
ADVERTISEMENT
Viralfeed.netkosh.com

Our mission is to keep you informed about the ever-evolving world of content creation, from social media strategies to the impact of emerging technologies like AI.

Follow Us

Browse by Category

  • Agriculture & Farming (7)
  • Apps (20)
  • Arts & Crafts (1)
  • Automobile (71)
  • Best Buy (384)
  • Biography (16)
  • Business (8)
  • Celebrities (4)
  • Coupons & Offers (385)
  • Deals of the day (386)
  • Digital (67)
  • Digital Marketing (63)
  • Earn Money Online (34)
  • Education & Career (17)
  • Entertainment (25)
  • Event, Festival & Holiday (1)
  • Finance (13)
  • Food & Recipe (36)
  • Gadgets (66)
  • Gaming (5)
  • GK Facts (78)
  • Government Schemes (16)
  • Health & Fitness (69)
  • Home & Garden (11)
  • Jobs & Vacancies (41)
  • Jokes & Quotes (53)
  • Lifestyle & Fashion (9)
  • Movie (6)
  • Music (4)
  • News (989)
  • OTT (4)
  • Products Reviews (920)
  • Religious & Astro (68)
  • Science & Tech (12)
  • Software (18)
  • Sports (16)
  • Success Story (116)
  • Travel (35)
  • Websites (4)
  • World Wide (7)

Recent News

amazon basics TWS in-Ear Earbuds (P50) with Fast Charging up to 50 Hours of Playtime | Dual 10mm Driver | IPX4 Water-Resistance | Bluetooth 5.3 | Quad Mic with ENC | Touch Control (White)

amazon basics TWS in-Ear Earbuds (P50) with Fast Charging up to 50 Hours of Playtime | Dual 10mm Driver | IPX4 Water-Resistance | Bluetooth 5.3 | Quad Mic with ENC | Touch Control (White)

June 28, 2025
amazon basics Metal Compact Portable Tyre Inflator |12V |150 PSI |Digital Tyre Inflator with Carrying Case

amazon basics Metal Compact Portable Tyre Inflator |12V |150 PSI |Digital Tyre Inflator with Carrying Case

June 28, 2025
  • Home
  • About Us
  • Contact Us
  • Affiliate Disclosure
  • Disclaimer
  • Privacy & Terms

Copyright © 2009-2024 Netkosh Services Pvt. Ltd. All rights reserved. Made with passion by netkosh

No Result
View All Result
  • Home
  • News
  • Business
  • World Wide
  • Jobs & Vacancies
  • Science & Tech
  • Digital
    • Digital Marketing
    • Earn Money Online
    • Gadgets
    • Apps
    • Software
    • Websites
  • Entertainment
    • Gaming
    • OTT
    • Movie
    • Music
    • Sports
    • Celebrities
    • Jokes & Quotes
  • More
    • Biography
    • Agriculture & Farming
    • Automobile
    • Finance
    • GK Facts
    • Religious & Astro
    • Success Story
    • Government Schemes
    • Health & Fitness
    • Food & Recipe
    • Home & Garden
    • Pet Care
    • Lifestyle & Fashion
    • Travel
    • Arts & Crafts
    • Education & Career
  • Best Buy
    • Products Reviews
    • Coupons & Offers
    • Deals of the day

Copyright © 2009-2024 Netkosh Services Pvt. Ltd. All rights reserved. Made with passion by netkosh