+ All Categories
Transcript
Page 1: Introduction to Scientific Computing II

Introduction to Scientific

Computing II

Gaussian Elimination

Dr. Miriam Mehl

Institut für

Informatik

Scientific Computing

In Computer Science

Page 2: Introduction to Scientific Computing II

Typical SLE

• sparse• band structure

411

1411

11411

1141

114

Page 3: Introduction to Scientific Computing II

Example

]9[

]8[

]7[

]6[

]5[

]4[

]3[

]2[

]1[

]9[

]8[

]7[

]6[

]5[

]4[

]3[

]2[

]1[

410100000

141010000

014001000

100410100

010141010

001014001

000100410

000010141

000001014

f

f

f

f

f

f

f

f

f

u

u

u

u

u

u

u

u

u

Page 4: Introduction to Scientific Computing II

Gaussian Elimination

411

1411

141

1411

11411

****

141

****

114

Page 5: Introduction to Scientific Computing II

Gaussian Elimination

411

1411

141

1411

*****

****

****

****

114

Page 6: Introduction to Scientific Computing II

Gaussian Elimination

411

1411

141

****

****

****

****

****

114

Page 7: Introduction to Scientific Computing II

Gaussian Elimination

411

1411

****

****

****

****

****

****

114

Page 8: Introduction to Scientific Computing II

Gaussian Elimination

411

****

***

****

****

****

****

****

114

Page 9: Introduction to Scientific Computing II

Gaussian Elimination

***

***

***

****

****

****

****

****

114

Page 10: Introduction to Scientific Computing II

Gaussian Elimination

**

**

***

****

****

****

****

****

114

Page 11: Introduction to Scientific Computing II

Gaussian Elimination

*

**

***

****

****

****

****

****

114

Page 12: Introduction to Scientific Computing II

Gaussian Elimination (LU)

411

1411

141

1411

11411

1141

141

1141

114

1

1

1

1

1

1

1

1

1

Page 13: Introduction to Scientific Computing II

Gaussian Elimination (LU)

411

1411

141

1411

11411

****

141

****

114

1

1

1

1

1

1*

1

1*

1

Page 14: Introduction to Scientific Computing II

Gaussian Elimination (LU)

411

1411

141

1411

*****

****

****

****

114

1

1

1

1

1*

1**

1*

1*

1

Page 15: Introduction to Scientific Computing II

Gaussian Elimination (LU)

411

1411

141

****

****

****

****

****

114

1

1

1

1*

1**

1***

1*

1*

1

Page 16: Introduction to Scientific Computing II

Gaussian Elimination (LU)

411

1411

****

****

****

****

****

****

114

1

1

1*

1**

1***

1***

1*

1*

1

Page 17: Introduction to Scientific Computing II

Gaussian Elimination (LU)

411

****

***

****

****

****

****

****

114

1

1*

1**

1***

1***

1***

1*

1*

1

Page 18: Introduction to Scientific Computing II

Gaussian Elimination (LU)

***

***

***

****

****

****

****

****

114

1*

1**

1***

1***

1***

1***

1*

1*

1

Page 19: Introduction to Scientific Computing II

Gaussian Elimination (LU)

**

**

***

****

****

****

****

****

114

1**

1***

1***

1***

1***

1***

1*

1*

1

Page 20: Introduction to Scientific Computing II

Gaussian Elimination (LU)

*

**

***

****

****

****

****

****

114

1***

1***

1***

1***

1***

1***

1*

1*

1

Page 21: Introduction to Scientific Computing II

Gaussian Elimination – Costs

1

1

1

1

1

1

1

1

1

411

1411

141

1411

11411

1141

141

1141

114

Page 22: Introduction to Scientific Computing II

Gaussian Elimination – Costs

O(1/h)2

411

1411

141

1411

11411

****

141

****

114

1

1

1

1

1

**

1

**

1

Page 23: Introduction to Scientific Computing II

Gaussian Elimination – Costs

O(1/h)2*(1/h)2

*

**

***

****

****

****

****

****

114

****

****

****

****

****

****

**

**

1

Page 24: Introduction to Scientific Computing II

*

**

***

****

****

****

****

****

114

****

****

****

****

****

****

**

**

1

Gaussian Elimination – Costs

O(1/h)2*(1/h)2 + O(1/h)

Page 25: Introduction to Scientific Computing II

Gaussian Elimination – Costs

O(1/h)2*(1/h)2 + O(1/h)*(1/h)2

*

**

***

****

****

****

****

****

114

****

****

****

****

****

****

**

**

1

Page 26: Introduction to Scientific Computing II

Gaussian Elimination – Costs

O(1/h)2*(1/h)2 + O(1/h)*(1/h)2 + O(1/h)

*

**

***

****

****

****

****

****

114

Page 27: Introduction to Scientific Computing II

Gaussian Elimination – Costs

O(1/h)2*(1/h)2 + O(1/h)*(1/h)2 + O(1/h)*(1/h)2

*

**

***

****

****

****

****

****

114

Page 28: Introduction to Scientific Computing II

Gaussian Elimination – Costs

2D: O(1/h)4

3D: O(1/h)7

Page 29: Introduction to Scientific Computing II

Gaussian Elimination – Costs 2D

halloh runtime (HLRB2, 62 TFlop/s)

2-7 0.02 sec

2-8 0.27 sec

2-9 4.4 sec

2-10 1 min 16 sec

2-11 18 min 55 sec

2-12 5 h 02 min 40 sec

2-13 3 d 8 h 37 min 15 sec

Page 30: Introduction to Scientific Computing II

Gaussian Elimination – Costs 3D

hallo

h runtime (HLRB2, 62 TFlop/s)

2-6 4 min 44 sec

2-7 10 h 05 min 24 sec

2-8 53 d 19 h 21 min 17 sec

2-9 18 a 313 d 21 h 54 min 22 sec


Top Related