and 6.855J. Network Simplex Animations

Similar documents
Common Mistakes. Quick sort. Only choosing one pivot per iteration. At each iteration, one pivot per sublist should be chosen.

RBT Operations. The basic algorithm for inserting a node into an RBT is:

CSE 573 Problem Set 1. Answers on 10/17/08

CSS 343 Data Structures, Algorithms, and Discrete Math II. Balanced Search Trees. Yusuf Pisan

Binary Search Tree (Part 2 The AVL-tree)

Network-building. Introduction. Page 1 of 6

Gateways Placement in Backbone Wireless Mesh Networks

1 Permutations. Example 1. Lecture #2 Sept 26, Chris Piech CS 109 Combinatorics

mywbut.com Two agent games : alpha beta pruning

Introduction to. Algorithms. Lecture 10. Prof. Constantinos Daskalakis CLRS

Topic 23 Red Black Trees

5 AVL trees: deletion

Coding for Efficiency

Chapter 12. Cross-Layer Optimization for Multi- Hop Cognitive Radio Networks

Online Frequency Assignment in Wireless Communication Networks

Ancestral Recombination Graphs

BUILDING A SIMPLEX TABLEAU AND PROPER PIVOT SELECTION

Foundations of Distributed Systems: Tree Algorithms

Decision Mathematics practice paper

Graphs and Network Flows IE411. Lecture 14. Dr. Ted Ralphs

Splay tree concept Splaying operation: double-rotations Splay insertion Splay search Splay deletion Running time of splay tree operations

: Principles of Automated Reasoning and Decision Making Midterm

Permutations. Example 1. Lecture Notes #2 June 28, Will Monroe CS 109 Combinatorics

Optimisation and Operations Research

CSI33 Data Structures

CSE 332: Data Structures and Parallelism Games, Minimax, and Alpha-Beta Pruning. Playing Games. X s Turn. O s Turn. X s Turn.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Rating and Generating Sudoku Puzzles Based On Constraint Satisfaction Problems

Maintaining Communication in Multi-Robot Tree Coverage

Dynamic games: Backward induction and subgame perfection

Stanford University CS261: Optimization Handout 9 Luca Trevisan February 1, 2011

Adversary Search. Ref: Chapter 5

Past questions from the last 6 years of exams for programming 101 with answers.

Information Theory and Communication Optimal Codes

UMBC CMSC 671 Midterm Exam 22 October 2012

Game-Playing & Adversarial Search

Exercise 1. Consider the following figure. The shaded portion of the circle is called the sector of the circle corresponding to the angle θ.

Game Theory and Randomized Algorithms

CONVERGECAST, namely the collection of data from

An Optimal (d 1)-Fault-Tolerant All-to-All Broadcasting Scheme for d-dimensional Hypercubes

DECISION TREE TUTORIAL

Transportation Timetabling

10/5/2015. Constraint Satisfaction Problems. Example: Cryptarithmetic. Example: Map-coloring. Example: Map-coloring. Constraint Satisfaction Problems

COMP9414: Artificial Intelligence Adversarial Search

Self-Adjusting Binary Search Trees. Andrei Pârvu

1 Permutations. 1.1 Example 1. Lisa Yan CS 109 Combinatorics. Lecture Notes #2 June 27, 2018

isudoku Computing Solutions to Sudoku Puzzles w/ 3 Algorithms by: Gavin Hillebrand Jamie Sparrow Jonathon Makepeace Matthew Harris

MITOCW 6. AVL Trees, AVL Sort

CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2012 Thorsten Joachims. Lecture 17: Heaps and Priority Queues

Examination paper for TDT4120 Algorithms and Data Structures

Rumors Across Radio, Wireless, and Telephone

CSE 100: RED-BLACK TREES

Problem A: Ordering supermarket queues

Energy-efficient Broadcasting in All-wireless Networks

CS 171, Intro to A.I. Midterm Exam Fall Quarter, 2016

Learning objective Various Methods for finding initial solution to a transportation problem

Foundations of Artificial Intelligence

UMBC 671 Midterm Exam 19 October 2009

Lecture 14. Questions? Friday, February 10 CS 430 Artificial Intelligence - Lecture 14 1

Approximation Algorithms for Conflict-Free Vehicle Routing

Decision Mathematics D2 Advanced/Advanced Subsidiary. Thursday 6 June 2013 Morning Time: 1 hour 30 minutes

Checkpoint Questions Due Monday, October 7 at 2:15 PM Remaining Questions Due Friday, October 11 at 2:15 PM

Topic 1: defining games and strategies. SF2972: Game theory. Not allowed: Extensive form game: formal definition

Solving Problems by Searching

MITOCW watch?v=xsgorvw8j6q

SYDE 112, LECTURE 34 & 35: Optimization on Restricted Domains and Lagrange Multipliers

Practice Problems: Calculus in Polar Coordinates

The Evolution Tree: A Maintenance-Oriented Software Development Model

UNIVERSITY of PENNSYLVANIA CIS 391/521: Fundamentals of AI Midterm 1, Spring 2010

Competitive Distributed Spectrum Access in QoS-Constrained Cognitive Radio Networks

Adversarial Search 1

Design of Parallel Algorithms. Communication Algorithms

A PageRank Algorithm based on Asynchronous Gauss-Seidel Iterations

Physical Synthesis of Bus Matrix for High Bandwidth Low Power On-chip Communications

Minimum Cost Topology Construction for Survivable Wireless Mesh Networks in Rural Area

Module 3 Greedy Strategy

2 person perfect information

Midterm. CS440, Fall 2003

Computational aspects of two-player zero-sum games Course notes for Computational Game Theory Section 3 Fall 2010

Modeling, Analysis and Optimization of Networks. Alberto Ceselli

Conversion Masters in IT (MIT) AI as Representation and Search. (Representation and Search Strategies) Lecture 002. Sandro Spina

LECTURE 19 - LAGRANGE MULTIPLIERS

CS188 Spring 2014 Section 3: Games

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Enumeration of Pin-Permutations

CS 188 Fall Introduction to Artificial Intelligence Midterm 1

Travel time uncertainty and network models

PROJECT 5: DESIGNING A VOICE MODEM. Instructor: Amir Asif

Balanced Trees. Balanced Trees Tree. 2-3 Tree. 2 Node. Binary search trees are not guaranteed to be balanced given random inserts and deletes

CS : Data Structures

TIME- OPTIMAL CONVERGECAST IN SENSOR NETWORKS WITH MULTIPLE CHANNELS

Efficient Algorithms for Maximum Lifetime Data Gathering and Aggregation in Wireless Sensor Networks 1,2

THE gates which are most popular in the logic synthesis

COCI 2008/2009 Contest #2, 15 th November 2008 TASK KORNISLAV RESETO PERKET SVADA SETNJA CAVLI

CS188 Spring 2011 Written 2: Minimax, Expectimax, MDPs

Algorithms for Genetics: Basics of Wright Fisher Model and Coalescent Theory

6.1 - Introduction to Periodic Functions

Huffman Coding - A Greedy Algorithm. Slides based on Kevin Wayne / Pearson-Addison Wesley

Dijkstra s Algorithm (5/9/2013)

Solutions to Problem Set 6 - Fall 2008 Due Tuesday, Oct. 21 at 1:00

Transcription:

.8 and 6.8J Network Simplex Animations

Calculating A Spanning Tree Flow -6 7 6 - A tree with supplies and demands. (Assume that all other arcs have a flow of ) What is the flow in arc (,)?

Calculating A Spanning Tree Flow -6 7 6 - To calculate flows, iterate up the tree, and find an arc whose flow is uniquely determined. What is the flow in arc (,)?

Calculating A Spanning Tree Flow -6 7 What is the flow in arc (,)? 6 -

Calculating A Spanning Tree Flow -6 7 6 6 - What is the flow in arc (,6)?

Calculating A Spanning Tree Flow -6 7 6 6 - What is the flow in arc (7,)? 6

Calculating A Spanning Tree Flow -6 7 6 6 - What is the flow in arc (,6)? 7

Calculating A Spanning Tree Flow -6 7 6 6 - Note: there are two different ways of calculating the flow on (,), and both ways give a flow of. Is this a coincidence? 8

Calculating Simplex Multipliers for a Spanning Tree -6 7-6 - Here is a spanning tree with arc costs. How can one choose node potentials so that reduced costs of tree arcs is? Recall: the reduced cost of (i,j) is c ij - π i + π j 9

Calculating Simplex Multipliers for a Spanning Tree -6 7-6 - There is a redundant constraint in the minimum cost flow problem. One can set π arbitrarily. We will let π i =. What is the simplex multiplier for node?

Calculating Simplex Multipliers for a Spanning Tree -6-7 - 6 - The reduced cost of (,) is c - π + π =. Thus - + π =. What is the simplex multiplier for node 7?

Calculating Simplex Multipliers for a Spanning Tree -6-7 - -6 6 - The reduced cost of (,) is c 7 - π 7 + π =. Thus -6 - π + =. What is the simplex multiplier for node?

Calculating Simplex Multipliers for a Spanning Tree -6-7 - -6-6 - What is the simplex multiplier for node 6?

Calculating Simplex Multipliers for a Spanning Tree -6-7 - -6-6 - - What is the simplex multiplier for node?

Calculating Simplex Multipliers for a Spanning Tree - -6-7 - -6-6 - - What is the simplex multiplier for node?

Calculating Simplex Multipliers for a Spanning Tree -6-7 - -6-6 - - - - These are the simplex multipliers associated with this tree. They do not depend on arc flows, nor on costs of non-tree arcs. 6

Network Simplex Algorithm -, $, $, $, $, $, $, $ -, $ T L U The minimum Cost Flow Problem 7

Spanning tree flows - - T L U An Initial Spanning Tree Solution 8

Simplex Multipliers and Reduced Costs - - - The initial simplex multipliers and reduced costs? c = T L U What arcs are violating? 9

Add a violating arc to the spanning tree, creating a cycle,,,,,, u, x, Arc (,) is added to the tree, T L U What is the cycle, and how much flow can be sent?

Send Flow Around the Cycle,,,,,, u, x, units of flow were sent along the cycle., T L U What is the next spanning tree?

After a pivot,,,,,, u, x, The Updated Spanning Tree, T L U In a pivot, an arc is added to T and an arc is dropped from T.

Updating the Multipliers - - - The current multipliers and reduced costs T L U How can we make c π = and have other tree arcs have a reduced cost?

Deleting (,) from T splits T into two parts - - + -+ Adding to nodes on one side of the tree does not effect the reduced costs of any tree arc except (,). Why? T L U What value of should be chosen to make the reduced cost of (,) =?

The updated multipliers and reduced costs - - The updated multipliers and reduced costs T L U Is this tree solution optimal?

Add a violating arc to the spanning tree, creating a cycle,,,,, Add arc (,) to the spanning tree,,, T L U What is the cycle, and how much flow can be sent? 6

Send Flow Around the Cycle,,,,,, unit of flow was sent around the cycle.,, T L U What is the next spanning tree solution? 7

The next spanning tree solution,,,,,,,, T L U Here is the updated spanning tree solution 8

Updated the multipliers - - Here are the current multipliers T L U How should we modify the multipliers? 9

Updated the multipliers - + - Here are the current multipliers T L U What value should be?

The updated multipliers -6 - - Here are the updated multipliers. T L U Is the current spanning tree solution optimal?

The Optimal Solution -6 - Here is the optimal solution. - T L U No arc violates the optimality conditions.

Finding the Cycle 8 7 6 9

Use Depth and Predecessor 8 7 6 9 depth() = ; depth() = ; replace node by pred()

Use Depth and Predecessor 8 7 6 9 depth(9) = ; depth() = ; replace node 9 by pred(9)

Use Depth and Predecessor 8 7 6 9 depth() = ; depth() = ; replace node by pred(); replace node by pred() 6

Use Depth and Predecessor 8 7 6 9 depth(8) = ; depth(7) = ; replace node 8 by pred(8); replace node 7 by pred() 7

Use Depth and Predecessor 8 7 6 9 The least common ancestor of nodes and has been found. 8

Updating the multipliers: use the thread and depth 8 7 6 9 Suppose that arc (,8) will drop out of the tree. What is the subtree rooted at node 8? 9

Follow the thread starting with node 8 8 7 What is thread(8)? 6 9

Follow the thread starting with node 8 8 7 What is thread()? 6 9

Follow the thread starting with node 8 8 7 What is thread()? 6 9

Follow the thread starting with node 8 8 7 What is thread()? 6 9

Follow the thread starting with node 8 8 7 What is thread(6)? 6 9

The stopping rule depth = 6 8 7 Stopping rule: stop when depth(current node) depth(8) depth = 9