uke 10, forelesning 2 · inf110 – algorithms & data structures algorithm complexity –...

30
Almira Karabeg, W10.L2 Page 1 Department of Informatics, University of Oslo, Norway INF110 – Algorithms & Data Structures W10.L2 W10.L2 Uke 10, Uke 10, Forelesning 2 Forelesning 2

Upload: others

Post on 02-Apr-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 1Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

W10.L2W10.L2

Uke 10,Uke 10,

Forelesning 2Forelesning 2

Page 2: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 2Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

HuskHusk……

Vi diskuterte:

•• HuffmanHuffman koder (kapittel 10.1.2) koder (kapittel 10.1.2)

Page 3: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 3Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

TEMA: TEMA: AlgorithmAlgorithm ComplexityComplexity

ComplexityComplexity ofofalgorithmsalgorithms

Page 4: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 4Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Note: This is from in210, first 2 lectures

Page 5: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 5Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 6: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 6Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 7: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 7Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 8: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 8Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 9: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 9Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 10: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 10Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 11: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 11Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 12: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 12Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 13: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 13Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 14: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 14Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 15: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 15Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 16: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 16Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 17: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 17Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 18: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 18Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 19: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 19Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 20: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 20Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 21: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 21Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 22: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 22Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 23: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 23Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 24: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 24Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 25: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 25Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 26: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 26Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 27: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 27Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 28: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 28Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 29: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 29Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

AlgorithmAlgorithm ComplexityComplexity –– Forelesning 2 (W10.L2)Forelesning 2 (W10.L2)

Page 30: Uke 10, Forelesning 2 · INF110 – Algorithms & Data Structures Algorithm Complexity – Forelesning 2 (W10.L2) Note: This is from in210, first 2 lectures

Almira Karabeg, W10.L2 Page 30Department of Informatics, University of Oslo, NorwayINF110 – Algorithms & Data Structures

NESTE GANG NESTE GANG –– Oppsummering Oppsummering

ALMIRA KARABEG foreleser!Vi introduserer sortering (kapittel 7)• Sortering (kapittel 7.1 -7.3)