Reading. Minimum Spanning Trees. Outline. A File Sharing Problem. A Kevin Bacon Problem. Spanning Trees. Section 9.6



Similar documents
Distributed Systems Principles and Paradigms. Chapter 11: Distributed File Systems. Distributed File Systems. Example: NFS Architecture

Algorithmic Aspects of Access Networks Design in B3G/4G Cellular Networks

Schedule C. Notice in terms of Rule 5(10) of the Capital Gains Rules, 1993

Uses for Binary Trees -- Binary Search Trees

Link-Disjoint Paths for Reliable QoS Routing

MATH PLACEMENT REVIEW GUIDE

Change Your History How Can Soccer Knowledge Improve Your Business Processes?

Back left Back right Front left Front right. Blue Shield of California. Subscriber JOHN DOE. a b c d

Network Decoupling for Secure Communications in Wireless Sensor Networks

5 2 index. e e. Prime numbers. Prime factors and factor trees. Powers. worked example 10. base. power

Where preparation meets opportunity. My Academic Planner. Early Academic Outreach Program (EAOP)

One Ring to Rule them All: Service Discovery and Binding in Structured Peer-to-Peer Overlay Networks

Chapter 3 Chemical Equations and Stoichiometry

SecurView Antivirus Software Installation

How To Get A Usb Power Button On Your Computer (For A Free) For A Year (For Free) (For An Ipad) (Free) (Apple) (Mac) (Windows) (Power) (Net) (Winows

Last time Interprocedural analysis Dimensions of precision (flow- and context-sensitivity) Flow-Sensitive Pointer Analysis

SEE PAGE 2 FOR BRUSH MOTOR WIRING SEE PAGE 3 FOR MANUFACTURER SPECIFIC BLDC MOTOR WIRING EXAMPLES A

Predicting Current User Intent with Contextual Markov Models

Diagram Editing with Hypergraph Parser Support

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( )

SEE PAGE 2 FOR BRUSH MOTOR WIRING SEE PAGE 3 FOR MANUFACTURER SPECIFIC BLDC MOTOR WIRING EXAMPLES

A122 MARION COUNTY HEALTH BUILDING HVAC, GLAZING AND LIGHTING RENOVATION 75% DOCUMENTS 08/31/2015

Revised Conditions (January 2009) LLOYDS BANKING GROUP SHARE ISA CONDITIONS

The example is taken from Sect. 1.2 of Vol. 1 of the CPN book.

Recall from Last Time: Disjoint Set ADT

The art of Paperarchitecture (PA). MANUAL

the machine and check the components Black Yellow Cyan Magenta

1 Look at the text in each question. What does it say? Circle the correct letter A, B or C. Example

Reasoning to Solve Equations and Inequalities

Maximum area of polygon

Hospitals. Internal Revenue Service Information about Schedule H (Form 990) and its instructions is at

Oracle PL/SQL Programming Advanced

Quality and Pricing for Outsourcing Service: Optimal Contract Design

AC Circuits Three-Phase Circuits

Angles 2.1. Exercise Find the size of the lettered angles. Give reasons for your answers. a) b) c) Example

Process Mining Making Sense of Processes Hidden in Big Event Data

A Proxy Based Indirect Routing Scheme for Ad Hoc Wireless Networks

Vectors Summary. Projection vector AC = ( Shortest distance from B to line A C D [OR = where m1. and m

Usability Test Checklist

Discovering Petri Nets From Event Logs

Distributed Process Discovery and Conformance Checking

NerveCenter Protocol and Perl Metrics. November 2014 NCSD-PPM-01

CompactPCI Connectors acc. to PIGMG 2.0 Rev. 3.0

How fast can we sort? Sorting. Decision-tree model. Decision-tree for insertion sort Sort a 1, a 2, a 3. CS Spring 2009

Firm Objectives. The Theory of the Firm II. Cost Minimization Mathematical Approach. First order conditions. Cost Minimization Graphical Approach

Chapter. Contents: A Constructing decimal numbers

Upward Planar Drawings of Series-Parallel Digraphs with Maximum Degree Three

Jesus Performed Miracles

One Minute To Learn Programming: Finite Automata

Small Businesses Decisions to Offer Health Insurance to Employees

FEE-HELP INFORMATION SHEET FOR DOMESTIC FULL FEE STUDENTS

/*

1. Definition, Basic concepts, Types 2. Addition and Subtraction of Matrices 3. Scalar Multiplication 4. Assignment and answer key 5.

Chapter. Fractions. Contents: A Representing fractions

Operational Procedure: ACNC Data Breach Response Plan

- DAY 1 - Website Design and Project Planning

SKILL TEST IR(H) HELICOPTER SE ME Application and report form A. Udfyldes af ansøgeren/to be filled out by the applicant:

Higher. Exponentials and Logarithms 160

Boğaziçi University Department of Economics Spring 2016 EC 102 PRINCIPLES of MACROECONOMICS Problem Set 5 Answer Key

Quick Guide to Lisp Implementation

Standard Conditions for Street Traders The Royal Borough of Kensington and Chelsea. Revised standard conditions for street trading

Small Business Cloud Services

MANAGEMENT OF INFORMATION SECURITY AND FORENSICS

Lecture 5. Inner Product

Mathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100

Homeomorphic Alignment of Weighted Trees

Hermes: Dynamic Partitioning for Distributed Social Network Graph Databases

RECEIVED 2812 HAY 10 PMI2:00 FEC MAIL CEHTER

WHAT HAPPENS WHEN YOU MIX COMPLEX NUMBERS WITH PRIME NUMBERS?

Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding

11 + Non-verbal Reasoning

December Homework- Week 1


Geometry 7-1 Geometric Mean and the Pythagorean Theorem

Inter-domain Routing

SOLVING EQUATIONS BY FACTORING

Java CUP. Java CUP Specifications. User Code Additions You may define Java code to be included within the generated parser:

Learning Schemas for Unordered XML

How To Organize A Meeting On Gotomeeting

PRESENTED TO. Data Leakage Worldwide: The Effectiveness of Corporate Security Policies

SOLVING QUADRATIC EQUATIONS BY FACTORING

DITCH BOTTOM INLET TYPES C, D, E & H

CHAPTER 31 CAPACITOR

1 Fractions from an advanced point of view

Version 001 Summer Review #03 tubman (IBII ) 1

Transistor is a semiconductor device with fast respond and accuracy. There are two types

1 GSW IPv4 Addressing

Modeling Secure Connectivity of Self-Organized Wireless Ad Hoc Networks

The remaining two sides of the right triangle are called the legs of the right triangle.

The Cat in the Hat. by Dr. Seuss. A a. B b. A a. Rich Vocabulary. Learning Ab Rhyming

EQUATIONS OF LINES AND PLANES

Words Symbols Diagram. abcde. a + b + c + d + e

University of Mumbai Application for selection as Best College

Transcription:

Rin Stion 9.6 Minimum Spnnin Trs Outlin Minimum Spnnin Trs Prim s Alorithm Kruskl s Alorithm Extr:Distriut Shortst-Pth Alorithms A Fil Shrin Prolm Sy unh o usrs wnt to istriut il monst thmslvs. Btwn h pir o usrs thr is ost o snin inormtion. How n w most iintly t th il to vry usr? A Kvin Bon Prolm Evryon knows tht vry tor is 6 rs rom Kvin Bon. Inst o tryin to minimiz th istn, wht i w sk how mny ilms r n so tht vry tor is onnt to vry othr tor. Spnnin Trs Cn think o h o ths prolms s prunin s o rph to rriv t tr. Evry onnt rph ontins tr stutur. (Proly mny irnt trs.) From inition: A tr is n yli rph. Rmov n rom vry yl in rph, n you hv tr. 1

Minimum Spnnin Trs A Spnnin Tr Input: A rph G=(V, E) with wihts w. Output: A st o s T E, suh tht G =(V, T) is tr n th sum o wihts in T is minimiz. 6 Altrntly: Rmov s muh wiht s possil whil still rminin onnt. A Minimum Spnnin Tr Rll Dijkstr s Alorithm 6 For h no, mintin st known shortst pth At h itrtion, no with lst vlu is t its tru minimum, so ix tht no n upt nihors. Prim s Alorithm Prim s lorithm xmpl For h no, mintin st known ost onntin tht no to tr. At h itrtion, no with lst ost n to tr. Thn upt nihors. 6 A B C D E F G known ost 2

Runtim Ext sm s Dijkstr s lorithm On itrtion or h vrtx, n h itrtion must in min ovr ll vrtis, so O( ). Also hv to upt osts so totl o. I w us hp to in th minimum, thn h o upts tks O( ), n h in tks O( ), so. Qustion Whih is ttr, hp or no hp? Kruskl s Alorithm Kruskl s lorithm xmpl I: W wnt smll wiht s tht on t orm yl. So strt with o smllst wiht n s o inrsin wiht tht on t us yl, until w hv onnt th rph. 6 Implmntin Kruskl s N to rptly t lst ost. Us? N to hk i two vrtis r lry in sm omponnt. Us? How o w know whn to stop? Kruskl s psuoo Kruskl s Min Spnnin Tr( G ): Buil hp H rom s Whil # tr s < N-1 (u, v) = ltmin( H ) I in(v)!= in(u) Mrk (u, v) s tr Union(v, u) 3

Runtim Loop oul xut tims, n hp oprtions tk. Fun Topi: Intrnt Routin Exprimnt: Opn ommn lin n typ trrout www.yhoo.om Sm s Dijkstr s with hp, ut muh str in prti. Why? How os your omputr know how to t to Yhoo s omputr? Th Intrnt Grph Computrs r nos, s r links. Wiht links y ltny, nwith, lo, onomi tors, t. Thn run Dijkstr s lorithm, n you ll know st rout to ll othr omputrs. Prolm? Solution: Link-Stt Evry omputr knows its nihors. Sn tht nihor inormtion to vry othr no. Flooin: Eh no sns riv pkts to ll nihors. Evntully ll nos rh. Exmpl Prolms with Link-Stt Prolms? 6

Anothr Solution: Distn Vtor Exmpl Inst o tryin to shr omplt ntwork topoloy, just tll nihors out routs. A no vrtiss th st known vlu o th shortst pth rom it to ll othr nos. 6 Distn Vtor: Comprison lss t snt Intuitivly sms riht tht you shouln t n mp o th whol ntwork But: n sily t inonsistnt viws o th ntwork, lin to vry hvior, lik ininit loops Distn vtor us or 20 yrs in Intrnt. Link-Stt ommon now. Sl Not us in smll ntworks, lik our mpus ntwork Not us ross kon provirs ntwork topoloy is orport srt! Morl Grphs lorithms hv: Vry rih thory Compllin pplitions in lmost vry omin o CS, n mny yon. 5