In Distributed Algorithms, Nancy Lynch provides a blueprint for designing, implementing, and analyzing distributed algorithms. She directs her book at a wide audience, including students, programmers, system designers, and researchers.
Distributed Algorithms contains the most significant algorithms and impossibility results in the area, all in a simple automata-theoretic setting. The algorithms are proved correct, and their complexity is analyzed according to precisely defined complexity measures. The problems covered include resource allocation, communication, consensus among distributed processes, data consistency, deadlock detection, leader election, global snapshots, and many others.
The material is organized according to the system model-first by the timing model and then by the interprocess communication mechanism. The material on system models is isolated in separate chapters for easy reference.
The presentation is completely rigorous, yet is intuitive enough for immediate comprehension. This book familiarizes readers with important problems, algorithms, and impossibility results in the area: readers can then recognize the problems when they arise in practice, apply the algorithms to solve them, and use the impossibility results to determine whether problems are unsolvable. The book also provides readers with the basic mathematical tools for designing new algorithms and proving new impossibility results. In addition, it teaches readers how to reason carefully about distributed algorithms-to model them formally, devise precise specifications for their required behavior, prove their correctness, and evaluate their performance with realistic measures.
Inhaltsverzeichnis
1;Front Cover;1 2;Distributed Algorithms;4 3;Copyright Page;5 4;Contents;8 5;Preface ;20 6;Chapter 1. Introduction;26 6.1;1.1 The Subject Matter;26 6.2;1.2 Our Viewpoint;29 6.3;1.3 Overview of Chapters 2-25;31 6.4;1.4 Bibliographic Notes;38 6.5;1.5 Notation;39 7;Part I: Synchronous Network Algorithms;40 7.1;Chapter 2. Modelling I: Synchronous Network Model;42 7.1.1;2.1 Synchronous Network Systems;42 7.1.2;2.2 Failures;44 7.1.3;2.3 Inputs and Outputs;45 7.1.4;2.4 Executions;45 7.1.5;2.5 Proof Methods;46 7.1.6;2.6 Complexity Measures;46 7.1.7;2.7 Randomization;47 7.1.8;2.8 Bibliographic Notes;48 7.2;Chapter 3. Leader Election in a Synchronous Ring;50 7.2.1;3.1 The Problem;50 7.2.2;3.2 Impossibility Result for Identical Processes;52 7.2.3;3.3 A Basic Algorithm;52 7.2.4;3.4 An Algorithm with O (n log n) Communication Complexity;56 7.2.5;3.5 Non-Comparison-Based Algorithms;60 7.2.6;3.6 Lower Bound for Comparison-Based Algorithms;63 7.2.7;3.7 Lower Bound for Non-Comparison-Based Algorithms;69 7.2.8;3.8 Bibliographic Notes;71 7.2.9;3.9 Exercises;72 7.3;Chapter 4. Algorithms in General Synchronous Networks;76 7.3.1;4.1 Leader Election in a General Network;77 7.3.2;4.2 Breadth-First Search;82 7.3.3;4.3 Shortest Paths;86 7.3.4;4.4 Minimum Spanning Tree;88 7.3.5;4.5 Maximal Independent Set;96 7.3.6;4.6 Bibliographic Notes;101 7.3.7;4.7 Exercises;102 7.4;Chapter 5. Distributed Consensus with Link Failures;106 7.4.1;5.1 The Coordinated Attack ProblemDeterministic Version;107 7.4.2;5.2 The Coordinated Attack ProblemRandomized Version;111 7.4.3;5.3 Bibliographic Notes;120 7.4.4;5.4 Exercises;120 7.5;Chapter 6. Distributed Consensus with Process Failures;124 7.5.1;6.1 The Problem;125 7.5.2;6.2 Algorithms for Stopping Failures;127 7.5.3;6.3 Algorithms for Byzantine Failures;141 7.5.4;6.4 Number of Processes for Byzantine Agreement;154 7.5.5;6.5 Byzantine Agreement in General Graphs;160 7.5.6;6.6 Weak Byzantine Agreement;164 7.5.7;6.7 Number of Rounds with Stopping Failures;167 7.5.8
;6.8 Bibliographic Notes;177 7.5.9;6.9 Exercises;178 7.6;Chapter 7. More Consensus Problems;186 7.6.1;7.1 k-Agreement;186 7.6.2;7.2 Approximate Agreement;202 7.6.3;7.3 The Commit Problem;207 7.6.4;7.4 Bibliographic Notes;217 7.6.5;7.5 Exercises;217 8;Part II: Asynchronous Algorithms;222 8.1;Chapter 8. Modelling II: Asynchronous System Model;224 8.1.1;8.1 I/O Automata;225 8.1.2;8.2 Operations on Automata;231 8.1.3;8.3 Fairness;237 8.1.4;8.4 Inputs and Outputs for Problems;240 8.1.5;8.5 Properties and Proof Methods;241 8.1.6;8.6 Complexity Measures;253 8.1.7;8.7 Indistinguishable Executions;254 8.1.8;8.8 Randomization;254 8.1.9;8.9 Bibliographic Notes;255 8.1.10;8.10 Exercises;256 9;Part IIA: Asynchronous Shared Memory Algorithms;260 9.1;Chapter 9. Modelling III: Asynchronous Shared Memory Model;262 9.1.1;9.1 Shared Memory Systems;262 9.1.2;9.2 Environment Model;266 9.1.3;9.3 Indistinguishable States;269 9.1.4;9.4 Shared Variable Types;269 9.1.5;9.5 Complexity Measures;275 9.1.6;9.6 Failures;276 9.1.7;9.7 Randomization;276 9.1.8;9.8 Bibliographic Notes;276 9.1.9;9.9 Exercises;277 9.2;Chapter 10. Mutual Exclusion;280 9.2.1;10.1 Asynchronous Shared Memory Model;281 9.2.2;10.2 The Problem;284 9.2.3;10.3 Dijkstra's Mutual Exclusion Algorithm;290 9.2.4;10.4 Stronger Conditions for Mutual Exclusion Algorithms;301 9.2.5;10.5 Lockout-Free Mutual Exclusion Algorithms;303 9.2.6;10.6 An Algorithm Using Single-Writer Shared Registers;319 9.2.7;10.7 The Bakery Algorithm;321 9.2.8;10.8 Lower Bound on the Number of Registers;325 9.2.9;10.9 Mutual Exclusion Using Read-Modify-Write Shared Variables;334 9.2.10;10.10 Bibliographic Notes;351 9.2.11;10.11 Exercises;352 9.3;Chapter 11. Resource Allocation;360 9.3.1;11.1 The Problem;361 9.3.2;11.2 Nonexistence of Symmetric Dining Philosophers Algorithms;366 9.3.3;11.3 Right-Left Dining Philosophers Algorithm;369 9.3.4;11.4 Randomized Dining Philosophers Algorithm;379 9.3.5;11.5 Bibliographic Notes;392 9.3.6;11.6 Exercises;392 9.4;Chapter 12
. Consensus;396 9.4.1;12.1 The Problem;397 9.4.2;12.2 Agreement Using Read/Write Shared Memory;401 9.4.3;12.3 Agreement Using Read-Modify-Write Shared Memory;412 9.4.4;12.4 Other Types of Shared Memory;413 9.4.5;12.5 Computability in Asynchronous Shared Memory Systems;414 9.4.6;12.6 Bibliographic Notes;416 9.4.7;12.7 Exercises;417 9.5;Chapter 13. Atomic Objects;422 9.5.1;13.1 Definitions and Basic Results;423 9.5.2;13.2 Implementing Read-Modify-Write Atomic Objects in Terms of Read/Write Variables;445 9.5.3;13.3 Atomic Snapshots of Shared Memory;446 9.5.4;13.4 Read/Write Atomic Objects;459 9.5.5;13.5 Bibliographic Notes;474 9.5.6;13.6 Exercises;475 10;Part IIB: Asynchronous Network Algorithms;480 10.1;Chapter 14. Modelling IV: Asynchronous Network Model;482 10.1.1;14.1 Send/Receive Systems;482 10.1.2;14.2 Broadcast Systems;491 10.1.3;14.3 Multicast Systems;494 10.1.4;14.4 Bibliographic Notes;496 10.1.5;14.5 Exercises;496 10.2;Chapter 15. Basic Asynchronous Network Algorithms;500 10.2.1;15.1 Leader Election in a Ring;500 10.2.2;15.2 Leader Election in an Arbitrary Network;520 10.2.3;15.3 Spanning Tree Construction, Broadcast and Convergecast;521 10.2.4;15.4 Breadth-First Search and Shortest Paths;526 10.2.5;15.5 Minimum Spanning Tree;534 10.2.6;15.6 Bibliographic Notes;548 10.2.7;15.7 Exercises;549 10.3;Chapter 16. Synchronizers;556 10.3.1;16.1 The Problem;557 10.3.2;16.2 The Local Synchronizer;560 10.3.3;16.3 The Safe Synchronizer;566 10.3.4;16.4 Safe Synchronizer Implementations;571 10.3.5;16.5 Applications;578 10.3.6;16.6 Lower Bound on Time;580 10.3.7;16.7 Bibliographic Notes;585 10.3.8;16.8 Exercises;585 10.4;Chapter 17. Shared Memory versus Networks;590 10.4.1;17.1 Transformations from the Shared Memory Model to the Network Model;591 10.4.2;17.2 Transformations from the Network Model to the Shared Memory Model;607 10.4.3;17.3 Bibliographic Notes;611 10.4.4;17.4 Exercises;612 10.5;Chapter 18. Logical Time;616 10.5.1;18.1 Logical Time for Asynchronous Networks;61
6 10.5.2;18.2 Adding Logical Time to Asynchronous Algorithms;621 10.5.3;18.3 Applications;625 10.5.4;18.4 Transforming Real-Time Algorithms to Logical-Time Algorithms;635 10.5.5;18.5 Bibliographic Notes;637 10.5.6;18.6 Exercises;637 10.6;Chapter 19. Consistent Global Snapshots and Stable Property Detection;642 10.6.1;19.1 Termination-Detection for Diffusing Algorithms;643 10.6.2;19.2 Consistent Global Snapshots;650 10.6.3;19.3 Bibliographic Notes;661 10.6.4;19.4 Exercises;662 10.7;Chapter 20. Network Resource Allocation;666 10.7.1;20.1 Mutual Exclusion;666 10.7.2;20.2 General Resource Allocation;678 10.7.3;20.3 Bibliographic Notes;689 10.7.4;20.4 Exercises;689 10.8;Chapter 21. Asynchronous Network Computing with Process Failures;694 10.8.1;21.1 The Network Model;695 10.8.2;21.2 Impossibility of Agreement in the Presence of Faults;696 10.8.3;21.3 A Randomized Algorithm;697 10.8.4;21.4 Failure Detectors;702 10.8.5;21.5 k-Agreement;706 10.8.6;21.6 Approximate Agreement;707 10.8.7;21.7 Computability in Asynchronous Networks;709 10.8.8;21.8 Bibliographic Notes;710 10.8.9;21.9 Exercises;711 10.9;Chapter 22. Data Link Protocols;716 10.9.1;22.1 The Problem;717 10.9.2;22.2 Stenning's Protocol;718 10.9.3;22.3 Alternating Bit Protocol;722 10.9.4;22.4 Bounded Tag Protocols Tolerating Reordering;728 10.9.5;22.5 Tolerating Crashes;740 10.9.6;22.6 Bibliographic Notes;753 10.9.7;22.7 Exercises;754 11;Part III: Partially Synchronous Algorithms;758 11.1;Chapter 23. Modelling V: Partially Synchronous System Models;760 11.1.1;23.1 MMT Timed Automata;761 11.1.2;23.2 General Timed Automata;769 11.1.3;23.3 Properties and Proof Methods;781 11.1.4;23.4 Modelling Shared Memory and Network Systems;793 11.1.5;23.5 Bibliographic Notes;794 11.1.6;23.6 Exercises;795 11.2;Chapter 24. Mutual Exclusion with Partial Synchrony;798 11.2.1;24.1 The Problem;798 11.2.2;24.2 A Single-Register Algorithm;799 11.2.3;24.3 Resilience to Timing Failures;809 11.2.4;24.4 Impossibility Results;813 11.2.5;24.5 Bibli
ographic Notes;815 11.2.6;24.6 Exercises;816 11.3;Chapter 25. Consensus with Partial Synchrony;820 11.3.1;25.1 The Problem;820 11.3.2;25.2 A Failure Detector;821 11.3.3;25.3 Basic Results;823 11.3.4;25.4 An Efficient Algorithm;828 11.3.5;25.5 A Lower Bound Involving the Timing Uncertainty;835 11.3.6;25.6 Other Results;843 11.3.7;25.7 Postscript;848 11.3.8;25.8 Bibliographic Notes;848 11.3.9;25.9 Exercises;849 12;Bibliography;854 13;Index;882 14;Related Titles from Morgan Kaufmann;898