meshes of trees mot and applications in integer arithmetic
play

Meshes of Trees (MoT) and Applications in Integer Arithmetic - PowerPoint PPT Presentation

Meshes of Trees (MoT) and Applications in Integer Arithmetic Panagiotis Voulgaris Petros Mol Course: Parallel Algorithms 1 Outline of the talk The two-Dimensional Mesh of Trees Definitions Properties Variations Integer


  1. Meshes of Trees (MoT) and Applications in Integer Arithmetic Panagiotis Voulgaris Petros Mol Course: Parallel Algorithms 1

  2. Outline of the talk � The two-Dimensional Mesh of Trees • Definitions • Properties • Variations � Integer Arithmetic Applications • Multiplication • Division • Powering • Root Finding 2

  3. Nodes 3 N 2 − 2 N 3 Mesh of Trees Construction: Definition grid N × N

  4. Properties 1)Diameter (maximum distance between any pair of processors): 4logN Proof Case 1: u belongs to a row tree and v to a column tree Dist<=2logN +2logN u u v v 4

  5. Properties (cont.) Case 2: u,v belong only to row trees (or only to column trees) u u u u Dist=logN –r +2logN + logN + s<=4logN since r>=s v v u u 5

  6. Properties (cont) � 2)Bisection Width( the minimum number of wires that have to be removed in order to disconnect the network into two halves with “almost” identical number of processors) : N (Proof omitted) Thus meshes of trees enjoy both small diameter and large bisection width . This fact makes them a more efficient structure than arrays and simple trees 6

  7. Recursive Decomposition N N × × Mesh of trees Four disjoint copies of Mesh of trees N N 2 2 Importance: This property makes mesh of trees appropriate for recursive algorithms for parallel computation 7

  8. “Ideal” Parallel Computer P: Processor P+M P+M P+M P+M M: Memory P+M P+M P+M P+M Every processor is linked to every other processor. P+M P+M P+M P+M Advantage : Speed !! Drawback : Cost P+M P+M P+M P+M 8

  9. “Ideal” Parallel Computer P M P M Process/Memory separation Every Processor has direct access to a P M P M memory register Again here the degree of each node becomes P M P M large as the number of processor increases … … Idea : Why not “simulate” the complete bipartite graph? P M P M 9

  10. 10 “Ideal” Parallel Computer

  11. 11 “Ideal” Parallel Computer

  12. 12 “Ideal” Parallel Computer

  13. Benefits and Drawbacks K + Simulation of any step of in 2logN steps N N , + Bounded degree graph with essentially the computational power as K N N , + We have actually constructed the NxN mesh of Trees 2 3 N - The mesh of Trees has nearly nodes whereas the initial complete bipartite graph had only 2N Solution: Later 13

  14. 14 Transformation to mesh of Trees Back

  15. 15 Variations 1)

  16. 16 Variations (cont) ≡

  17. 17 Variations (cont) 2)

  18. 18 Variations (cont.) 3)

  19. 19 Variations (cont.) 4)

Recommend


More recommend