際際滷

際際滷Share a Scribd company logo
Effective Python, Clean Code
About
Memoization
狩 螻一 覦覲牛伎  蟆曙,
 覯 螻壱 蟆郁骸襯 覃覈襴 ,
蟶朱 朱 譴覲糾 覦讌 螳.
Dynamic Progamming 旧  蠍一
=> 覃覈襴朱 螻糾 觜 
螻一  螳 觜 螳
f(4)= f(1) + f(0) + f(1) + f(1) + f(0)
 f襯 語  豐 9覯
9覯 螻 譴 覓企 4覯 譴覲糾
螳覲旧° 朱慨豺 伎 螳 磯
覦朱 讀螳
Dynamic Programming
Fibonacci
豢豌: https://new93helloworld.tistory.com/92
Recursive Recursive + Memoization
Fibonacci
豢豌: https://www.youtube.com/watch?v=L53nqHCSSFY
Tower of Hanoi
Tower of Hanoi
Ex) n = 3 朱
Non-recursive
Tower of Hanoi
Non-recursive
Array & List
Array
Array   覦 蠍磯ゼ 狩
Array  index螳 伎伎 讌 access  
Array 豌願 企  譴 蟆曙,  豢螳  蠍磯ゼ 襴磯 how?
(=>step 1: former array 一 螻, 襦 蠍一 array  覃覈襴 
step 2: step 1 蟆郁骸 磯, new array assign
step 3: Copy
step 4: former array )
ArrayList
Array企!   覦覯 
襦 襯 豢螳 襷, 朱   蠍一 array襦 
襯 襷 企 蠍磯 譴企れ .
Index襯   random access  
LinkedList
Array螳 , list  れ 襯 螳襴る
企 螳豌企ゼ 伎
Index襯 伎  access 蟆曙, 企
index access 蟾讌 List襯 
覦一  螻殊 朱, 蟇郁鍵 磯ジ 
(襴 觜+覃覈襴) 襷譴
 螳螳 螻 覲蟆暑  襴, 蠍
 磯 覃覈襴  蟆一
https://opentutorials.org/module/1335/8636
Array & List
一 Array Linked List
Access O(1) O(n)
Search O(n)  linear search
O(log n)  binary search
O(n)
Insertion
(豌覯讌, 襷讌襷, 譴螳)
O(n)
O(n), O(1), O(n)
O(1)
O(1), O(1), O(1)
Deletion O(n)
O(n), O(1), O(n)
O(1)
O(n), O(1), O(n)
Python list襯 螻, array襯 螻牛讌 (numpy 螻)
But Python list れ arrayり list 蠍磯レ 豎 蟆
蠏碁 C array覲企る 覃覈襴襯  襷 襦 る
LinkedList 
7
0x123134
Prev
0x60..
Next
0x93..
LinkedList 
Sparse Matrix
 Let us represent each column of a sparse matrix as a circularly linked
list with
a head node.
 Also, let us represent each row of a sparse matrix similarly.
 We will define two types of nodes: header node and element node.
 Each column will have a head node (header) and element nodes
(element).
 Each row will have a head node (header) and element nodes (element).
 The list of head nodes (for all columns and all rows) will also have a
head
node, which is an element node type.
 The head of head node will contain number of rows (row), number of columns
(col), and number of element nodes (value).
LinkedList
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
MapReduce
Itertools
Itertools
Itertools
Collection
Copy(DeepCopy)
Thank You

More Related Content

What's hot (20)

襷襷
mil23
Lec 00, 01
Lec 00, 01Lec 00, 01
Lec 00, 01
Jinhwan Suk
Howto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear RegressionHowto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear Regression
Hyo jeong Lee
Project#2襷 Hwp
Project#2襷 HwpProject#2襷 Hwp
Project#2襷 Hwp
Kimjeongmoo
Array & Loop
Array & LoopArray & Loop
Array & Loop
MinGi KYUNG
DP Optimization
DP OptimizationDP Optimization
DP Optimization
麹 譟
02喝3喝螳仰讌仰一一
02喝3喝螳仰讌仰一一02喝3喝螳仰讌仰一一
02喝3喝螳仰讌仰一一
Changwon National University
[Devfest Campus Korea 2021] 覓語願屋 With 螻襴讀
[Devfest Campus Korea 2021] 覓語願屋 With 螻襴讀[Devfest Campus Korea 2021] 覓語願屋 With 螻襴讀
[Devfest Campus Korea 2021] 覓語願屋 With 螻襴讀
GDGCampusKorea
Graph
GraphGraph
Graph
GNGLB
[Algorithm] Heap Sort
[Algorithm] Heap Sort[Algorithm] Heap Sort
[Algorithm] Heap Sort
Bill Kim
RNC C++ lecture_5 Array
RNC C++ lecture_5 ArrayRNC C++ lecture_5 Array
RNC C++ lecture_5 Array
itlockit
螻襴讀螻 襭蟲譟
螻襴讀螻 襭蟲譟螻襴讀螻 襭蟲譟
螻襴讀螻 襭蟲譟
蠍 蟾
[ShaderX5] 4.4 Edge Masking and Per-Texel Depth Extent Propagation For Comput...
[ShaderX5] 4.4 Edge Masking and Per-Texel Depth Extent Propagation For Comput...[ShaderX5] 4.4 Edge Masking and Per-Texel Depth Extent Propagation For Comput...
[ShaderX5] 4.4 Edge Masking and Per-Texel Depth Extent Propagation For Comput...
譬觜
Scalaろ磯 - 覦一伎蠍
Scalaろ磯 - 覦一伎蠍Scalaろ磯 - 覦一伎蠍
Scalaろ磯 - 覦一伎蠍
谿所 蟾
Deferred Shading
Deferred ShadingDeferred Shading
Deferred Shading
譬觜
Valentine
ValentineValentine
Valentine
Cheolung Choi
[覈磯血惨] 2覯讌 - 一 (螻旧 ろ)
[覈磯血惨] 2覯讌  -   一 (螻旧  ろ)[覈磯血惨] 2覯讌  -   一 (螻旧  ろ)
[覈磯血惨] 2覯讌 - 一 (螻旧 ろ)
Myeongun Ryu
[D2 CAMPUS] 覿磯 Alcall 襦蠏碁覦 蟆曙 覓語
[D2 CAMPUS] 覿磯 Alcall 襦蠏碁覦 蟆曙 覓語 [D2 CAMPUS] 覿磯 Alcall 襦蠏碁覦 蟆曙 覓語
[D2 CAMPUS] 覿磯 Alcall 襦蠏碁覦 蟆曙 覓語
NAVER D2
1. alps c&c++
1. alps c&c++1. alps c&c++
1. alps c&c++
Hongjun Jang
襷襷
mil23
Howto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear RegressionHowto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear Regression
Hyo jeong Lee
Project#2襷 Hwp
Project#2襷 HwpProject#2襷 Hwp
Project#2襷 Hwp
Kimjeongmoo
DP Optimization
DP OptimizationDP Optimization
DP Optimization
麹 譟
[Devfest Campus Korea 2021] 覓語願屋 With 螻襴讀
[Devfest Campus Korea 2021] 覓語願屋 With 螻襴讀[Devfest Campus Korea 2021] 覓語願屋 With 螻襴讀
[Devfest Campus Korea 2021] 覓語願屋 With 螻襴讀
GDGCampusKorea
Graph
GraphGraph
Graph
GNGLB
[Algorithm] Heap Sort
[Algorithm] Heap Sort[Algorithm] Heap Sort
[Algorithm] Heap Sort
Bill Kim
RNC C++ lecture_5 Array
RNC C++ lecture_5 ArrayRNC C++ lecture_5 Array
RNC C++ lecture_5 Array
itlockit
螻襴讀螻 襭蟲譟
螻襴讀螻 襭蟲譟螻襴讀螻 襭蟲譟
螻襴讀螻 襭蟲譟
蠍 蟾
[ShaderX5] 4.4 Edge Masking and Per-Texel Depth Extent Propagation For Comput...
[ShaderX5] 4.4 Edge Masking and Per-Texel Depth Extent Propagation For Comput...[ShaderX5] 4.4 Edge Masking and Per-Texel Depth Extent Propagation For Comput...
[ShaderX5] 4.4 Edge Masking and Per-Texel Depth Extent Propagation For Comput...
譬觜
Scalaろ磯 - 覦一伎蠍
Scalaろ磯 - 覦一伎蠍Scalaろ磯 - 覦一伎蠍
Scalaろ磯 - 覦一伎蠍
谿所 蟾
Deferred Shading
Deferred ShadingDeferred Shading
Deferred Shading
譬觜
[覈磯血惨] 2覯讌 - 一 (螻旧 ろ)
[覈磯血惨] 2覯讌  -   一 (螻旧  ろ)[覈磯血惨] 2覯讌  -   一 (螻旧  ろ)
[覈磯血惨] 2覯讌 - 一 (螻旧 ろ)
Myeongun Ryu
[D2 CAMPUS] 覿磯 Alcall 襦蠏碁覦 蟆曙 覓語
[D2 CAMPUS] 覿磯 Alcall 襦蠏碁覦 蟆曙 覓語 [D2 CAMPUS] 覿磯 Alcall 襦蠏碁覦 蟆曙 覓語
[D2 CAMPUS] 覿磯 Alcall 襦蠏碁覦 蟆曙 覓語
NAVER D2

Similar to Effective Python, Clean Code (20)

れ梗殊 ろ 殊
れ梗殊 ろ 殊 れ梗殊 ろ 殊
れ梗殊 ろ 殊
Taeoh Kim
Erlang梶 求釈= swap メ
Erlang梶 求釈= swap メErlang梶 求釈= swap メ
Erlang梶 求釈= swap メ
Jaejin Yun
2015-2 MODA 覯讌 ろ磯
2015-2 MODA  覯讌 ろ磯 2015-2 MODA  覯讌 ろ磯
2015-2 MODA 覯讌 ろ磯
SKKU
1.襭蟲譟一 螻襴讀(螳襭)
1.襭蟲譟一 螻襴讀(螳襭)1.襭蟲譟一 螻襴讀(螳襭)
1.襭蟲譟一 螻襴讀(螳襭)
fmbvbfhs
Mlp logical input pattern classfication report doc
Mlp logical input pattern classfication report docMlp logical input pattern classfication report doc
Mlp logical input pattern classfication report doc
Computational Complexity
Computational ComplexityComputational Complexity
Computational Complexity
skku_npc
2012 Ds 01
2012 Ds 012012 Ds 01
2012 Ds 01
Jungyerin
襭蟲譟01
襭蟲譟01襭蟲譟01
襭蟲譟01
herojoon1378
襭蟲譟 Project2
襭蟲譟 Project2襭蟲譟 Project2
襭蟲譟 Project2
KoChungWook
Linq to object using c#
Linq to object using c#Linq to object using c#
Linq to object using c#
覲蟇
GopherCon Korea 2015 - Python 螳覦襯 Go (願化谿)
GopherCon Korea 2015 - Python 螳覦襯  Go (願化谿)GopherCon Korea 2015 - Python 螳覦襯  Go (願化谿)
GopherCon Korea 2015 - Python 螳覦襯 Go (願化谿)
Kyoungchan Lee
JDK 覲豌
JDK 覲豌JDK 覲豌
JDK 覲豌
SeungHyun Eom
2017 tensor flow dev summit
2017 tensor flow dev summit2017 tensor flow dev summit
2017 tensor flow dev summit
Tae Young Lee
Adversarial Attack in Neural Machine Translation
Adversarial Attack in Neural Machine TranslationAdversarial Attack in Neural Machine Translation
Adversarial Attack in Neural Machine Translation
HyunKyu Jeon
DP 螻襴讀 覲伎.pdf
DP 螻襴讀  覲伎.pdfDP 螻襴讀  覲伎.pdf
DP 螻襴讀 覲伎.pdf
Ho Jeong Im
Tensorflow for Deep Learning(SK Planet)
Tensorflow for Deep Learning(SK Planet)Tensorflow for Deep Learning(SK Planet)
Tensorflow for Deep Learning(SK Planet)
Tae Young Lee
れ梗殊 ろ 殊
れ梗殊 ろ 殊 れ梗殊 ろ 殊
れ梗殊 ろ 殊
Taeoh Kim
Erlang梶 求釈= swap メ
Erlang梶 求釈= swap メErlang梶 求釈= swap メ
Erlang梶 求釈= swap メ
Jaejin Yun
2015-2 MODA 覯讌 ろ磯
2015-2 MODA  覯讌 ろ磯 2015-2 MODA  覯讌 ろ磯
2015-2 MODA 覯讌 ろ磯
SKKU
1.襭蟲譟一 螻襴讀(螳襭)
1.襭蟲譟一 螻襴讀(螳襭)1.襭蟲譟一 螻襴讀(螳襭)
1.襭蟲譟一 螻襴讀(螳襭)
fmbvbfhs
Mlp logical input pattern classfication report doc
Mlp logical input pattern classfication report docMlp logical input pattern classfication report doc
Mlp logical input pattern classfication report doc
Computational Complexity
Computational ComplexityComputational Complexity
Computational Complexity
skku_npc
2012 Ds 01
2012 Ds 012012 Ds 01
2012 Ds 01
Jungyerin
襭蟲譟 Project2
襭蟲譟 Project2襭蟲譟 Project2
襭蟲譟 Project2
KoChungWook
Linq to object using c#
Linq to object using c#Linq to object using c#
Linq to object using c#
覲蟇
GopherCon Korea 2015 - Python 螳覦襯 Go (願化谿)
GopherCon Korea 2015 - Python 螳覦襯  Go (願化谿)GopherCon Korea 2015 - Python 螳覦襯  Go (願化谿)
GopherCon Korea 2015 - Python 螳覦襯 Go (願化谿)
Kyoungchan Lee
2017 tensor flow dev summit
2017 tensor flow dev summit2017 tensor flow dev summit
2017 tensor flow dev summit
Tae Young Lee
Adversarial Attack in Neural Machine Translation
Adversarial Attack in Neural Machine TranslationAdversarial Attack in Neural Machine Translation
Adversarial Attack in Neural Machine Translation
HyunKyu Jeon
DP 螻襴讀 覲伎.pdf
DP 螻襴讀  覲伎.pdfDP 螻襴讀  覲伎.pdf
DP 螻襴讀 覲伎.pdf
Ho Jeong Im
Tensorflow for Deep Learning(SK Planet)
Tensorflow for Deep Learning(SK Planet)Tensorflow for Deep Learning(SK Planet)
Tensorflow for Deep Learning(SK Planet)
Tae Young Lee

Effective Python, Clean Code