L11: Algebraic Path Problems with applications to Internet Routing Lectures 7 and 8
|
|
- Deirdre Small
- 5 years ago
- Views:
Transcription
1 L: Algebraic Path Problems with applications to Internet Routing Lectures 7 and 8 Timothy G. Grifn timothy.grifn@cl.cam.ac.uk Computer Laboratory University of Cambridge, UK Michaelmas Term, 27 tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routingc 27 Lectures 7 and / 33 8 Recall our basic iterative algorithm A closer look... A xy I A xk`y AA xky I A xk`y pi, jq Ipi, jq à Api, uqa xky pu, jq u Ipi, jq à Api, uqa xky pu, jq pi,uqpe This is the basis of distributed Bellman-Ford algorithms (as in RIP and BGP) a node i computes routes to a destination j by applying its link weights to the routes learned from its immediate neighbors. It then makes these routes available to its neighbors and the process continues... tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routingc 27 Lectures 72 and / 33 8
2 What if we start iteration in an arbitrary state M? In a distributed environment the topology (captured here by A) can change and the state of the computation can start in an arbitrary state (with respect to a new A). Theorem For ď k, A xy M M A xk`y M AA xky M I A xky M If A is q-stable and q ă k, then Ak M A pk q A xky M Ak M A tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routingc 27 Lectures 73 and / 33 8 RIP-like example (see RFC 58) Adjacency matrix A Adjacency matrix A f f f f Using AddZerop8, pn, min, `qq but ignoring inl and inr tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routingc 27 Lectures 74 and / 33 8
3 RIP-like example counting to convergence (2) The solution A The solution A f f f f tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routingc 27 Lectures 75 and / 33 8 RIP-like example counting to convergence (3) The scenario: we arrived at A, but then links tp, 3q, p3, qu fail. So we start iterating using the new matrix A 2. xky Let B K represent A 2 M, where M A. tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routingc 27 Lectures 76 and / 33 8
4 RIP-like example counting to convergence (4) B f f B f f B f f B f f B f f B f f tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routingc 27 Lectures 7 and / 33 8 RIP-like example counting to convergence (5) B f f B f f B f f B f f B f f tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routingc 27 Lectures 78 and / 33 8
5 RIP-like example counting to innity () The solution A The solution A f f f f xky Now let B K represent A 3 M, where M A. tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routingc 27 Lectures 79 and / 33 8 RIP-like example counting to innity (2) B B B f f f f f f.. B B f f f f tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures 7 and / 33 8
6 RIP-like example What s going on? Recall A xky M pi, jq Ak Mpi, jq A pi, jq A (i, j) may be arrived at very quickly but A k Mpi, jq may be better until a very large value of k is reached (counting to convergence) or it may always be better (counting to innity). Solutions? RIP: 8 6 tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures 7 and / 33 8 Other solutions? The Border Gateway Protocol (BGP) BGP exchanges metrics and paths. It avoids counting to innity by throwing away routes that have a loop in the path. The plan... Starting from pn, min, `q we will attempt to construct a semiring (using our lexicographic operators) that has elements of the form pd, Xq, where d is a shortest-path metric and X is a set of paths. Then, by succsessive renements, we will arrive at a BGP-like solution. tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures2 7 and / 33 8
7 A useful construction: The Lifted Product Lifted product semigroup Assume ps, q is a semigroup. Let liftps, q pnp2 S q, ˆ q where Xˆ Y tx y x P X, y P Y u. t, 3, 7u ˆ` t, 3, 7u t2, 4, 6, 8, 2, 34u tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures3 7 and / 33 8 Some rules (remember 2 ď S ) ASpliftpS, qq ô ASpS, q IDpliftpS, qq ô IDpS, q pˆα tαuq ANpliftpS, qq ô TRUE pω tuq CMpliftpS, qq ô CMpS, q SLpliftpS, qq ô ILpS, q _IRpS, q _ pipps, q ^ S 2q IPpliftpS, qq ô SLppS, qq ILpliftpS, qq ô FALSE IRpliftpS, qq ô FALSE tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures4 7 and / 33 8
8 Turn the Crank... ô ô ô ô IPpliftpliftptt, f u, ^qq SLpliftptt, f u, ^q ILptt, f u, ^q _IRptt, f u, ^q _ pipptt, f u, ^q ^ tt, f u 2q FALSE _FALSE _ ptrue ^TRUEq TRUE Note This kind of calculation become more interesting as we introduce more complex constructors and consider more complex properties... tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures5 7 and / 33 8 Let s use lift to construct bi-semigroups... Union with lifted product Assume ps, q is a semigroup. Let union_liftps, q pp n psq, Y, ˆ q where Xˆ Y tx y x P X, y P Y u, and X, Y P P n psq, the set of nite subsets of S. tu is the if has idenity α, then tαu is the a non-empty sequence will be written as rs, s,, s k s when does it have an annihilator for Y? we really need some inference rules here... tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures6 7 and / 33 8
9 pathspeq over graph G pv, Eq pathspeq union_liftpe, q where is sequence concatenation. spwp For our graph G pv, Eq, we will build a shortest paths with paths semiring spwp AddZerop, pn, min, `q ˆ pathspeqq Given an arc pi, jq we will give it a weight of the form Api, jq inlpn, trpi, jqsuq for some n P N. However, for ease of reading we will write and so on. Api, jq pn, trpi, jqsuq tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures7 7 and / 33 8 Recall : RIP-like counting to convergence The solution A The solution A f f Imagine that we have augmented this example with paths. f f tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures8 7 and / 33 8
10 B Let B A be the solution for the (path augmented) matrix A : 2 3 p, tǫuq p, trp, qsuq p, trp, 2qsuq p2, trp, q, p, 3qsuq p, trp, qsuq p, tǫuq p, trp, 2qsuq p, trp, 3qsuq 2 p, trp2, qsuq p, trp2, qsuq p, tǫuq p2, trp2, q, p, 3qsuq 3 p2, trp3, q, p, qsuq p, trp3, qsuq p2, trp3, q, p, 2qsuq p, tǫuq tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures9 7 and / 33 8 B Now, arcs p, 3q and p3, q vanish! With the new (path-augmented) matrix A 2, we start the iteration in the old state B. After one iteration we have B p, 3q p2, trp, q, p, 3qsuq B p, 3q p3, trp, q, p, q, p, 3qs, rp, 2q, p2, q, p, 3qsuq B p2, 3q p2, trp2, q, p, 3qsuq B p3, q p, trp3, 2q, p2, qsuq (stable!) B p3, q p, trp3, 2q, p2, qsuq (stable!) B p3, 2q p, trp3, 2qsuq (stable!) tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures2 7 and / 33 8
11 B 2 After another iteration we have B 2 p, 3q p3, trp, 2q, p2, q, p, 3qsuq B 2 p, 3q p3, trp, q, p, q, p, 3qs, rp, 2q, p2, q, p, 3qsuq B 2 p2, 3q p3, trp2, q, p, q, p, 3qsuq tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures2 7 and / 33 8 B 3 After another iteration we have B 3 p, 3q p4, trp, q, p, q, p, q, p, 3qs, rp, q, p, 2q, p2, q, p, 3qs, rp, 2q, p2, q, p, q, p, 3qsuq B 3 p, 3q p4, trp, q, p, 2q, p2, q, p, 3qs, rp, 2q, p2, q, p, q, p, 3qsuq B 3 p2, 3q p4, trp2, q, p, 2q, p2, q, p, 3qs, rp2, q, p, q, p, q, p, 3qs, rp2, q, p, 2q, p2, q, p, 3qsuq tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures22 7 and / 33 8
12 B Finally, the problem is resolved at the -th iteration: 2 3 p, tǫuq p, trp, qsuq p, trp, 2qsuq p, trp, 2q, p p, trp, qsuq p, tǫuq p, trp, 2qsuq p, trp, 2q, p 2 p, trp2, qsuq p, trp2, qsuq p, tǫuq p, trp2, 3 3 p, trp3, 2q, p2, qsuq p, trp3, 2q, p2, qsuq p, trp3, 2qsuq p, tǫuq tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures23 7 and / 33 8 Recall RIP-like counting to innity It should be clear that we have not yet reached our goal. This example will lead to sets of ever longer and longer paths and never terminate. How do we x this? tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures24 7 and / 33 8
13 Reductions If ps,, bq is a semiring and r is a function from S to S, then r is a reduction if for all a and b in S rpaq rprpaqq 2 rpa bq rprpaq bq rpa rpbqq 3 rpa b bq rprpaq b bq rpa b rpbqq Note that if either operation has an identity, then the rst axioms is not needed. For example, rpaq rpa q rprpaq q rprpaqq tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures25 7 and / 33 8 Reduce operation If ps,, bq is semiring and r is a reduction, then let red r psq ps r, r, b r q where S r ts P S rpsq su 2 x r y rpx yq 3 x b r y rpx b yq Is the result always semiring? tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures26 7 and / 33 8
14 Elementary paths reduction Recall pathspeq pathspeq union_liftpe, q where is sequence concatenation. A path p is elementary if no node is repeated. Dene the reduction rpxq tp P X p is an elementary pathu Semiring of Elementary Paths epathspeq red r ppathspeqq tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures27 7 and / 33 8 Starting in an arbitrary state? tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures28 7 and / 33 8
15 Starting in an arbitrary state? No! using AddZerop8, pn, min, `q ˆ epathspeqq.. B p, tǫuq p, trp, qsuq p, trp, 2qsuq p999, tuq p, trp, qsuq p, tǫuq p, trp, 2qsuq p999, tuq 2 p, trp2, qsuq p, trp2, qsuq p, tǫuq p999, tuq p, tǫuq. f f tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures29 7 and / 33 8 Solution: use another reduction! r pinrp8qq inrp8q " inrp8q if W tu rpinlqps, W q inlps, W q otherwise Now use this instead red r paddzerop8, pn, min, `q ˆ epathspeqqq tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures3 7 and / 33 8
16 Starting in an arbitrary state? B and B 2 3 p, tǫuq p, trp, qsuq p, trp, 2qsuq p2, trp, q, p, 3qsuq p, trp, qsuq p, tǫuq p, trp, 2qsuq p, trp, 3qsuq 2 p, trp2, qsuq p, trp2, qsuq p, tǫuq p2, trp2, q, p, 3qsuq 3 p2, trp3, q, p, qsuq p, trp3, qsuq p2, trp3, q, p, 2qsuq p, tǫuq 2 3 p, tǫuq p, trp, qsuq p, trp, 2qsuq p2, trp, q, p, 3qsuq p, trp, qsuq p, tǫuq p, trp, 2qsuq 8 2 p, trp2, qsuq p, trp2, qsuq p, tǫuq p2, trp2, q, p, 3qsuq p, tǫuq f f tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures3 7 and / 33 8 Starting in an arbitrary state? B 2 and B p, tǫuq p, trp, qsuq p, trp, 2qsuq p3, trp, 2q, p2, q, p, 3qsuq p, trp, qsuq p, tǫuq p, trp, 2qsuq 8 2 p, trp2, qsuq p, trp2, qsuq p, tǫuq p3, trp2, q, p, q, p, 3qsuq p, tǫuq f f 2 3 p, tǫuq p, trp, qsuq p, trp, 2qsuq 8 p, trp, qsuq p, tǫuq p, trp, 2qsuq 8 2 p, trp2, qsuq p, trp2, qsuq p, tǫuq p, tǫuq f f tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures32 7 and / 33 8
17 Homework 3 (due 6 November) Prove SLpliftpS, qq ô ILpS, q _IRpS, q _ pipps, q ^ S 2q Characterise exactly when union_liftps, q is a semiring. tgg22 (cl.cam.ac.uk) L: Algebraic Path Problems with applications to Internet T.G.Grifn Routing c 27 Lectures33 7 and / 33 8
L11: Algebraic Path Problems with applications to Internet T.G.Griffin Routingc 2015 Lectures 1, 2 / 2, 64and
L11: Algebraic Path Problems with applications to Internet Routing Lectures 1, 2, and 3 Timothy G. Grin timothy.grin@cl.cam.ac.uk Computer Laboratory University of Cambridge, UK Michaelmas Term, 2016 L11:
More informationL11: Algebraic Path Problems with applications to Internet Routing Lecture 9
L11: Algebraic Path Problems with applications to Internet Routing Lecture 9 Timothy G. Griffin timothy.griffin@cl.cam.ac.uk Computer Laboratory University of Cambridge, UK Michaelmas Term, 2017 tgg22
More informationL11: Algebraic Path Problems with applications to Internet Routing Lecture 15. Path Weight with functions on arcs?
L11: Algebraic Path Problems with applications to Internet Routing Lecture 15 Timothy G. Griffin timothy.griffin@cl.cam.ac.uk Computer Laboratory University of Cambridge, UK Michaelmas Term, 2016 tgg22
More informationWhat Have We Learned from Reverse-Engineering the Internet s Inter-domain Routing Protocol?
What Have We Learned from Reverse-Engineering the Internet s Inter-domain Routing Protocol? Timothy G. Griffin Computer Laboratory University of Cambridge, UK timothy.griffin@cl.cam.ac.uk Advanced Networks
More informationBuilding Algebraic Structures with Combinators
Building Algebraic Structures with Combinators Vilius Naudžiūnas Timothy G. Griffin Vilius.Naudziunas@cl.cam.ac.uk timothy.griffin@cl.cam.ac.uk Computer Laboratory University of Cambridge, UK Model-Based
More informationcs/ee/ids 143 Communication Networks
cs/ee/ids 143 Communication Networks Chapter 5 Routing Text: Walrand & Parakh, 2010 Steven Low CMS, EE, Caltech Warning These notes are not self-contained, probably not understandable, unless you also
More informationChapter 6. Dynamic Programming. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.
Chapter 6 Dynamic Programming Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. 1 6.8 Shortest Paths Shortest Paths Shortest path problem. Given a directed graph G = (V,
More information6. DYNAMIC PROGRAMMING II. sequence alignment Hirschberg's algorithm Bellman-Ford distance vector protocols negative cycles in a digraph
6. DYNAMIC PROGRAMMING II sequence alignment Hirschberg's algorithm Bellman-Ford distance vector protocols negative cycles in a digraph Shortest paths Shortest path problem. Given a digraph G = (V, E),
More informationNOTES WEEK 02 DAY 1. THEOREM 0.3. Let A, B and C be sets. Then
NOTES WEEK 02 DAY 1 SCOT ADAMS LEMMA 0.1. @propositions P, Q, R, rp or pq&rqs rp p or Qq&pP or Rqs. THEOREM 0.2. Let A and B be sets. Then (i) A X B B X A, and (ii) A Y B B Y A THEOREM 0.3. Let A, B and
More informationCMPSCI 250: Introduction to Computation. Lecture #29: Proving Regular Language Identities David Mix Barrington 6 April 2012
CMPSCI 250: Introduction to Computation Lecture #29: Proving Regular Language Identities David Mix Barrington 6 April 2012 Proving Regular Language Identities Regular Language Identities The Semiring Axioms
More informationAxioms of Kleene Algebra
Introduction to Kleene Algebra Lecture 2 CS786 Spring 2004 January 28, 2004 Axioms of Kleene Algebra In this lecture we give the formal definition of a Kleene algebra and derive some basic consequences.
More information1 Introduction. 2 First Order Logic. 3 SPL Syntax. 4 Hoare Logic. 5 Exercises
Contents 1 Introduction INF5140: Lecture 2 Espen H. Lian Institutt for informatikk, Universitetet i Oslo January 28, 2009 2 Proof System 3 SPL 4 GCD 5 Exercises Institutt for informatikk (UiO) INF5140:
More informationAsynchronous Convergence of Policy-Rich Distributed Bellman-Ford Routing Protocols
Asynchronous Convergence of Policy-Rich Distributed Bellman-Ford Routing Protocols SIGCOMM 2018 Matthew Daggitt 1 Alexander Gurney 2 Timothy Grin 1 21st of August 2018 1 University of Cambridge 2 Comcast
More informationLecture 2: Divide and conquer and Dynamic programming
Chapter 2 Lecture 2: Divide and conquer and Dynamic programming 2.1 Divide and Conquer Idea: - divide the problem into subproblems in linear time - solve subproblems recursively - combine the results in
More informationPRINCIPLES OF ANALYSIS - LECTURE NOTES
PRINCIPLES OF ANALYSIS - LECTURE NOTES PETER A. PERRY 1. Constructions of Z, Q, R Beginning with the natural numbers N t1, 2, 3,...u we can use set theory to construct, successively, Z, Q, and R. We ll
More informationMathematics for Decision Making: An Introduction. Lecture 8
Mathematics for Decision Making: An Introduction Lecture 8 Matthias Köppe UC Davis, Mathematics January 29, 2009 8 1 Shortest Paths and Feasible Potentials Feasible Potentials Suppose for all v V, there
More informationFINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016)
FINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016) The final exam will be on Thursday, May 12, from 8:00 10:00 am, at our regular class location (CSI 2117). It will be closed-book and closed-notes, except
More informationFor example, p12q p2x 1 x 2 ` 5x 2 x 2 3 q 2x 2 x 1 ` 5x 1 x 2 3. (a) Let p 12x 5 1x 7 2x 4 18x 6 2x 3 ` 11x 1 x 2 x 3 x 4,
SOLUTIONS Math A4900 Homework 5 10/4/2017 1. (DF 2.2.12(a)-(d)+) Symmetric polynomials. The group S n acts on the set tx 1, x 2,..., x n u by σ x i x σpiq. That action extends to a function S n ˆ A Ñ A,
More informationRandom Variables. Andreas Klappenecker. Texas A&M University
Random Variables Andreas Klappenecker Texas A&M University 1 / 29 What is a Random Variable? Random variables are functions that associate a numerical value to each outcome of an experiment. For instance,
More informationExtensive Form Abstract Economies and Generalized Perfect Recall
Extensive Form Abstract Economies and Generalized Perfect Recall Nicholas Butler Princeton University July 30, 2015 Nicholas Butler (Princeton) EFAE and Generalized Perfect Recall July 30, 2015 1 / 1 Motivation
More informationAn algebraic framework for a unified view of route-vector protocols
An algebraic framework for a unified view of route-vector protocols João Luís Sobrinho Instituto Superior Técnico, Universidade de Lisboa Instituto de Telecomunicações Portugal 1 Outline 1. ontext for
More informationSection Summary. Relations and Functions Properties of Relations. Combining Relations
Chapter 9 Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations Closures of Relations (not currently included
More informationMarkov Chains. Andreas Klappenecker by Andreas Klappenecker. All rights reserved. Texas A&M University
Markov Chains Andreas Klappenecker Texas A&M University 208 by Andreas Klappenecker. All rights reserved. / 58 Stochastic Processes A stochastic process X tx ptq: t P T u is a collection of random variables.
More information6. DYNAMIC PROGRAMMING II
6. DYNAMIC PROGRAMMING II sequence alignment Hirschberg's algorithm Bellman-Ford algorithm distance vector protocols negative cycles in a digraph Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison
More informationIntroduction to Kleene Algebras
Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)
More informationCS173 Strong Induction and Functions. Tandy Warnow
CS173 Strong Induction and Functions Tandy Warnow CS 173 Introduction to Strong Induction (also Functions) Tandy Warnow Preview of the class today What are functions? Weak induction Strong induction A
More informationNOTES WEEK 13 DAY 2 SCOT ADAMS
NOTES WEEK 13 DAY 2 SCOT ADAMS Recall: Let px, dq be a metric space. Then, for all S Ď X, we have p S is sequentially compact q ñ p S is closed and bounded q. DEFINITION 0.1. Let px, dq be a metric space.
More informationFinite Automata and Formal Languages
Finite Automata and Formal Languages TMV26/DIT32 LP4 2 Lecture 6 April 5th 2 Regular expressions (RE) are an algebraic way to denote languages. Given a RE R, it defines the language L(R). Actually, they
More informationThe Emptiness Problem for Valence Automata or: Another Decidable Extension of Petri Nets
The Emptiness Problem for Valence Automata or: Another Decidable Extension of Petri Nets Georg Zetzsche Technische Universität Kaiserslautern Reachability Problems 2015 Georg Zetzsche (TU KL) Emptiness
More informationMathematics for Decision Making: An Introduction. Lecture 13
Mathematics for Decision Making: An Introduction Lecture 13 Matthias Köppe UC Davis, Mathematics February 17, 2009 13 1 Reminder: Flows in networks General structure: Flows in networks In general, consider
More informationL E C T U R E 2 1 : M AT R I X T R A N S F O R M AT I O N S. Monday, November 14
L E C T U R E 2 1 : M AT R I X T R A N S F O R M AT I O N S Monday, November 14 In this lecture we want to consider functions between vector spaces. Recall that a function is simply a rule that takes an
More informationNOTES WEEK 01 DAY 1 SCOT ADAMS
NOTES WEEK 01 DAY 1 SCOT ADAMS Question: What is Mathematics? Answer: The study of absolute truth. Question: Why is it so hard to teach and to learn? Answer: One must learn to play a variety of games called
More informationADVANCE TOPICS IN ANALYSIS - REAL. 8 September September 2011
ADVANCE TOPICS IN ANALYSIS - REAL NOTES COMPILED BY KATO LA Introductions 8 September 011 15 September 011 Nested Interval Theorem: If A 1 ra 1, b 1 s, A ra, b s,, A n ra n, b n s, and A 1 Ě A Ě Ě A n
More informationDefinition: A binary relation R from a set A to a set B is a subset R A B. Example:
Chapter 9 1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R A B. Example: Let A = {0,1,2} and B = {a,b} {(0, a), (0, b), (1,a), (2, b)} is a relation from A to B.
More informationFinal Exam December 12, 2017
Introduction to Artificial Intelligence CSE 473, Autumn 2017 Dieter Fox Final Exam December 12, 2017 Directions This exam has 7 problems with 111 points shown in the table below, and you have 110 minutes
More informationValence automata as a generalization of automata with storage
Valence automata as a generalization of automata with storage Georg Zetzsche Technische Universität Kaiserslautern D-CON 2013 Georg Zetzsche (TU KL) Valence automata D-CON 2013 1 / 23 Example (Pushdown
More informationHow to Pop a Deep PDA Matters
How to Pop a Deep PDA Matters Peter Leupold Department of Mathematics, Faculty of Science Kyoto Sangyo University Kyoto 603-8555, Japan email:leupold@cc.kyoto-su.ac.jp Abstract Deep PDA are push-down automata
More informationReview: Review: 'pgq imgp'q th P H h 'pgq for some g P Gu H; kerp'q tg P G 'pgq 1 H u G.
Review: A homomorphism is a map ' : G Ñ H between groups satisfying 'pg 1 g 2 q 'pg 1 q'pg 2 q for all g 1,g 2 P G. Anisomorphism is homomorphism that is also a bijection. We showed that for any homomorphism
More informationAnalysis of Algorithms. Outline. Single Source Shortest Path. Andres Mendez-Vazquez. November 9, Notes. Notes
Analysis of Algorithms Single Source Shortest Path Andres Mendez-Vazquez November 9, 01 1 / 108 Outline 1 Introduction Introduction and Similar Problems General Results Optimal Substructure Properties
More informationPruning digraphs for reducing catchment zones
Pruning digraphs for reducing catchment zones Fernand Meyer Centre de Morphologie Mathématique 19 March 2017 ernand Meyer (Centre de Morphologie Mathématique) Pruning digraphs for reducing catchment zones
More informationSemantic Groundedness I: Kripke and Yablo
Semantic Groundedness I: Kripke and Yablo Jönne Speck 21st April 2012 The full Tarski T-schema leads to paradox. It is consistent, if restricted to sentences without truth predicate but we want more. What
More informationFinal Exam December 12, 2017
Introduction to Artificial Intelligence CSE 473, Autumn 2017 Dieter Fox Final Exam December 12, 2017 Directions This exam has 7 problems with 111 points shown in the table below, and you have 110 minutes
More informationCMPS 6610 Fall 2018 Shortest Paths Carola Wenk
CMPS 6610 Fall 018 Shortest Paths Carola Wenk Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk Paths in graphs Consider a digraph G = (V, E) with an edge-weight function w
More informationFlows. Chapter Circulations
Chapter 4 Flows For a directed graph D = (V,A), we define δ + (U) := {(u,v) A : u U,v / U} as the arcs leaving U and δ (U) := {(u,v) A u / U,v U} as the arcs entering U. 4. Circulations In a directed graph
More informationSubrings and Ideals 2.1 INTRODUCTION 2.2 SUBRING
Subrings and Ideals Chapter 2 2.1 INTRODUCTION In this chapter, we discuss, subrings, sub fields. Ideals and quotient ring. We begin our study by defining a subring. If (R, +, ) is a ring and S is a non-empty
More informationRepresentations of the Kau man Bracket Skein Algebra of a Surface
Representations of the Kau man Bracket Skein Algebra of a Surface IAS Member s Seminar November 20, 2017 Helen Wong von Neumann fellow Quantum topology In the early 1980s, the Jones polynomial for knots
More informationAbsorbing Lexicographic Products in Metarouting
Absorbing Lexicographic Products in Metarouting Eric Parsonage, Hung X. Nguyen, Matthew Roughan University of Adelaide, Australia {eric.parsonage,hung.nguyen,matthew.roughan}@adelaide.edu.au Abstract Modern
More informationDiscrete Mathematics. Spring 2017
Discrete Mathematics Spring 2017 Previous Lecture Principle of Mathematical Induction Mathematical Induction: Rule of Inference Mathematical Induction: Conjecturing and Proving Mathematical Induction:
More informationHOMEWORK 4 MATH B4900 DUE: 2/28/ Annihilators. Let R be a ring with 1, and let M be an R-module. The annihilator of M in R is
HOMEWORK 4 MATH B4900 DUE: 2/28/2018 SOLUTIONS Math B4900 Homework 4 2/28/2018 1. Annihilators. Let R be a ring with 1, and let M be an R-module. The annihilator of M in R is (a) Show that AnnpMq is an
More informationxy xyy 1 = ey 1 = y 1 i.e.
Homework 2 solutions. Problem 4.4. Let g be an element of the group G. Keep g fixed and let x vary through G. Prove that the products gx are all distinct and fill out G. Do the same for the products xg.
More informationCS 301. Lecture 18 Decidable languages. Stephen Checkoway. April 2, 2018
CS 301 Lecture 18 Decidable languages Stephen Checkoway April 2, 2018 1 / 26 Decidable language Recall, a language A is decidable if there is some TM M that 1 recognizes A (i.e., L(M) = A), and 2 halts
More informationMethods for Solving Linear Systems Part 2
Methods for Solving Linear Systems Part 2 We have studied the properties of matrices and found out that there are more ways that we can solve Linear Systems. In Section 7.3, we learned that we can use
More informationLinear algebra comments. Sophie Marques
Linear algebra comments Sophie Marques Friday 9 th October, 2015 2 Of course this does not cover all the class notes and it is not enough to do the midterm. It is just a way to extract the very very important
More informationLexicographic products in metarouting
Lexicographic products in metarouting Alexander J. T. Gurney Computer Laboratory University of Cambridge Email: Alexander.Gurney@cl.cam.ac.uk Timothy G. Griffin Computer Laboratory University of Cambridge
More informationData Gathering and Personalized Broadcasting in Radio Grids with Interferences
Data Gathering and Personalized Broadcasting in Radio Grids with Interferences Jean-Claude Bermond a,, Bi Li a,b, Nicolas Nisse a, Hervé Rivano c, Min-Li Yu d a Coati Project, INRIA I3S(CNRS/UNSA), Sophia
More informationFall 1999 Formal Language Theory Dr. R. Boyer. 1. There are other methods of nding a regular expression equivalent to a nite automaton in
Fall 1999 Formal Language Theory Dr. R. Boyer Week Four: Regular Languages; Pumping Lemma 1. There are other methods of nding a regular expression equivalent to a nite automaton in addition to the ones
More informationHoare Logic and Model Checking
Hoare Logic and Model Checking Kasper Svendsen University of Cambridge CST Part II 2016/17 Acknowledgement: slides heavily based on previous versions by Mike Gordon and Alan Mycroft Introduction In the
More information6.842 Randomness and Computation March 3, Lecture 8
6.84 Randomness and Computation March 3, 04 Lecture 8 Lecturer: Ronitt Rubinfeld Scribe: Daniel Grier Useful Linear Algebra Let v = (v, v,..., v n ) be a non-zero n-dimensional row vector and P an n n
More informationAlgorithms: Lecture 12. Chalmers University of Technology
Algorithms: Lecture 1 Chalmers University of Technology Today s Topics Shortest Paths Network Flow Algorithms Shortest Path in a Graph Shortest Path Problem Shortest path network. Directed graph G = (V,
More informationSolving Linear Systems Using Gaussian Elimination
Solving Linear Systems Using Gaussian Elimination DEFINITION: A linear equation in the variables x 1,..., x n is an equation that can be written in the form a 1 x 1 +...+a n x n = b, where a 1,...,a n
More informationDiscrete Mathematics. Spring 2017
Discrete Mathematics Spring 2017 Previous Lecture Principle of Mathematical Induction Mathematical Induction: rule of inference Mathematical Induction: Conjecturing and Proving Climbing an Infinite Ladder
More informationSection 4.2: Mathematical Induction 1
Section 4.: Mathematical Induction 1 Over the next couple of sections, we shall consider a method of proof called mathematical induction. Induction is fairly complicated, but a very useful proof technique,
More informationDiscrete Optimization 2010 Lecture 3 Maximum Flows
Remainder: Shortest Paths Maximum Flows Discrete Optimization 2010 Lecture 3 Maximum Flows Marc Uetz University of Twente m.uetz@utwente.nl Lecture 3: sheet 1 / 29 Marc Uetz Discrete Optimization Outline
More information1 Alphabets and Languages
1 Alphabets and Languages Look at handout 1 (inference rules for sets) and use the rules on some examples like {a} {{a}} {a} {a, b}, {a} {{a}}, {a} {{a}}, {a} {a, b}, a {{a}}, a {a, b}, a {{a}}, a {a,
More informationRegular Expressions and Language Properties
Regular Expressions and Language Properties Mridul Aanjaneya Stanford University July 3, 2012 Mridul Aanjaneya Automata Theory 1/ 47 Tentative Schedule HW #1: Out (07/03), Due (07/11) HW #2: Out (07/10),
More informationData Structures and Algorithms CMPSC 465
ata Structures and Algorithms MPS LTUR ellman-ford Shortest Paths Algorithm etecting Negative ost ycles Adam Smith // A. Smith; based on slides by K. Wayne,. Leiserson,. emaine L. Negative Weight dges
More informationLecture Topic 4: Chapter 7 Sampling and Sampling Distributions
Lecture Topic 4: Chapter 7 Sampling and Sampling Distributions Statistical Inference: The aim is to obtain information about a population from information contained in a sample. A population is the set
More information5.4 Solve Special Types of Linear Systems
Warm up Solve the system of equations. x + y = 3 5x + 3y = 1 5.4 Solve Special Types of Linear Systems I can... 1.) determine whether a system has no solution, infinitely many solutions, or exactly one
More informationLast week: proétale topology on X, with a map of sites ν : X proét X ét. Sheaves on X proét : O + X = ν O + X ét
INTEGRAL p-adi HODGE THEORY, TALK 3 (RATIONAL p-adi HODGE THEORY I, THE PRIMITIVE OMPARISON THEOREM) RAFFAEL SINGER (NOTES BY JAMES NEWTON) 1. Recap We x /Q p complete and algebraically closed, with tilt
More informationDYNAMICAL CUBES AND A CRITERIA FOR SYSTEMS HAVING PRODUCT EXTENSIONS
DYNAMICAL CUBES AND A CRITERIA FOR SYSTEMS HAVING PRODUCT EXTENSIONS SEBASTIÁN DONOSO AND WENBO SUN Abstract. For minimal Z 2 -topological dynamical systems, we introduce a cube structure and a variation
More informationStochastic Shortest Path Problems
Chapter 8 Stochastic Shortest Path Problems 1 In this chapter, we study a stochastic version of the shortest path problem of chapter 2, where only probabilities of transitions along different arcs can
More informationTheoretical Computer Science. Partially dynamic efficient algorithms for distributed shortest paths
Theoretical Computer Science 411 (2010) 1013 1037 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs Partially dynamic efficient algorithms
More informationLecture 11: Random Variables
EE5110: Probability Foundations for Electrical Engineers July-November 2015 Lecture 11: Random Variables Lecturer: Dr. Krishna Jagannathan Scribe: Sudharsan, Gopal, Arjun B, Debayani The study of random
More informationData Gathering and Personalized Broadcasting in Radio Grids with Interferences
Data Gathering and Personalized Broadcasting in Radio Grids with Interferences Jean-Claude Bermond a,b,, Bi Li b,a,c, Nicolas Nisse b,a, Hervé Rivano d, Min-Li Yu e a Univ. Nice Sophia Antipolis, CNRS,
More informationCMSC 858F: Algorithmic Game Theory Fall 2010 BGP and Interdomain Routing
CMSC 858F: Algorithmic Game Theory Fall 2010 BGP an Interomain Routing Instructor: Mohamma T. Hajiaghayi Scribe: Yuk Hei Chan November 3, 2010 1 Overview In this lecture, we cover BGP (Borer Gateway Protocol)
More informationDiscrete Mathematics Review
CS 1813 Discrete Mathematics Discrete Mathematics Review or Yes, the Final Will Be Comprehensive 1 Truth Tables for Logical Operators P Q P Q False False False P Q False P Q False P Q True P Q True P True
More informationOn principal eigenpair of temporal-joined adjacency matrix for spreading phenomenon Abstract. Keywords: 1 Introduction
1,3 1,2 1 2 3 r A ptq pxq p0q 0 pxq 1 x P N S i r A ptq r A ÝÑH ptq i i ÝÑH t ptq i N t1 ÝÑ ź H ptq θ1 t 1 0 i `t1 ri ` A r ÝÑ H p0q ra ptq t ra ptq i,j 1 i j t A r ptq i,j 0 I r ś N ˆ N mś ĂA l A Ą m...
More informationCombinatorial Optimization
Combinatorial Optimization Problem set 8: solutions 1. Fix constants a R and b > 1. For n N, let f(n) = n a and g(n) = b n. Prove that f(n) = o ( g(n) ). Solution. First we observe that g(n) 0 for all
More information14. Rational maps It is often the case that we are given a variety X and a morphism defined on an open subset U of X. As open sets in the Zariski
14. Rational maps It is often the case that we are given a variety X and a morphism defined on an open subset U of X. As open sets in the Zariski topology are very large, it is natural to view this as
More informationMATH 387 ASSIGNMENT 2
MATH 387 ASSIGMET 2 SAMPLE SOLUTIOS BY IBRAHIM AL BALUSHI Problem 4 A matrix A ra ik s P R nˆn is called symmetric if a ik a ki for all i, k, and is called positive definite if x T Ax ě 0 for all x P R
More informationDiscrete Optimization 2010 Lecture 2 Matroids & Shortest Paths
Matroids Shortest Paths Discrete Optimization 2010 Lecture 2 Matroids & Shortest Paths Marc Uetz University of Twente m.uetz@utwente.nl Lecture 2: sheet 1 / 25 Marc Uetz Discrete Optimization Matroids
More informationReal Time Value Iteration and the State-Action Value Function
MS&E338 Reinforcement Learning Lecture 3-4/9/18 Real Time Value Iteration and the State-Action Value Function Lecturer: Ben Van Roy Scribe: Apoorva Sharma and Tong Mu 1 Review Last time we left off discussing
More informationPathfinding through Congruences
Pathfinding through Congruences Alexander J. T. Gurney and Timothy G. Griffin Computer Laboratory, University of Cambridge, UK Abstract. Congruences of path algebras are useful in the definition and analysis
More informationThis pre-publication material is for review purposes only. Any typographical or technical errors will be corrected prior to publication.
This pre-publication material is for review purposes only. Any typographical or technical errors will be corrected prior to publication. Copyright Pearson Canada Inc. All rights reserved. Copyright Pearson
More informationLecture Notes 1 Basic Probability. Elements of Probability. Conditional probability. Sequential Calculation of Probability
Lecture Notes 1 Basic Probability Set Theory Elements of Probability Conditional probability Sequential Calculation of Probability Total Probability and Bayes Rule Independence Counting EE 178/278A: Basic
More informationAdvanced topic: Space complexity
Advanced topic: Space complexity CSCI 3130 Formal Languages and Automata Theory Siu On CHAN Chinese University of Hong Kong Fall 2016 1/28 Review: time complexity We have looked at how long it takes to
More informationProof Techniques (Review of Math 271)
Chapter 2 Proof Techniques (Review of Math 271) 2.1 Overview This chapter reviews proof techniques that were probably introduced in Math 271 and that may also have been used in a different way in Phil
More informationScribes: Po-Hsuan Wei, William Kuzmaul Editor: Kevin Wu Date: October 18, 2016
CS 267 Lecture 7 Graph Spanners Scribes: Po-Hsuan Wei, William Kuzmaul Editor: Kevin Wu Date: October 18, 2016 1 Graph Spanners Our goal is to compress information about distances in a graph by looking
More informationSingle Source Shortest Paths
CMPS 00 Fall 017 Single Source Shortest Paths Carola Wenk Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk Paths in graphs Consider a digraph G = (V, E) with an edge-weight
More informationLecture 7: Shortest Paths in Graphs with Negative Arc Lengths. Reading: AM&O Chapter 5
Lecture 7: Shortest Paths in Graphs with Negative Arc Lengths Reading: AM&O Chapter Label Correcting Methods Assume the network G is allowed to have negative arc lengths but no directed negativelyweighted
More information6.207/14.15: Networks Lectures 4, 5 & 6: Linear Dynamics, Markov Chains, Centralities
6.207/14.15: Networks Lectures 4, 5 & 6: Linear Dynamics, Markov Chains, Centralities 1 Outline Outline Dynamical systems. Linear and Non-linear. Convergence. Linear algebra and Lyapunov functions. Markov
More informationLecture 2: Homotopy invariance
Lecture 2: Homotopy invariance Wegivetwoproofsofthefollowingbasicfact, whichallowsustodotopologywithvectorbundles. The basic input is local triviality of vector bundles (Definition 1.12). Theorem 2.1.
More informationProblem One: Order Relations i. What three properties does a binary relation have to have to be a partial order?
CS103 Handout 16 Fall 2011 November 4, 2011 Extra Practice Problems Many of you have expressed interest in additional practice problems to review the material from the first four weeks of CS103. This handout
More informationSeparation Logic. Part 3. Arthur Charguéraud. February / 66
Separation Logic Part 3 Arthur Charguéraud February 2014 1 / 66 Content Reasoning about loops For loops While loops Repeat-loops Total correctness Frame in a while loop Higher-order iterators for pure
More informationCSE 431/531: Analysis of Algorithms. Dynamic Programming. Lecturer: Shi Li. Department of Computer Science and Engineering University at Buffalo
CSE 431/531: Analysis of Algorithms Dynamic Programming Lecturer: Shi Li Department of Computer Science and Engineering University at Buffalo Paradigms for Designing Algorithms Greedy algorithm Make a
More informationLecture 1. Chapter 1. (Part I) Material Covered in This Lecture: Chapter 1, Chapter 2 ( ). 1. What is Statistics?
Lecture 1 (Part I) Material Covered in This Lecture: Chapter 1, Chapter 2 (2.1 --- 2.6). Chapter 1 1. What is Statistics? 2. Two definitions. (1). Population (2). Sample 3. The objective of statistics.
More informationNOTES WEEK 14 DAY 2 SCOT ADAMS
NOTES WEEK 14 DAY 2 SCOT ADAMS We igligt tat it s possible to ave two topological spaces and a continuous bijection from te one to te oter wose inverse is not continuous: Let I : r0, 2πq and let C : tpx,
More informationNotes for Lecture Notes 2
Stanford University CS254: Computational Complexity Notes 2 Luca Trevisan January 11, 2012 Notes for Lecture Notes 2 In this lecture we define NP, we state the P versus NP problem, we prove that its formulation
More informationLecture Notes 1 Basic Concepts of Mathematics MATH 352
Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,
More informationOpenFst: An Open-Source, Weighted Finite-State Transducer Library and its Applications to Speech and Language. Part I. Theory and Algorithms
OpenFst: An Open-Source, Weighted Finite-State Transducer Library and its Applications to Speech and Language Part I. Theory and Algorithms Overview. Preliminaries Semirings Weighted Automata and Transducers.
More information