SlideShare a Scribd company logo
1 of 26
Download to read offline
(Fast) Methods for N-
Body Simulations
Speaker: Leslie Greengard
Presenters: Ryan Lee, Jeffrey Wang
Problem Statement
World’s Largest Singles Meetup
N-(human) Body Simulations
Astrophysical Systems
Molecular Dynamics
Body Deformation and Medical
Imaging
Robotics Control and Simulations (IoT)
In the Beginning
LOGY
Lolwut!?
They always said hardware was
better...
Holmberg 1941
Direct Method
Can we hit the O(n) ideal?
Mean-Field Theory
Hartree-Fock Method
Tree codes: Barnes-Hut Algo
Ventimiglia & Wayne, 2003
Populating the Tree
Ventimiglia & Wayne, 2003
Populating the Tree
Ventimiglia & Wayne, 2003
Populating the Tree
Ventimiglia & Wayne, 2003
Computing Forces
Ventimiglia & Wayne, 2003
Computing Forces
Ventimiglia & Wayne, 2003
Computing Forces
Ventimiglia & Wayne, 2003
O(n log(n))
The Top Ten Algorithms of the 20th Century
Jack Dongarra and Francis Sullivan editors of Computing in Science & Engineering published a list of
"The Top Ten Algorithms of the Century."
1. the Monte Carlo method or Metropolis algorithm, devised by John von Neumann, Stanislaw
Ulam, and Nicholas Metropolis;
2. the simplex method of linear programming, developed by George Dantzig;
3. the Krylov Subspace Iteration method, developed by Magnus Hestenes, Eduard Stiefel, and
Cornelius Lanczos;
4. the Householder matrix decomposition, developed by Alston Householder;
5. the Fortran compiler, developed by a team lead by John Backus;
6. the QR algorithm for eigenvalue calculation, developed by J Francis;
7. the Quicksort algorithm, developed by Anthony Hoare;
8. the Fast Fourier Transform, developed by James Cooley and John Tukey;
9. the Integer Relation Detection Algorithm, developed by Helaman Ferguson and Rodney
Forcade;
10. the fast Multipole algorithm, developed by Leslie Greengard and Vladimir Rokhlin;
● Invented in 1987
● O(N^2) to O(N)
FMM Innovations
● Duality Principle
○ Greengard approximated relationship between children and parents
● Merging and Shifting Expansions
○ If multipole has been already calculated for parent can avoid
calculating for children (and vice versa)
● Requires More Memory
http://www.physics.buffalo.edu/phy411-506-2004
http://courses.cs.washington.edu/courses/cse548/06wi/files/benchmarks/fmm.pdf
X
V
W
U
Simple Overview of Steps: all O(N)
X
V
W
U
1. Build Tree
2. Construct interaction lists
3. Upward Pass (bottom up)
4. Compute List Interactions
a. C+U
b. C+V (expansions localized)
c. C+W
d. C+X no need to calculate!
since X is dual of W
5. Downward Pass
6. Calculate at local level
How it works in brief
http://www.bu.edu/pasi/courses/12-steps-to-having-a-fast-
multipole-method-on-gpus/
Leslie Greengard
● Son of Paul Greengard
○ Nobel Laureate (Medicine)
○ Neuroscience + Signal Transduction
● Born in London (56 yo)
● Educated in the US
○ B.A. in mathematics from the Wesleyan
University (1979)
○ MD/PhD from the Yale School of Medicine
(1987)
■ Developed FMM here!
○ Ph.D. in computer science from Yale
University (1987)
● Director of the Courant Institute of Mathematical
Sciences (NYU)
● Current
○ Professor of Mathematics and Computer
Science at Courant Institute of Mathematical
Sciences (NYU)
Current Research and Future Directions

More Related Content

Similar to Fast N-body methods

Quaternions - Phoenix Bird presentation, v23
Quaternions - Phoenix Bird presentation, v23Quaternions - Phoenix Bird presentation, v23
Quaternions - Phoenix Bird presentation, v23
Herb Klitzner
 
Introduction to AI - Third Lecture
Introduction to AI - Third LectureIntroduction to AI - Third Lecture
Introduction to AI - Third Lecture
Wouter Beek
 
Steps Towards a History of Ethnomethodology in HCI
Steps Towards a History of Ethnomethodology in HCI Steps Towards a History of Ethnomethodology in HCI
Steps Towards a History of Ethnomethodology in HCI
butest
 

Similar to Fast N-body methods (20)

AI3391 Artificial Intelligence Session 25 Horn clause.pptx
AI3391 Artificial Intelligence Session 25 Horn clause.pptxAI3391 Artificial Intelligence Session 25 Horn clause.pptx
AI3391 Artificial Intelligence Session 25 Horn clause.pptx
 
TAAI 2016 Keynote Talk: Contention and Disruption
TAAI 2016 Keynote Talk: Contention and DisruptionTAAI 2016 Keynote Talk: Contention and Disruption
TAAI 2016 Keynote Talk: Contention and Disruption
 
Tech Quiz Nov 19,2013
Tech Quiz Nov 19,2013Tech Quiz Nov 19,2013
Tech Quiz Nov 19,2013
 
Dli milano rl_parton_sep
Dli milano rl_parton_sepDli milano rl_parton_sep
Dli milano rl_parton_sep
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Bruce Damer's talk on the Von Neumann Bottleneck to the Singularity Universit...
Bruce Damer's talk on the Von Neumann Bottleneck to the Singularity Universit...Bruce Damer's talk on the Von Neumann Bottleneck to the Singularity Universit...
Bruce Damer's talk on the Von Neumann Bottleneck to the Singularity Universit...
 
Quaternions - Phoenix Bird presentation, v23
Quaternions - Phoenix Bird presentation, v23Quaternions - Phoenix Bird presentation, v23
Quaternions - Phoenix Bird presentation, v23
 
The neurobiological nature of free will
The neurobiological nature of free willThe neurobiological nature of free will
The neurobiological nature of free will
 
General Understanding of Information
General Understanding of InformationGeneral Understanding of Information
General Understanding of Information
 
Superconducting qubits for quantum information an outlook
Superconducting qubits for quantum information an outlookSuperconducting qubits for quantum information an outlook
Superconducting qubits for quantum information an outlook
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Introduction to AI - Third Lecture
Introduction to AI - Third LectureIntroduction to AI - Third Lecture
Introduction to AI - Third Lecture
 
How to quantify hierarchy?
How to quantify hierarchy?How to quantify hierarchy?
How to quantify hierarchy?
 
Lecture1.pdf
Lecture1.pdfLecture1.pdf
Lecture1.pdf
 
Quantum teleportation
Quantum teleportationQuantum teleportation
Quantum teleportation
 
AI_Lecture_1.pptx
AI_Lecture_1.pptxAI_Lecture_1.pptx
AI_Lecture_1.pptx
 
Toward A Computational Theory of Everything
Toward A Computational Theory of EverythingToward A Computational Theory of Everything
Toward A Computational Theory of Everything
 
AlphaQuest Finals PES University (28 Feb 2015)
AlphaQuest Finals PES University (28 Feb 2015)AlphaQuest Finals PES University (28 Feb 2015)
AlphaQuest Finals PES University (28 Feb 2015)
 
Steps Towards a History of Ethnomethodology in HCI
Steps Towards a History of Ethnomethodology in HCI Steps Towards a History of Ethnomethodology in HCI
Steps Towards a History of Ethnomethodology in HCI
 
Shaastra Main Quiz 2016
Shaastra Main Quiz 2016Shaastra Main Quiz 2016
Shaastra Main Quiz 2016
 

Recently uploaded

The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptx
seri bangash
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
PirithiRaju
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Sérgio Sacani
 

Recently uploaded (20)

SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
Grade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its FunctionsGrade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its Functions
 
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
 
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
 
Clean In Place(CIP).pptx .
Clean In Place(CIP).pptx                 .Clean In Place(CIP).pptx                 .
Clean In Place(CIP).pptx .
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptx
 
300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx
 
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts ServiceJustdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 

Fast N-body methods

  • 1. (Fast) Methods for N- Body Simulations Speaker: Leslie Greengard Presenters: Ryan Lee, Jeffrey Wang
  • 3. World’s Largest Singles Meetup N-(human) Body Simulations
  • 6. Body Deformation and Medical Imaging
  • 7. Robotics Control and Simulations (IoT)
  • 10. They always said hardware was better... Holmberg 1941
  • 11. Direct Method Can we hit the O(n) ideal?
  • 14. Tree codes: Barnes-Hut Algo Ventimiglia & Wayne, 2003
  • 20. Computing Forces Ventimiglia & Wayne, 2003 O(n log(n))
  • 21. The Top Ten Algorithms of the 20th Century Jack Dongarra and Francis Sullivan editors of Computing in Science & Engineering published a list of "The Top Ten Algorithms of the Century." 1. the Monte Carlo method or Metropolis algorithm, devised by John von Neumann, Stanislaw Ulam, and Nicholas Metropolis; 2. the simplex method of linear programming, developed by George Dantzig; 3. the Krylov Subspace Iteration method, developed by Magnus Hestenes, Eduard Stiefel, and Cornelius Lanczos; 4. the Householder matrix decomposition, developed by Alston Householder; 5. the Fortran compiler, developed by a team lead by John Backus; 6. the QR algorithm for eigenvalue calculation, developed by J Francis; 7. the Quicksort algorithm, developed by Anthony Hoare; 8. the Fast Fourier Transform, developed by James Cooley and John Tukey; 9. the Integer Relation Detection Algorithm, developed by Helaman Ferguson and Rodney Forcade; 10. the fast Multipole algorithm, developed by Leslie Greengard and Vladimir Rokhlin; ● Invented in 1987 ● O(N^2) to O(N)
  • 22. FMM Innovations ● Duality Principle ○ Greengard approximated relationship between children and parents ● Merging and Shifting Expansions ○ If multipole has been already calculated for parent can avoid calculating for children (and vice versa) ● Requires More Memory http://www.physics.buffalo.edu/phy411-506-2004 http://courses.cs.washington.edu/courses/cse548/06wi/files/benchmarks/fmm.pdf X V W U
  • 23. Simple Overview of Steps: all O(N) X V W U 1. Build Tree 2. Construct interaction lists 3. Upward Pass (bottom up) 4. Compute List Interactions a. C+U b. C+V (expansions localized) c. C+W d. C+X no need to calculate! since X is dual of W 5. Downward Pass 6. Calculate at local level
  • 24. How it works in brief http://www.bu.edu/pasi/courses/12-steps-to-having-a-fast- multipole-method-on-gpus/
  • 25. Leslie Greengard ● Son of Paul Greengard ○ Nobel Laureate (Medicine) ○ Neuroscience + Signal Transduction ● Born in London (56 yo) ● Educated in the US ○ B.A. in mathematics from the Wesleyan University (1979) ○ MD/PhD from the Yale School of Medicine (1987) ■ Developed FMM here! ○ Ph.D. in computer science from Yale University (1987) ● Director of the Courant Institute of Mathematical Sciences (NYU) ● Current ○ Professor of Mathematics and Computer Science at Courant Institute of Mathematical Sciences (NYU)
  • 26. Current Research and Future Directions