SlideShare a Scribd company logo
How Asymmetry Helps Load
       Balancing
       Berthold Voecking
      Speaker: Wenkai Dai
   Tutor: Dr.Tobias Friedrich &
     Dr.Thomas Sauerwald
Introduction
Formal task

• Given n balls and n bins
• Randomly placing sequentially n balls into n bins
• Goal: minimize the maximum number of balls in the same bin
• balls are indistinguishable and global knowledge of previously
  assigned balls is not available
Basic idea

• Each ball is placed into a bin chosen independently and
  uniformly at random from the set of all bins
• The expected maximum load of
• Give the proof later
Better Idea

• Azar et al.[1994, 1999] suggest uniform greedy algorithm
• For each ball, choose d>= 2 locations independently and
  uniformly at random from the set of bins
• Place the ball into the bin with the fewest ball
• Maximum load of only
• d=2 yields great improvement over one choice, larger d just a
  smaller factor better than 2 choice
•
Three types of selection

– (1) uniform and independent
– (2) nonuniform and independent
  • A nonuniform algorithm may choose the first location from
    the bins 0 to n/2-1 and the second location from the bins
    n/2 to n -1

– (3) nonuniform and dependent
  • The second choice may depend on the first choice, if the
    first location is i then the second location is

– Goal is to improve the uniform greedy algorithm
Three Classes of Algorithm
• [n]={0…n-1} denote the set of bins, 3 classes of algorithms
  depending on how the sample location is chosen from the
  probability space [n]^d
• Class 1: Uniform and independent. Each of the d locations of a
  ball is chosen uniformly and independently at random from [n].
• Class 2: (Possibly) nonuniform and independent. For 1<=i<=d,
  the ith location of a ball is chosen independently at random
  from [n] as defined by a probability distribution Di : [n][0,1].
• Class 3: (Possibly) nonuniform and (possibly) dependent. The d
  locations of a ball are chosen at random from the set [n]^d as
  defined by a probability distribution D : [n]^d[0,1].
Always-Go-Left Algorithm
• Introduce a multi-choice algorithm of class2 giving
  smaller maximum load than uniform greedy
  algorithm in class1
• Partitions the bins into d groups of almost equal size
• For each ball, choose one location from each group
• The i-th location of each ball is chose uniformly and
  independently at random from the i-th group
• Insert ball into a bin with minimum load among d
  locations
• Tie-breaking by asymmetric Always-Go-Left rule
Always-Go-Left Algorithm Example




Always-Go-Left when there are several locations with the same max load
d-ary Fibonacci numbers

• d-ary Fibonacci numbers
    • For k<= 0, Fd(k)=0, Fd(1) =1, and for k>=1,
• if d =2, it’s standard fibonacci sequence
Analysis of Always-Go-Left Algorithm

    • Max load is related to the Fibonacci numbers

    • Define                ,   is golden ration
 •
• In general,                     and
•
Analysis of Always-Go-Left Algorithm

• We have              so that




• Even for d =2, there is a significant improvement
• AGL yields maximum load of                      instead of
Analysis of Always-Go-Left Algorithm

• Uniform greedy scheme achieves the best load balancing among
  all algorithms of class 1
• This results holds regardless of the used tie-breaking mechanism,
  showing that the tie-breaking mechanism is irrelevant in the
  uniform case
• Partitioning the bins and using a fair tie-breaking doesn’t reduce
  the number of balls in the fullest bin below
• The combination of partitioning and unfair tie breaking is very
  crucial for our result
Is The Further Improvement Possible ?

• Whether other kind of choices for the d locations or other
  schemes for deciding which of these locations receives the ball
  can improve the result
• Negative answer by this theorem
Conclude

• By Theorems 1 and 2, apart from some additive constants, the
  AGL algorithm achieves the best possible maximum load
  among all the sequential multi-choice algorithms, namely
Generalization

• Interesting to assuming more balls than bins or even an infinite
  sequence of insertions and deletions
• An oblivious adversary specifies a possibly infinite sequence
  of insertions and deletions of balls
• All the requests on-line, the sequence of insertions and
  deletions is presented one by one without knowing future
  requests
• Time t denote time at which request is presented but not yet
  served. A ball is said to exist at time t if it is stored in one of
  the bins at this time.
On-line Model conclusion

• The uniform greedy get a maximum load of
• Always-Go-Left get
• Multiple choice processes are fundamentally different from
  the single-choice variant because the multiple-choice does not
  increase with the number of balls but depending only on n and
  d.
Proof of the upper bounds

• Use a witness tree to upper-bound the probability for the
  event a bin contains too many balls
• This witness tree is a rooted tree the nodes of which represent
  balls whose randomly chosen locations are arranged in a bad
  fashion
• Simplifying assumptions
   • All the events are stochastically independent
   • At most n balls exist at any time, h=1
• Finally it will remove all these assumption
Witness Tree

• A bad event when the maximum load exceeds some threshold
  value, implies the “ activation of a witness tree”
• the probability for the existence of an activated witness tree
  upper-bounds the probability that a bad event occurs.
• It will show the activation of a witness tree is unlikely.
  Consequently, the bad event that is witnessed by this structure
  is unlikely as well.
Symmetric Witness Tree

• A symmetric witness tree of order L is a complete d-ary tree of
  height L with d^L leaf nodes
• Each node v represents a ball, but some ball may be
  represented by several nodes
• Not every assignment of balls to nodes gives a witness tree
• Each non-root node v with parent node u has to exist at the
  insertion time of u’s ball
• Each node of the witness tree describes an event that may
  occur or not depending on the random choices for the
  locations of the balls
Symmetric Witness Tree




• The edge event are defined in terms of the alternative
  locations of balls instead of their final resting place
• If all of edges and all its leaf node are activated then we say
  this tree is activated.
• existence of a bin with more than L+3 balls implies the
  existence of an activated witness tree of order L.
The following proof is on blackboard
Experiment Result
Summary
• Always-Go-Left process yields a smaller maximum
  load than the uniform greedy process
• The both of asymmetry and the partitioning of the set
  of bins are crucial
• Using an asymmetric tie-breaking mechanism without
  partitioning doesn’t help
• Also using partitioning but with fair tie-breaking
  doesn’t help either
• Multiple choice is totally different from the single
  choice
Mensa Time and Thanks
Questions

More Related Content

Similar to Seminar load balance

Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
Sanghyuk Chun
 
decision tree.pdf
decision tree.pdfdecision tree.pdf
decision tree.pdf
DivitGoyal2
 
Ff meeting 25nov03
Ff meeting 25nov03Ff meeting 25nov03
Ff meeting 25nov03
moniajit
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligence
ananth
 
Decision tree for data mining and computer
Decision tree for data mining and computerDecision tree for data mining and computer
Decision tree for data mining and computer
tttiba
 
greedy algorithm.pptx good for understanding
greedy algorithm.pptx good for understandinggreedy algorithm.pptx good for understanding
greedy algorithm.pptx good for understanding
HUSNAINAHMAD39
 
Unit7
Unit7Unit7
Unit7
chempa
 
Learn from Example and Learn Probabilistic Model
Learn from Example and Learn Probabilistic ModelLearn from Example and Learn Probabilistic Model
Learn from Example and Learn Probabilistic Model
Junya Tanaka
 
Mean shift and Hierarchical clustering
Mean shift and Hierarchical clustering Mean shift and Hierarchical clustering
Mean shift and Hierarchical clustering
Yan Xu
 
Tokyo conference
Tokyo conferenceTokyo conference
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
Maninda Edirisooriya
 
Sess07 Clustering02_KohonenNet.pptx
Sess07 Clustering02_KohonenNet.pptxSess07 Clustering02_KohonenNet.pptx
Sess07 Clustering02_KohonenNet.pptx
SarthakKabi2
 
Lec 6 bsc csit
Lec 6 bsc csitLec 6 bsc csit
Lec 6 bsc csit
Subash Chandra Pakhrin
 
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
Jihwan Bang
 
Search algorithms for discrete optimization
Search algorithms for discrete optimizationSearch algorithms for discrete optimization
Search algorithms for discrete optimization
Sally Salem
 
Decision tree induction
Decision tree inductionDecision tree induction
Decision tree induction
thamizh arasi
 
Games
GamesGames
L3. Decision Trees
L3. Decision TreesL3. Decision Trees
L3. Decision Trees
Machine Learning Valencia
 
Sudoku
SudokuSudoku
Sudoku
Yara Ali
 
Sorting Algorithms
Sorting AlgorithmsSorting Algorithms
Sorting Algorithms
Pranay Neema
 

Similar to Seminar load balance (20)

Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
 
decision tree.pdf
decision tree.pdfdecision tree.pdf
decision tree.pdf
 
Ff meeting 25nov03
Ff meeting 25nov03Ff meeting 25nov03
Ff meeting 25nov03
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligence
 
Decision tree for data mining and computer
Decision tree for data mining and computerDecision tree for data mining and computer
Decision tree for data mining and computer
 
greedy algorithm.pptx good for understanding
greedy algorithm.pptx good for understandinggreedy algorithm.pptx good for understanding
greedy algorithm.pptx good for understanding
 
Unit7
Unit7Unit7
Unit7
 
Learn from Example and Learn Probabilistic Model
Learn from Example and Learn Probabilistic ModelLearn from Example and Learn Probabilistic Model
Learn from Example and Learn Probabilistic Model
 
Mean shift and Hierarchical clustering
Mean shift and Hierarchical clustering Mean shift and Hierarchical clustering
Mean shift and Hierarchical clustering
 
Tokyo conference
Tokyo conferenceTokyo conference
Tokyo conference
 
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
 
Sess07 Clustering02_KohonenNet.pptx
Sess07 Clustering02_KohonenNet.pptxSess07 Clustering02_KohonenNet.pptx
Sess07 Clustering02_KohonenNet.pptx
 
Lec 6 bsc csit
Lec 6 bsc csitLec 6 bsc csit
Lec 6 bsc csit
 
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
[CVPR2022, LongVersion] Online Continual Learning on a Contaminated Data Stre...
 
Search algorithms for discrete optimization
Search algorithms for discrete optimizationSearch algorithms for discrete optimization
Search algorithms for discrete optimization
 
Decision tree induction
Decision tree inductionDecision tree induction
Decision tree induction
 
Games
GamesGames
Games
 
L3. Decision Trees
L3. Decision TreesL3. Decision Trees
L3. Decision Trees
 
Sudoku
SudokuSudoku
Sudoku
 
Sorting Algorithms
Sorting AlgorithmsSorting Algorithms
Sorting Algorithms
 

Recently uploaded

বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 

Recently uploaded (20)

বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 

Seminar load balance

  • 1. How Asymmetry Helps Load Balancing Berthold Voecking Speaker: Wenkai Dai Tutor: Dr.Tobias Friedrich & Dr.Thomas Sauerwald
  • 3. Formal task • Given n balls and n bins • Randomly placing sequentially n balls into n bins • Goal: minimize the maximum number of balls in the same bin • balls are indistinguishable and global knowledge of previously assigned balls is not available
  • 4. Basic idea • Each ball is placed into a bin chosen independently and uniformly at random from the set of all bins • The expected maximum load of • Give the proof later
  • 5. Better Idea • Azar et al.[1994, 1999] suggest uniform greedy algorithm • For each ball, choose d>= 2 locations independently and uniformly at random from the set of bins • Place the ball into the bin with the fewest ball • Maximum load of only • d=2 yields great improvement over one choice, larger d just a smaller factor better than 2 choice •
  • 6. Three types of selection – (1) uniform and independent – (2) nonuniform and independent • A nonuniform algorithm may choose the first location from the bins 0 to n/2-1 and the second location from the bins n/2 to n -1 – (3) nonuniform and dependent • The second choice may depend on the first choice, if the first location is i then the second location is – Goal is to improve the uniform greedy algorithm
  • 7. Three Classes of Algorithm • [n]={0…n-1} denote the set of bins, 3 classes of algorithms depending on how the sample location is chosen from the probability space [n]^d • Class 1: Uniform and independent. Each of the d locations of a ball is chosen uniformly and independently at random from [n]. • Class 2: (Possibly) nonuniform and independent. For 1<=i<=d, the ith location of a ball is chosen independently at random from [n] as defined by a probability distribution Di : [n][0,1]. • Class 3: (Possibly) nonuniform and (possibly) dependent. The d locations of a ball are chosen at random from the set [n]^d as defined by a probability distribution D : [n]^d[0,1].
  • 8. Always-Go-Left Algorithm • Introduce a multi-choice algorithm of class2 giving smaller maximum load than uniform greedy algorithm in class1 • Partitions the bins into d groups of almost equal size • For each ball, choose one location from each group • The i-th location of each ball is chose uniformly and independently at random from the i-th group • Insert ball into a bin with minimum load among d locations • Tie-breaking by asymmetric Always-Go-Left rule
  • 9. Always-Go-Left Algorithm Example Always-Go-Left when there are several locations with the same max load
  • 10. d-ary Fibonacci numbers • d-ary Fibonacci numbers • For k<= 0, Fd(k)=0, Fd(1) =1, and for k>=1, • if d =2, it’s standard fibonacci sequence
  • 11. Analysis of Always-Go-Left Algorithm • Max load is related to the Fibonacci numbers • Define , is golden ration • • In general, and •
  • 12. Analysis of Always-Go-Left Algorithm • We have so that • Even for d =2, there is a significant improvement • AGL yields maximum load of instead of
  • 13. Analysis of Always-Go-Left Algorithm • Uniform greedy scheme achieves the best load balancing among all algorithms of class 1 • This results holds regardless of the used tie-breaking mechanism, showing that the tie-breaking mechanism is irrelevant in the uniform case • Partitioning the bins and using a fair tie-breaking doesn’t reduce the number of balls in the fullest bin below • The combination of partitioning and unfair tie breaking is very crucial for our result
  • 14. Is The Further Improvement Possible ? • Whether other kind of choices for the d locations or other schemes for deciding which of these locations receives the ball can improve the result • Negative answer by this theorem
  • 15. Conclude • By Theorems 1 and 2, apart from some additive constants, the AGL algorithm achieves the best possible maximum load among all the sequential multi-choice algorithms, namely
  • 16. Generalization • Interesting to assuming more balls than bins or even an infinite sequence of insertions and deletions • An oblivious adversary specifies a possibly infinite sequence of insertions and deletions of balls • All the requests on-line, the sequence of insertions and deletions is presented one by one without knowing future requests • Time t denote time at which request is presented but not yet served. A ball is said to exist at time t if it is stored in one of the bins at this time.
  • 17. On-line Model conclusion • The uniform greedy get a maximum load of • Always-Go-Left get • Multiple choice processes are fundamentally different from the single-choice variant because the multiple-choice does not increase with the number of balls but depending only on n and d.
  • 18. Proof of the upper bounds • Use a witness tree to upper-bound the probability for the event a bin contains too many balls • This witness tree is a rooted tree the nodes of which represent balls whose randomly chosen locations are arranged in a bad fashion • Simplifying assumptions • All the events are stochastically independent • At most n balls exist at any time, h=1 • Finally it will remove all these assumption
  • 19. Witness Tree • A bad event when the maximum load exceeds some threshold value, implies the “ activation of a witness tree” • the probability for the existence of an activated witness tree upper-bounds the probability that a bad event occurs. • It will show the activation of a witness tree is unlikely. Consequently, the bad event that is witnessed by this structure is unlikely as well.
  • 20. Symmetric Witness Tree • A symmetric witness tree of order L is a complete d-ary tree of height L with d^L leaf nodes • Each node v represents a ball, but some ball may be represented by several nodes • Not every assignment of balls to nodes gives a witness tree • Each non-root node v with parent node u has to exist at the insertion time of u’s ball • Each node of the witness tree describes an event that may occur or not depending on the random choices for the locations of the balls
  • 21. Symmetric Witness Tree • The edge event are defined in terms of the alternative locations of balls instead of their final resting place • If all of edges and all its leaf node are activated then we say this tree is activated. • existence of a bin with more than L+3 balls implies the existence of an activated witness tree of order L.
  • 22. The following proof is on blackboard
  • 24. Summary • Always-Go-Left process yields a smaller maximum load than the uniform greedy process • The both of asymmetry and the partitioning of the set of bins are crucial • Using an asymmetric tie-breaking mechanism without partitioning doesn’t help • Also using partitioning but with fair tie-breaking doesn’t help either • Multiple choice is totally different from the single choice
  • 25. Mensa Time and Thanks