Collection Depots Facility Location Problems in Trees R. Benkoczi, B. Bhattacharya, A. Tamir 陳冠伶‧王湘叡‧李佳霖‧張經略 Jun 12, 2007.

Slides:



Advertisements
Similar presentations
Traveling Salesperson Problem
Advertisements

Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
Transform and Conquer Chapter 6. Transform and Conquer Solve problem by transforming into: a more convenient instance of the same problem (instance simplification)
Greedy Algorithms Greed is good. (Some of the time)
Greed is good. (Some of the time)
Anany Levitin ACM SIGCSE 1999SIG. Outline Introduction Four General Design Techniques A Test of Generality Further Refinements Conclusion.
Lecture 12: Revision Lecture Dr John Levine Algorithms and Complexity March 27th 2006.
Polynomial Time Approximation Schemes Presented By: Leonid Barenboim Roee Weisbert.
Approximation Algorithms Chapter 5: k-center. Overview n Main issue: Parametric pruning –Technique for approximation algorithms n 2-approx. algorithm.
CS4413 Divide-and-Conquer
Chapter 6: Transform and Conquer
Algorithm Design Techniques: Divide and Conquer. Introduction Divide and conquer – algorithm makes at least two recursive calls Subproblems should not.
A polylogarithmic approximation of the minimum bisection Robert Krauthgamer The Hebrew University Joint work with Uri Feige.
Discrete Optimization Shi-Chung Chang. Discrete Optimization Lecture #1 Today: Reading Assignments 1.Chapter 1 and the Appendix of [Pas82] 2.Chapter 1.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
Introduction to Approximation Algorithms Lecture 12: Mar 1.
P-Center & The Power of Graphs A part of the facility location problem set By Kiril Yershov and Alla Segal For Geometric Optimizations course Fall 2010.
Decision Tree Algorithm
Prune-and-search Strategy
TCSS 343, version 1.1 Algorithms, Design and Analysis Transform and Conquer Algorithms Presorting HeapSort.
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
Homework page 102 questions 1, 4, and 10 page 106 questions 4 and 5 page 111 question 1 page 119 question 9.
Tirgul 13. Unweighted Graphs Wishful Thinking – you decide to go to work on your sun-tan in ‘ Hatzuk ’ beach in Tel-Aviv. Therefore, you take your swimming.
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Greedy Algorithms Like dynamic programming algorithms, greedy algorithms are usually designed to solve optimization problems Unlike dynamic programming.
Design and Analysis of Algorithms - Chapter 41 Divide and Conquer The most well known algorithm design strategy: 1. Divide instance of problem into two.
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Trip Planning Queries F. Li, D. Cheng, M. Hadjieleftheriou, G. Kollios, S.-H. Teng Boston University.
A General Approach to Online Network Optimization Problems Seffi Naor Computer Science Dept. Technion Haifa, Israel Joint work: Noga Alon, Yossi Azar,
Priority Models Sashka Davis University of California, San Diego June 1, 2003.
10/31/02CSE Greedy Algorithms CSE Algorithms Greedy Algorithms.
CS 473 All Pairs Shortest Paths1 CS473 – Algorithms I All Pairs Shortest Paths.
Bold Stroke January 13, 2003 Advanced Algorithms CS 539/441 OR In Search Of Efficient General Solutions Joe Hoffert
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
© The McGraw-Hill Companies, Inc., Chapter 6 Prune-and-Search Strategy.
Order Statistics. Order statistics Given an input of n values and an integer i, we wish to find the i’th largest value. There are i-1 elements smaller.
1 Combinatorial Algorithms Parametric Pruning. 2 Metric k-center Given a complete undirected graph G = (V, E) with nonnegative edge costs satisfying the.
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
Christopher Moh 2005 Competition Programming Analyzing and Solving problems.
1 Prune-and-Search Method 2012/10/30. A simple example: Binary search sorted sequence : (search 9) step 1  step 2  step 3  Binary search.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness and course wrap up.
The Dominating Set and its Parametric Dual  the Dominated Set  Lan Lin prepared for theory group meeting on June 11, 2003.
Algorithms 2005 Ramesh Hariharan. Divide and Conquer+Recursion Compact and Precise Algorithm Description.
Variations of the Prize- Collecting Steiner Tree Problem Olena Chapovska and Abraham P. Punnen Networks 2006 Reporter: Cheng-Chung Li 2006/08/28.
Hedonic Clustering Games Moran Feldman Joint work with: Seffi Naor and Liane Lewin-Eytan.
Lecture 14 Jianjun Hu Department of Computer Science and Engineering University of South Carolina CSCE350 Algorithms and Data Structure.
Clustering Data Streams A presentation by George Toderici.
Lecture 20. Graphs and network models 1. Recap Binary search tree is a special binary tree which is designed to make the search of elements or keys in.
Efficient Algorithms for the Weighted 2-Center Problem in a Cactus Graph Qiaosheng Shi Joint work: Boaz Ben-moshe Binay Bhattacharya.
Advanced Algorithms Analysis and Design
CSC 421: Algorithm Design & Analysis
CSC 421: Algorithm Design & Analysis
Greedy Technique.
Paweł Gawrychowski, Nadav Krasnopolsky, Shay Mozes, Oren Weimann
Chapter 6 Transform-and-Conquer
CSC 421: Algorithm Design & Analysis
Haim Kaplan and Uri Zwick
CS 3343: Analysis of Algorithms
Computability and Complexity
Transform and Conquer This group of techniques solves a problem by a transformation to a simpler/more convenient instance of the same problem (instance.
On collection depots location problems
Chapter 6: Transform and Conquer
Divide-and-Conquer The most-well known algorithm design strategy:
CSC 421: Algorithm Design & Analysis
Backtracking and Branch-and-Bound
Chapter 1 Introduction.
CSC 421: Algorithm Design & Analysis
Sorting We have actually seen already two efficient ways to sort:
Presentation transcript:

Collection Depots Facility Location Problems in Trees R. Benkoczi, B. Bhattacharya, A. Tamir 陳冠伶‧王湘叡‧李佳霖‧張經略 Jun 12, 2007

Outline 張經略 K-median problem 李佳霖 1-median problem 王湘叡 1-center problem 陳冠伶 introduction

INTRODUCTION By 陳冠伶

Settings C ollection D epots F acility (service center) C lient (demand service)

Cost of Service Trip F F C C D D P1P1 P1P1 P2P2 P2P2 2(P 1 +P 2 ) ‧ w(c) Service Cost

Application (1) Express Transportation

Application (2) Garbage collection

Problem IN: given a tree and points of clients points of collection depots an integer k OUT Optimal placements of k facilities that minimizes some global function of the service cost for all clients.

Objective – Minimax Minimize the service cost of the most expensive client F F C C D D C C D D D D D D C C C C C C D D

1-center Minimize the maximum distance to the facility Minimax – center problems

k-center Minimize the maximum distance to the closest facility Minimax – center problems

Objective – Minisum Minimize the total service cost F F C C D D C C D D D D D D C C C C C C D D

Minisum – median problems 1-median Minimize the average distance to the facility

Minisum – median problems k-median Minimize the average distance to the closest facility

Classifications

Summary of Results Unrestricted 1-center problem O(n) Unrestricted median problems 1-median: O(nlogn) k-median: O(kn 3 ) Restricted k-median problem NP-complete Facility setup costs are not identical

1-CENTER PROBLEM BY 王湘叡

Prune and Search Every iteration, eliminate a fraction of impossible instances. Binary Search T(n)=T(n/2)+1 T(n)=O(lg n) How about

Observation c(f)=max min r(f, v i ) Service cost is non-decreasing when the facility goes away from the client.

Where could the facility be? A linear time algorithm could determine! T1T1 T2T2 TiTi TkTk

Initial tree client depot

Divide T(i) into S 1 and S 2 Find the centroid and partition the tree into two parts centroid S 1 > 1/3 |T(i)|S 2 > 1/3 |T(i)|

Find the X max Find the client X max with the largest service cost from the centroid. S1 S2 X max f f f opt must be in S 1

Special case Centroid is the optimal X max X’ max Should be optimal

Partition the clients Compute all depot distance Find the median δ med Separate all clients into two sets, K+ (red) and K- (blue) S2S2 δ med

Consider f’ in S 1, that depot distance δ(f’)< δ med δ(f’)< δ med S1S1 f’

Partition S 1 by δ med Find all f’, they form trees T 1, T 2, …,T n There are two cases, f opt is in ∪ T i or not T1T1 T2T2 T3T3 f f

f opt is in ∪ T i If f opt in red, consider K +, δ (f opt )< δ med < δ (K + ) For a facility F’ in S 1 and a client in S 2, δ (f opt, u) is in S 1 f opt f’ δ (f’, u)

f opt is in not ∪ T i If f opt is not in red, consider K -, δ (K - )< δ med < δ (f opt ) For a facility F’ in S and a client in S 2, δ (f opt, u) is in S 2 Similar to previous case Only f opt in ∪ T i is considered. f opt f’ δ (f opt, u)

Arbitrarily paired clients in K+ For each pair (u, v), Compute t uv s.t. w(v)(t uv +d(c,v))=w(u).(t uv +d(c,u)) Compare t med and d(f opt, c)+d((f opt,c),p(f opt, c)) f opt δ (f’, u) Details on f opt is in ∪ T i

f opt δ (f’, u) d(f opt, c)+d((f opt,c),p(f opt, c)) < t med consider t med <t uv d(f opt, c)+d((f opt,c),p(f opt, c))<t med <t uv

f opt δ (f’, u) d(f opt, c)+d((f opt,c),p(f opt, c)) > t med consider t med >t uv d(f opt, c)+d((f opt,c),p(f opt, c))>t med >t uv ¼ K + can be removed

1-MEDIAN PROBLEM BY 李佳霖

The 1-median Problem Find a placement for facility to minimize the cost of all tours. i.e. minimize the sum of weighted distances of the facility to client, then to optimal depot, and return to facility. For the path of a facility to a client, the closest depot can be found efficiently. Brute Force: Ο(n 2 ) Using Spine decomposition and pre-sorting: Ο(nlogn)

The Spine Decomposition r0r

Construct Search Tree r0r0 r0r0

Search Tree of SD r0r0

Super-path of Search Tree r0r0 r0r0 f f

Cost of Subtree c2c2 c2c2 d new cjcj cjcj f f v v c3c3 c3c3 c4c4 c4c4 c1c1 c1c1 d d d2d2 d2d2 d4d4 d4d4 d3d3 d3d3 d1d1 d1d1

Complexity Construction for the SD has time complexity Ο(n) and space complexity Ο(n) Costs of the subtrees can be evaluated in constant time once j is determined. If we use binary search with d new, we spend Ο(logn) time for every subtree. So Ο(log 2 n). Use the sequential search in sorted order. So Ο(logn). The 1-median collection depots problem in tree can be sloved in Ο(nlogn) time and Ο(n) space.

UNRESTRICTED K-MEDIAN PROBLEM BY 張經略

The objective To minimize the sum of facility opening costs plus service costs for servicing the clients.

The “ 自給自足 ” property (1/4) We fixed an arbitrary optimal solution and explore its structure.

The “ 自給自足 ” property (2/4) Consider an arbitrary vertex v. x v : minimize the trip cost of serving v y v :be a closest facility to v. client C v xvxv Assumed (for contradiction) servicing facility for client C yvyv T left T right

The “ 自給自足 ” property (3/4) client C v xvxv Assumed (for contradiction) servicing facility for client C yvyv T left T right

The “ 自給自足 ” property (4/4) The blue part of the following graph is proven by symmetry. v xvxv yvyv T left T right

The intuition… (1/2) The total cost can be partitioned into four categories: the red, yellow, blue cost and v. v xvxv yvyv T left T right

The intuition… (2/2) The optimal solution has to be a combination of optimal substructures You have to be “optimal” in the red (to minimize the red cost) and the yellow (to minimize the yellow cost). This almost leads to Dynamic Programming already!

The technical things Due to some complications, the final Dynamic Programming is much more complicated… But the proof requires no special technique beyond the “ 自給自足 ” property. The challenge is to devise the “right” recurrences to carry out the aforementioned intuitive approach.

Simple intuition, complicated recurrences… take a look

Time complexity Easily verified to be polynomial.