2015-6-3Windows Scheduling Problems for Broadcast System 1 Amotz Bar-Noy, and Richard E. Ladner Presented by Qiaosheng Shi.

Slides:



Advertisements
Similar presentations
Chapter 4: Informed Heuristic Search
Advertisements

1 Decomposing Hypergraphs with Hypertrees Raphael Yuster University of Haifa - Oranim.
CSE 311 Foundations of Computing I
Algorithm Design Techniques: Greedy Algorithms. Introduction Algorithm Design Techniques –Design of algorithms –Algorithms commonly used to solve problems.
Greedy Algorithms Greed is good. (Some of the time)
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Parallel Scheduling of Complex DAGs under Uncertainty Grzegorz Malewicz.
Deterministic Selection and Sorting Prepared by John Reif, Ph.D. Analysis of Algorithms.
Combinatorial Algorithms
CSE115/ENGR160 Discrete Mathematics 02/28/12
Discrete Structure Li Tak Sing( 李德成 ) Lectures
Rajat K. Pal. Chapter 3 Emran Chowdhury # P Presented by.
CPSC 668Set 10: Consensus with Byzantine Failures1 CPSC 668 Distributed Algorithms and Systems Fall 2009 Prof. Jennifer Welch.
June 3, 2015Windows Scheduling Problems for Broadcast System 1 Amotz Bar-Noy, and Richard E. Ladner Presented by Qiaosheng Shi.
1 Huffman Codes. 2 Introduction Huffman codes are a very effective technique for compressing data; savings of 20% to 90% are typical, depending on the.
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
Tirgul 10 Rehearsal about Universal Hashing Solving two problems from theoretical exercises: –T2 q. 1 –T3 q. 2.
CSE115/ENGR160 Discrete Mathematics 03/03/11 Ming-Hsuan Yang UC Merced 1.
CPSC 668Set 10: Consensus with Byzantine Failures1 CPSC 668 Distributed Algorithms and Systems Fall 2006 Prof. Jennifer Welch.
CPSC 411, Fall 2008: Set 4 1 CPSC 411 Design and Analysis of Algorithms Set 4: Greedy Algorithms Prof. Jennifer Welch Fall 2008.
Near-Optimal Network Design with Selfish Agents By Elliot Anshelevich, Anirban Dasgupta, Eva Tardos, Tom Wexler STOC’03 Presented by Mustafa Suleyman CIFTCI.
CSE 421 Algorithms Richard Anderson Lecture 6 Greedy Algorithms.
Unit 11a 1 Unit 11: Data Structures & Complexity H We discuss in this unit Graphs and trees Binary search trees Hashing functions Recursive sorting: quicksort,
Ecole Polytechnique, Nov 7, Online Job Scheduling Marek Chrobak University of California, Riverside.
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
4.8 Huffman Codes These lecture slides are supplied by Mathijs de Weerd.
Week 2: Greedy Algorithms
Building Suffix Trees in O(m) time Weiner had first linear time algorithm in 1973 McCreight developed a more space efficient algorithm in 1976 Ukkonen.
Tirgul 6 B-Trees – Another kind of balanced trees.
CPSC 411, Fall 2008: Set 4 1 CPSC 411 Design and Analysis of Algorithms Set 4: Greedy Algorithms Prof. Jennifer Welch Fall 2008.
Improved results for a memory allocation problem Rob van Stee University of Karlsruhe Germany Leah Epstein University of Haifa Israel WADS 2007 WAOA 2007.
Ch. 8 & 9 – Linear Sorting and Order Statistics What do you trade for speed?
Approximation schemes Bin packing problem. Bin Packing problem Given n items with sizes a 1,…,a n  (0,1]. Find a packing in unit-sized bins that minimizes.
“On an Algorithm of Zemlyachenko for Subtree Isomorphism” Yefim Dinitz, Alon Itai, Michael Rodeh (1998) Presented by: Masha Igra, Merav Bukra.
4.8 Huffman Codes These lecture slides are supplied by Mathijs de Weerd.
Fundamentals of Algorithms MCS - 2 Lecture # 7
Maximum Network Lifetime in Wireless Sensor Networks with Adjustable Sensing Ranges Cardei, M.; Jie Wu; Mingming Lu; Pervaiz, M.O.; Wireless And Mobile.
© 2010 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property. Case Studies: Bin Packing.
Operational Research & ManagementOperations Scheduling Workforce Scheduling 1.Days-Off Scheduling 2.Shift Scheduling 3. Cyclic Staffing Problem (& extensions)
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
Competitive Queue Policies for Differentiated Services Seminar in Packet Networks1 Competitive Queue Policies for Differentiated Services William.
Indexing and hashing Azita Keshmiri CS 157B. Basic concept An index for a file in a database system works the same way as the index in text book. For.
The Stackelberg Minimum Spanning Tree Game J. Cardinal, E. Demaine, S. Fiorini, G. Joret, S. Langerman, I. Newman, O. Weimann, The Stackelberg Minimum.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
R-Trees: A Dynamic Index Structure For Spatial Searching Antonin Guttman.
Minimizing Delay in Shared Pipelines Ori Rottenstreich (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel) Yoram Revah, Aviran Kadosh.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 7 Time Complexity Some slides are in courtesy.
Graph Algorithms Maximum Flow - Best algorithms [Adapted from R.Solis-Oba]
1 Windows Scheduling as a Restricted Version of Bin-packing. Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington.
Analysis & Design of Algorithms (CSCE 321)
Scheduling Techniques for Media-on-Demand Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington.
1 Scheduling Techniques for Broadcasting Popular Media. Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington.
The Stackelberg Minimum Spanning Tree Game J. Cardinal, E. Demaine, S. Fiorini, G. Joret, S. Langerman, I. Newman, O. Weimann, The Stackelberg Minimum.
Chapter 11. Chapter Summary  Introduction to trees (11.1)  Application of trees (11.2)  Tree traversal (11.3)  Spanning trees (11.4)
Analysis of Algorithms CS 477/677 Instructor: Monica Nicolescu Lecture 18.
4.8 Huffman Codes These lecture slides are supplied by Mathijs de Weerd.
Azita Keshmiri CS 157B Ch 12 indexing and hashing
PC trees and Circular One Arrangements
Chapter 5. Optimal Matchings
1.3 Modeling with exponentially many constr.
Lecture 9 Greedy Strategy
4.8 Huffman Codes These lecture slides are supplied by Mathijs de Weerd.
Richard Anderson Lecture 6 Greedy Algorithms
Data Structure and Algorithms
Richard Anderson Lecture 7 Greedy Algorithms
Richard Anderson Winter 2019 Lecture 7
Switching Lemmas and Proof Complexity
Analysis of Algorithms CS 477/677
Presentation transcript:

Windows Scheduling Problems for Broadcast System 1 Amotz Bar-Noy, and Richard E. Ladner Presented by Qiaosheng Shi

Windows Scheduling Problems for Broadcast System 2 Review Windows scheduling problem  The optimal windows scheduling problem, H(W).  The optimal harmonic windows scheduling problem, N(h). Perfect schedule and tree representation  If all leaves are distinct in forest, the corresponding schedule is perfect channel schedule.  However, there exist perfect channel schedule that cannot be embedded in a tree. Asymptotic bounds for H(W) and N(h)

Windows Scheduling Problems for Broadcast System 3 Outline The greedy algorithm The combination technique Solutions for small h (=2,3,4,5) Open problems & my project plan

Windows Scheduling Problems for Broadcast System 4 The Greedy algorithm For harmonic windows scheduling problem  Can be generalized to the general windows scheduling problems. Several points  Perfect channel schedule (NP-hard)  Tree representation  To avoid collisions, we have to decrease the window size of some pages (temporally)  In perfect channel schedule, each page has w i ’<=w i.  The goal: decrease the difference w i -w i ’ (w i =i).

Windows Scheduling Problems for Broadcast System 5 The Greedy algorithm Basic idea  Consider the schedule for the pages with smaller window size first. (3->2: 1/6; 5->4: 1/20)  Insert page i at i-th round, i=1,…, n.  At i-th round, find a perfect placement for page i such that minimizes the difference w i -w i ’ (w i =i).  In order to keep track of placements for pages, we represent each channel by a tree, where pages are assigned only to some leaf of the trees.  Terminate when there is no place for page i.

Windows Scheduling Problems for Broadcast System 6 The Greedy algorithm Two labels: page and window. Open tree: there is some leaves not assigned to pages. Close tree: all leaves are assigned to pages. Initially, all the trees are open trees with one window leaf whose value is 1. Insert one page at a time and terminate when all trees are closed.  Terminate when there is no place for current page.

Windows Scheduling Problems for Broadcast System 7 The Greedy algorithm The way to find the placement for page i:  is the ordered list of the labels of all the leaves in the forest that haven ’ t assigned to pages. Let for r is the index for minimum Let and T s be the tree that contains  If, then assign that leaf to page i. ( replacement )  Otherwise, add children to that leaf. The first child is labeled with page label i and the rest are labeled with the window label ( split )

Windows Scheduling Problems for Broadcast System 8 The Greedy algorithm (1) (2) 3 (3) h=3 page leaf (1) window label (3 mod 1)<(3 mod 2) d r =3 (4) (4 mod 2)<(4 mod 3) d r =2 (5 mod 4)<(5 mod 3) d r =1

Windows Scheduling Problems for Broadcast System 9 The Greedy algorithm For h=4

Windows Scheduling Problems for Broadcast System 10 Two Possible Modifications Try to keep leaves with small window labels open as long as possible. Split: When d r is a composite number, d r =a*b*c…, split that node in several steps following an increasing order of these prime factors. d r =12 (x r ) 12x r (12x r ) … … … (12x r ) … 12x r (12x r ) (4x r ) (2x r )

Windows Scheduling Problems for Broadcast System 11 Two Possible Modifications In the second modification, the algorithm sometimes prefers to assigning the new label i to a large window label on the expense of not minimizing i-i ’. On this way, it leaves smaller window labels for possibly better split operations It was not the case that one version always outperforms the other versions

Windows Scheduling Problems for Broadcast System 12 The Greedy algorithm Theorem: The greedy algorithm construct a perfect schedule for some value n. Problem  No analytical bounds  Perfect channel schedule each page is scheduled on a single channel each page is periodic: one exactly every w i ’ time slots  There exist perfect channel schedule that cannot be embedded in a tree

Windows Scheduling Problems for Broadcast System 13 The combination technique How to combine schedule together to get new schedule for larger number of channels? For, let -schedule be a schedule of the pages u,.., v on h channels such that page i appears at least once in any consecutive i slots for. Magnification Lemma:, for any integer. … … … …

Windows Scheduling Problems for Broadcast System 14 The combination technique Example of Magnification Lemma schedule … … … … 10 … … … … 19 … … 20 … … … … 39 … … schedule

Windows Scheduling Problems for Broadcast System 15 The combination technique Combination theorem: Proof: : Example: and => ; and =>.

Windows Scheduling Problems for Broadcast System 16 The combination technique Corollary Apply this corollary h-1 times starting with schedule we have the well-known schedule. A better asymptotic result than the schedule may be obtained by taking other known schedule on h>1 channels and applying the combination theorem.

Windows Scheduling Problems for Broadcast System 17 The combination technique Theorem: for any integer. Similar to Corollary: for. 3 divides h 4 divides h

Windows Scheduling Problems for Broadcast System 18 Solutions for small h For h=4 Page 7: [7;7;6]=3/20 Page 14: [14;13;13]=3/40 Page 27,28: [27;27;26]=3/80

Windows Scheduling Problems for Broadcast System 19 Solutions for small h Non-perfect schedule

Windows Scheduling Problems for Broadcast System 20 Open Problems The harmonic windows scheduling problem  Is the -schedule optimal?  Algorithm outputs better schedules.

Windows Scheduling Problems for Broadcast System 21 Is the -schedule optimal? If 3 windows a, b, c are prime to each other, there is at least one collision in any window of a*b*c slots. To avoid collision {2, 3, 7}, we need at least 1/42 fraction of a channel. 7 … … … 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 … … … … 7 3 _ _ 3 _ _ 3 _ _ 3 _ _ 3 … … … … … 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 … … … … 3 7 _ 3 _ _ 3 _ _ 3 _ _ 3 _ _ 3 _ _ 3 _ _ 3 … … 77 … … _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ … … … … … 3 _ _ 3 _ _ 3 _ _ 3 _ _ 3 _ _ 3 _ _ 3 _ _ 3 _ _ 3 … … 77 7

Windows Scheduling Problems for Broadcast System 22 Is the -schedule optimal? Other collisions: {2, 3, 5}, {2, 5, 7}, {2, 5, 9}, {2, 7, 9}, {3, 4, 5}, {3, 4, 7}, {3, 5, 7}, {3, 5, 8}, {3, 7, 8}, {3, 7, 10}, {4, 5, 7}, {4, 5, 9}, {4, 7, 9}, {5, 6, 7}, {5, 7, 8}, {5, 7, 9}, {5, 8, 9}, {7, 8, 9}, {7, 9, 10}. These collisions are not independent of each other.

Windows Scheduling Problems for Broadcast System 23 Rough idea of my project Two constraints for perfect channel schedule:  each page in one channel  a fixed window size for each page Our constraints:  each page in one channel  Schedule is cyclic Tree representation of cyclic channel schedule  One ordered tree per channel  Leaves represent pages. But the leaves are not distinct  Same way to compute period length and offset of leaves (not pages) (Cyclic channel schedule)

Windows Scheduling Problems for Broadcast System 24 Rough idea of my project New constraints:  All the leaves for page i should have same period length.  The gap of offsets between two consecutive leaves for page i is less than w i =i. All the cyclic channel schedules can be embedded in trees. … … … …

Windows Scheduling Problems for Broadcast System 25 Thanks You !