By:- Rizwan Malik For Advanced OS Course 2007

Slides:



Advertisements
Similar presentations
Messages Complexity Evaluation For Dijkstra-Scholton and Shavit-Francez Termination Detection Algorithms Kovan A. Mohammed Ali Advanced Operating System.
Advertisements

Lecture 8: Asynchronous Network Algorithms
Minimum Energy Mobile Wireless Networks IEEE JSAC 2001/10/18.
Outline. Theorem For the two processor network, Bit C(Leader) = Bit C(MaxF) = 2[log 2 ((M + 2)/3.5)] and Bit C t (Leader) = Bit C t (MaxF) = 2[log 2 ((M.
1 Complexity of Network Synchronization Raeda Naamnieh.
© Honglei Miao: Presentation in Ad-Hoc Network course (19) Minimal CDMA Recoding Strategies in Power-Controlled Ad-Hoc Wireless Networks Honglei.
COGNITIVE RADIO FOR NEXT-GENERATION WIRELESS NETWORKS: AN APPROACH TO OPPORTUNISTIC CHANNEL SELECTION IN IEEE BASED WIRELESS MESH Dusit Niyato,
Your Friends Have More Friends Than You Do: Identifying Influential Mobile Users Through Random Walks Bo Han, Aravind Srinivasan University of Maryland.
Optimization of Wavelength Assignment for QoS Multicast in WDM Networks Xiao-Hua Jia, Ding-Zhu Du, Xiao-Dong Hu, Man-Kei Lee, and Jun Gu, IEEE TRANSACTIONS.
Termination Detection
03/19/02Scalab Seminar Series1 Routing in Peer-to-Peer Systems Ramaswamy N.Vadivelu Scalab, ASU.
Teacher: Chun-Yuan Lin
Chapter 2 Fundamental Simulation Concepts
Tarry vs Awerbuchs Shawn Biesan. Background Tarry’s Transversal Algorithm – Initiator forwards token to one of neighbors, each neighbor forwards token.
Comparison of Tarry’s Algorithm and Awerbuch’s Algorithm Mike Yuan CS 6/73201 Advanced Operating Systems Fall 2007 Dr. Nesterenko.
1 30 November 2006 An Efficient Nearest Neighbor (NN) Algorithm for Peer-to-Peer (P2P) Settings Ahmed Sabbir Arif Graduate Student, York University.
Comparison of Tarry’s Algorithm and Awerbuch’s Algorithm CS 6/73201 Advanced Operating System Presentation by: Sanjitkumar Patel.
Lamport's Scalar clocks and Singhal-Kshemkalyani’s VC Algorithms
1 Review Questions Define n variables, types of shared variables, message-passing, shared-memory system, system topology n program-counter/guarded command.
Dijkstra-Scholten and Shavit-Francez termination algorithms
By Purva Gawde For Advanced Operating Systems Instructor: Mikhail Nesterenko.
BAHIR DAR UNIVERSITY Institute of technology Faculty of Computing Department of information technology Msc program Distributed Database Article Review.
Reducing Structural Bias in Technology Mapping
2010 IEEE Global Telecommunications Conference (GLOBECOM 2010)
Auburn University
Auburn University
Design and Analysis of Algorithms (09 Credits / 5 hours per week)
Authors: Jiang Xie, Ian F. Akyildiz
OPERATING SYSTEMS CS 3502 Fall 2017
Theoretical analysis of time efficiency
Auburn University COMP7330/7336 Advanced Parallel and Distributed Computing Exploratory Decomposition Dr. Xiao Qin Auburn.
Introduction to Load Balancing:
Finite State Machines Dr K R Bond 2009
Efficient Join Query Evaluation in a Parallel Database System
A Study of Group-Tree Matching in Large Scale Group Communications
The Echo Algorithm The echo algorithm can be used to collect and disperse information in a distributed system It was originally designed for learning network.
Dynamic Graph Partitioning Algorithm
The minimum cost flow problem
A Distributed Algorithm for Minimum-Weight Spanning Trees
Wireless Sensor Network Architectures
Factor Graphs and the Sum-Product Algorithm
Maximal Independent Set
Course Description Algorithms are: Recipes for solving problems.
Net301 lecture9 11/5/2015 Lect 9 NET301.
Lecture 9: Asynchronous Network Algorithms
Analysis and design of algorithm
CSCI1600: Embedded and Real Time Software
CPSC 531: System Modeling and Simulation
Comparison between Suzuki Kasami’s and Raymond’s Tree Algorithm
Raymond'S Tree DMX Algorithm
Objective of This Course
Performance Comparison of Tarry and Awerbuch Algorithms
Presented By: Md Amjad Hossain
Jason A. Fuemmeler, and Venugopal V. Veeravalli Edwin Lei
Lectures on Graph Algorithms: searching, testing and sorting
Raymond Exclusive Algorithm
COMP/ELEC 429/556 Introduction to Computer Networks
Joydeep Chandra, Santosh Shaw and Niloy Ganguly
Outline Distributed Mutual Exclusion Introduction Performance measures
Lecture 8: Synchronous Network Algorithms
Topic 5: Heap data structure heap sort Priority queue
Chapter 4: Simulation Designs
Ho-Ramamoorthy 2-Phase Deadlock Detection Algorithm
UNINFORMED SEARCH -BFS -DFS -DFIS - Bidirectional
Dijkstra-Scholten and Shavit-Francez termination algorithms
Introduction to High Performance Computing Lecture 17
Course Description Algorithms are: Recipes for solving problems.
CSCI1600: Embedded and Real Time Software
Design and Implementation of OverLay Multicast Tree Protocol
Time Complexity and the divide and conquer strategy
Presentation transcript:

Message Complexity Analysis of Shavit-Francez Termination Detection Algorithm By:- Rizwan Malik For Advanced OS Course 2007 Instructor: Dr. Mikhail Nesterenko

Overview Introduction. Objective. Enviornment. Observations. Results. Coding Logic. Conclusion & Future Work. References.

Introduction Shavit-Francez Algorithm is used for Explicit Termination of De-centralized Distributed Systems(Systems with Multiple Initiators). Every initiator maintains its own computation tree and when its own computation tree collapses it may participate in the computation tree of other initiators. All processes participate in a Wave to detect the the termination of the Computation.

Objective To analyze the message complexity of Shavit-Francez Algorithm. To determine how to reduce the message complexity by analyzing different Waves.

Enviornment Randomly Generated Trees were used for this project. The Basic Computation was generated randomly. Message Queue delays were introduced. For the Wave, Echo and Tree algorithm were used. Each data point value for the graph is based on an average of 10 values.

Observations For a Basic computation with a Message complexity of M, the algorithm further introduces an increase of M(signals introduced by S-F Algo) + W(tokens generated by the Wave)+A(Stop messages sent by the Announce routine) messages. The Shavit-Francez Algorithm always runs with worst case complexity. Selection of the Wave Algorithm impacts the overall message complexity.

Results Term with Echo Term with Tree 10 70.2 62.2 20 144.2 126.2 30 207.6 179.6 40 271.2 233.2 50 334.6 286.6 60 404 346 70 468.2 400.2 80 525 447 90 595 507 100 655.2 557.2 200 1261.4 1063.4 300 1871.6 1573.6 The SF Algorithm with tree based wave has better message complexity than Echo based Wave. Message Complexity – Echo=2E,Tree=N,Announce=2E.

Results(Continued) M(BC+Signals+Echo+Announce) W(BC+Signals+Tree) 10 74.4 56.4 20 137.6 99.6 30 210.8 152.8 40 278.8 200.8 50 342 244 60 401.2 283.2 70 464 326 80 530.4 372.4 90 589.6 411.6 100 650.4 452.4 200 1272.8 874.8 300 1872 1274 Since decide event takes place at all processes in a Tree based wave, if we halt every process after it decides, we can achieve a better message complexity for the algorithm.However, this observation is limited to tree graphs.

Result(Continued..) Fig1 No. Of Nodes Edge Count Basic Messages Echo Tokens Tree Tokens Signals Announce Stop Messages 10 9 17.1 18 20 19 34.1 38 30 29 45.8 58 40 39 57.6 78 50 49 69.3 98 60 59 84 118 70 69 96.1 138 80 79 104.5 158 90 89 119.5 178 100 99 129.6 198 200 199 232.7 398 300 299 337.8 598 Fig1 Fig1– Data for Graph 1 Mcomplexity for Tree=N.Fig2- Mcomplexity = 2N-2=2E(for trees). No. Of Nodes Edge Count Basic Messages Echo Tokens Tree Tokens Signals Announce Stop Messages 10 9 19.2 18 20 19 30.8 38 30 29 47.4 58 40 39 61.4 78 50 49 73 98 60 59 82.6 118 70 69 94 138 80 79 107.2 158 90 89 116.8 178 100 99 127.2 198 200 199 238.4 398 300 299 338 598 Fig2

Coding Logic Randomly Generated Computation:- Queue Delay:- One message sent/received at a time. Leaves are initiators. A process can, at the maximum, send 5 messages. Queue Delay:- Delay simulated by Placing the message at index generated randomly between values 0 and Queue length. Random Trees:- Matrix(Double indexed array) of size NxN --- N is a user input value. Value of pair(I,J)=1 denotes the presence of an Edge between I & J. Recursively checks for cycles before adding an Edge to the tree. Probability of an Node joining the tree is 50%.

Conclusion & Future Work The Shavit-Francez component of the Algorithm always runs with worst-case message complexity i.e. it always generates number of messages equal to number of messages generated by the Basic algorithm. The choice of wave algorithm to be run can effectively reduce the message complexity of the Algorithm as a whole. For Tree networks the wave with best message complexity is Tree Algorithm based wave. Future Work:- Perform the same analysis on Arbitrary Graphs. Find the optimal wave for different graph types. To work towards genralize the technique of converting algorithm that work on diffusing Algorithms to those that work on non-diffusing Algorithms as suggested by N. Shavit, N. Francez in their paper titled “A New Approach to Detection of Locally Indicative Stability“.

References Class notes for Advances Operating Systems 2007 by Dr. Mikhail Nesterenko. Introduction to Distributed Algorithms By Gerard Tel. Nir Shavit, Nissim Francez: A New Approach to Detection of Locally Indicative Stability.