CS 347 Parallel and Distributed Data Processing

Similar documents
Convert the NFA into DFA

Connected-components. Summary of lecture 9. Algorithms and Data Structures Disjoint sets. Example: connected components in graphs

Nondeterminism and Nodeterministic Automata

8 factors of x. For our second example, let s raise a power to a power:

5.1 Estimating with Finite Sums Calculus

8. Complex Numbers. We can combine the real numbers with this new imaginary number to form the complex numbers.

NON-DETERMINISTIC FSA

Introduction to Algebra - Part 2

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

Resources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations

Suppose we want to find the area under the parabola and above the x axis, between the lines x = 2 and x = -2.

Improper Integrals. Introduction. Type 1: Improper Integrals on Infinite Intervals. When we defined the definite integral.

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

Fault Modeling. EE5375 ADD II Prof. MacDonald

Regular expressions, Finite Automata, transition graphs are all the same!!

Algorithm Design and Analysis

Chapter 9 Definite Integrals

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

Chapter 8.2: The Integral

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

CS 188: Artificial Intelligence Spring 2007

Running an NFA & the subset algorithm (NFA->DFA) CS 350 Fall 2018 gilray.org/classes/fall2018/cs350/

PROPERTIES OF AREAS In general, and for an irregular shape, the definition of the centroid at position ( x, y) is given by

Calculus Module C21. Areas by Integration. Copyright This publication The Northern Alberta Institute of Technology All Rights Reserved.

Section 6.1 Definite Integral

Exam 2 Solutions ECE 221 Electric Circuits

Introduction to Electronic Circuits. DC Circuit Analysis: Transient Response of RC Circuits

Homework Assignment 6 Solution Set

The practical version

Exercise 5.5: Large-scale log-normal fading

Prefix-Free Regular-Expression Matching

DATABASE DESIGN I - 1DL300

Linear Inequalities. Work Sheet 1

First Midterm Examination

Math 1431 Section 6.1. f x dx, find f. Question 22: If. a. 5 b. π c. π-5 d. 0 e. -5. Question 33: Choose the correct statement given that

First Midterm Examination

Learning Goals. Relational Query Languages. Formal Relational Query Languages. Formal Query Languages: Relational Algebra and Relational Calculus

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

Calculus AB. For a function f(x), the derivative would be f '(

The Shortest Path Problem Graph Algorithms - 3

SECTION A STUDENT MATERIAL. Part 1. What and Why.?

CONIC SECTIONS. Chapter 11

TIME AND STATE IN DISTRIBUTED SYSTEMS

Midterm 1 Practice. CS 350 Fall 2018 gilray.org/classes/fall2018/cs350/

Algorithm Design and Analysis

The Trapezoidal Rule

SOLUTIONS TO ASSIGNMENT NO The given nonrecursive signal processing structure is shown as

List all of the possible rational roots of each equation. Then find all solutions (both real and imaginary) of the equation. 1.

Section 2.3. Matrix Inverses

NFA DFA Example 3 CMSC 330: Organization of Programming Languages. Equivalence of DFAs and NFAs. Equivalence of DFAs and NFAs (cont.

DATABASTEKNIK - 1DL116

Lecture 08: Feb. 08, 2019

NFAs continued, Closure Properties of Regular Languages

Polynomial Approximations for the Natural Logarithm and Arctangent Functions. Math 230

AQA Further Pure 2. Hyperbolic Functions. Section 2: The inverse hyperbolic functions

Chapter 2 Finite Automata

Some Theory of Computation Exercises Week 1

Lecture 2: January 27

Bases for Vector Spaces

Lecture 6. CMOS Static & Dynamic Logic Gates. Static CMOS Circuit. PMOS Transistors in Series/Parallel Connection

Alpha Algorithm: Limitations

SOME INTEGRAL INEQUALITIES OF GRÜSS TYPE

Languages & Automata

Behavior Composition in the Presence of Failure

Chapter 5 Plan-Space Planning

Mathematics Number: Logarithms

Bayesian Networks: Approximate Inference

Designing Information Devices and Systems I Spring 2018 Homework 7

12.4 Similarity in Right Triangles

LINEAR ALGEBRA APPLIED

NFAs continued, Closure Properties of Regular Languages

Signal Flow Graphs. Consider a complex 3-port microwave network, constructed of 5 simpler microwave devices:

Linear Algebra Introduction

Lecture Solution of a System of Linear Equation

Here we consider the matrix transformation for a square matrix from a geometric point of view.

Chapter 4 State-Space Planning

Thomas Whitham Sixth Form

Automatic Synthesis of New Behaviors from a Library of Available Behaviors

Fundamentals of Electrical Circuits - Chapter 3

CMSC 330: Organization of Programming Languages

10.2 The Ellipse and the Hyperbola

Continuity. Recall the following properties of limits. Theorem. Suppose that lim. f(x) =L and lim. lim. [f(x)g(x)] = LM, lim

Designing finite automata II

CSE : Exam 3-ANSWERS, Spring 2011 Time: 50 minutes

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA)

Section 7.1 Area of a Region Between Two Curves

Gold s algorithm. Acknowledgements. Why would this be true? Gold's Algorithm. 1 Key ideas. Strings as states

CS S-12 Turing Machine Modifications 1. When we added a stack to NFA to get a PDA, we increased computational power

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Lesson 2.1 Inductive Reasoning

Math RE - Calculus II Area Page 1 of 12

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18

Coalgebra, Lecture 15: Equations for Deterministic Automata

6.5 Plate Problems in Rectangular Coordinates

Gauss Quadrature Rule of Integration

Transcription:

CS 347 Prllel nd Distriuted Dt Proessing Spring 06 Network Prtitions Susets of nodes m e isolted or nodes m e slow in responding Notes 8: Network Prtitions CS 347 Notes 8 Network Prtitions Cuses ired network disruptions E.g., due to nturl disster ireless network ostles (Semi-)utonomous nodes Single node filures undistinguishle from prtitions E.g., network rd fils Prtitions without Replition If some dt is unville then stuk Even if ll dt is ville, must ope with prtition during ommit protool C C C A A CS 347 Notes 8 3 CS 347 Notes 8 4

d C = { {,, }, {,, d }, {,, d }, {,, d } } A = { {, }, {, }, {, d }, {, }, {, d }, {, d } } Importnt propert X C Y A: X Y Y A X C: X Y Vote ssignments One w to implement quorums V C + V A > V T V C V A V T votes to ommit votes to ort totl votes d to ommit V C 3 to ort V A CS 347 Notes 8 5 CS 347 Notes 8 6 Commit protools must enfore quorum If node knows trnstion ould hve ommitted (orted), it nnot ort (ommit) even if ort (ommit) quorum ville All ommit protools re loking (with network prtitions) 3PC with quorum To mke ommit deision: ommit quorum To mke ort deision: ort quorum Emple Votes for ommit V C = 3 Votes for ort V A = 3 old oordintor? new oordintor CS 347 Notes 8 7 CS 347 Notes 8 8

Emple old oordintor? new oordintor V C = 3 V A = 3 Emple old oordintor? PC new oordintor V C = 3 V A = 3 Coordintor ould not hve ommitted Hve ort quorum Tr to ort CS 347 Notes 8 9 CS 347 Notes 8 0 Emple old oordintor? PC new oordintor V C = 3 V A = 3 Emple 3 old oordintor? PC new oordintor V C = 3 V A = 3 Coordintor ould not hve orted Hve ommit quorum Tr to ommit CS 347 Notes 8 CS 347 Notes 8

Emple 3 old oordintor? PC new oordintor V C = 3 V A = 3 Prolemti stte PC PA Insuffiient votes Blok Possile? Could the trnstion hve orted? Could the trnstion hve ommitted? ht to do net? CS 347 Notes 8 3 CS 347 Notes 8 4 Prolemti stte PC Senrio { PC, PA, } fter ommit = oordintor PA PC?? PC PC C? Possile? Yes Could the trnstion hve orted? Yes Could the trnstion hve ommitted? Yes ht to do net? Blok PC C? PC PC PC PA??? PA??? time CS 347 Notes 8 5 CS 347 Notes 8 6

Senrio { PC, PA, } fter ort PA A? PA A? PC??? PC PA PA PA??? time CS 347 Notes 8 7 Not ll quorums n e implemented vi votes C = { {, }, {, d } } A = { {, }, {, d }, {, }, {, d } } d CS 347 Notes 8 8 Prtitions with Replition Options. All opies re required for updtes. Groups m updte, ut t most one t time 3. An group m updte Prtitions with Replition At most one opertionl group Updte propgtion Multiple opertionl groups CS 347 Notes 8 9 CS 347 Notes 8 0

Ke ide hen opertionl groups hnge, t lest one node should e shred ross previous group nd urrent group, so tht it n rr over stte d C = { {,, }, {,, d }, {,, d }, {,, d } } C = { {, }, {, }, {, d }, {,, d } } Importnt propert X C Y C: X Y { {, }, {, d } } not vlid CS 347 Notes 8 CS 347 Notes 8 Reding replited dt Cn rel oterie requirement Votes V > V T, V + V R > V T C = { {,, }, {,, d }, {,, d }, {,, d } } R = { {, }, {, }, {, d }, {, }, {, d }, {, d } } To write get 3 votes ( V ) To red get votes ( V R ) C = R = { {, }, {, }, {, d }, {,, d } } C = { {,, }, {,, d }, {,, d }, {,, d } } R = { {, }, {, }, {, d }, {, }, {, d }, {, d } } d CS 347 Notes 8 3 CS 347 Notes 8 4

Votes V > V T, V + V R > V T To write get 3 votes ( V ) To red get votes ( V R ) C = R = { {, }, {, }, {, d }, {,, d } } d hih one is etter? C = { {,, }, {,, d }, {,, d }, {,, d } } R = { {, }, {, }, {, d }, {, }, {, d }, {, d } } C = R = { {, }, {, }, {, d }, {,, d } } CS 347 Notes 8 5 CS 347 Notes 8 6 Not ll oteries hve vote ssignments Not ll oteries hve vote ssignments Emple Nodes {,,, d, e, f } C = { {, }, {,, d }, {,, e }, {, d, f }, {, e, f }, {,, f }, {, d, e } } CS 347 Notes 8 7 CS 347 Notes 8 8

Updte Propgtion Prolem Emple Updte Propgtion Prolem Emple Now T T is ommitted t, Lter T T reds t (not seeing T ) Then writes nd ommits t, T CS 347 Notes 8 9 CS 347 Notes 8 30 Updte Propgtion Updte Propgtion Solution Eh node keeps list of ommitted trnstions Compre list t red site with those t write sites Updte sites tht missed trnstions Solution Emple revisited T 0, T T 0, T T 0 CS 347 Notes 8 3 CS 347 Notes 8 3

Updte Propgtion Solution Emple revisited Updte Propgtion Solution Emple revisited T 0, T T oordintor T 0, T ee (list = T0) T oordintor T 0, T red List = T0 T 0, T ee (list = T0) T 0 T 0 CS 347 Notes 8 33 CS 347 Notes 8 34 Updte Propgtion Solution Emple revisited Updte Propgtion Eh node must keep updtes for trnstions until ll nodes hve seen them T 0, T nok T oordintor T 0, T ok Get new dt ( T ) from T 0 CS 347 Notes 8 35 CS 347 Notes 8 36

Multiple Opertionl Groups DB 3 DB 4 Multiple Opertionl Groups Integrtion options. Compenste trnstions to mke shedules mth. Dt pth (i.e., ppl semnti fi) DB 0 DB DB CS 347 Notes 8 37 CS 347 Notes 8 38 Multiple Opertionl Groups Multiple Opertionl Groups Compenstion Emple T0, T, T Compenstion Assume T ommutes with T 3 nd T 4 E.g., no onfliting opertions T0 DB T0, T, T DB 3 T0 DB DB 3 DB Shedule T 0, T 3, T 4, T is equivlent to T 0, T, T 3, T 4 DB T0, T3, T4 DB T0, T3, T4 DB 3 Shedule T 0, T, T, T -, T 3, T 4is equivlent to T 0, T, T 3, T 4 CS 347 Notes 8 39 CS 347 Notes 8 40

Multiple Opertionl Groups Multiple Opertionl Groups Compenstion T0, T, T DB 3 Compenstion In generl, sed on hrteristis of trnstions, shedules n e merged T0 DB DB 4 T0, T, T3, T4 DB T0, T3, T4 CS 347 Notes 8 4 CS 347 Notes 8 4 Multiple Opertionl Groups Multiple Opertionl Groups Dt pth Forget out shedules Integrte differing vlues vi rules oth opies ts=0 5 site d ts= 6 site e f ts= 6 Dt pth E.g., simple rules For site wins For ltest timestmp wins For dd inrements CS 347 Notes 8 43 CS 347 Notes 8 44

Multiple Opertionl Groups Summr Dt pth oth opies ts=0 5 site d ts= 7 site e f ts= 6 oth opies (integrted) f ts= 8 Prtitions without replition Aort, ommit quorums 3PC with quorums Prtitions with replition At most one opertionl group Updte propgtion Multiple opertionl groups CS 347 Notes 8 45 CS 347 Notes 8 46