Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
『CrystalとGolangの速さを比較してみた』を考察してみた
Search
Shoma Saito
April 09, 2017
Programming
380
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
『CrystalとGolangの速さを比較してみた』を考察してみた
『CrystalとGolangの速さを比較してみた』を考察してみた
Shoma Saito
April 09, 2017
More Decks by Shoma Saito
See All by Shoma Saito
11/17 LT テトリスしゅきぴ
tantakan
0
150
10/18 LT swiftで楕円曲線郡を作る
tantakan
0
75
普段iOS書いてるつもりなのでgomobileを取り上げてみる
tantakan
0
140
WWDC2017 個人的まとめ
tantakan
0
210
CrystalとGolangの速さを比較してみた
tantakan
0
180
Other Decks in Programming
See All in Programming
AI時代の仕事技芸論 — ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ
kuranuki
2
670
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
670
JavaDoc 再入門
nagise
1
340
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
5.9k
Contextとはなにか
chiroruxx
1
320
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.2k
RTSPクライアントを自作してみた話
simotin13
0
600
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.6k
ふつうのFeature Flag実践入門
irof
7
3.9k
Lessons from Spec-Driven Development
simas
PRO
0
190
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2.1k
Vite+ Unified Toolchain for the Web
naokihaba
0
300
Featured
See All Featured
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
390
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.8k
What's in a price? How to price your products and services
michaelherold
247
13k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
190
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
210
Building Flexible Design Systems
yeseniaperezcruz
330
40k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Become a Pro
speakerdeck
PRO
31
6k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
A better future with KSS
kneath
240
18k
Transcript
ͱ ͷ͞Λൺֱͯ͠ΈΔ !NBTPO
-5͋Γ͗ͯ͢ωλ͕ͳ͍ɻ
None
None
NBEFCZ ʹొ
None
ʹొ .BOBT5FDIOPMPHZ4PMVUJPO
Ͳ͏ͬͯ͞ΛൺΔ͔
ϑΟϘφονΛٻΊΔ
ϑΟϘφον
ϑΟϘφον
ϑΟϘφον
ϑΟϘφον
ϑΟϘφον
ϑΟϘφον
ϑΟϘφον F
n+2 = F n+1 + F n F 1 = 1 F 2 = 1
࣮͢Δ
None
͖ͯͱʔ
None
͖ͯͱʔ
None
None
None
None
T T
T T
ͷํ͕ૣ͍ʂ
ͷํ͕ૣ͍ʂ
ʁ
None
Ϋι༷
None
O ( 1 + 5 2 ) (n−1)
O ( 1 + 5 2 ) (n−1)
ఆٛ௨Γ " # ϑΟϘφονΛٻΊΔΞϧΰϦζϜ O ( 1 + 5 2
) (n−1)
"
" ͜Μͳײ͡Ͱ ੵΈॏͶͯ͘
ఆٛ௨Γ ੵΈॏͶ # ϑΟϘφονΛٻΊΔΞϧΰϦζϜ O ( 1 + 5 2
) (n−1) O (n)
ఆٛ௨Γ ੵΈॏͶ # ϑΟϘφονΛٻΊΔΞϧΰϦζϜ O ( 1 + 5 2
) (n−1) O (n) ͘Ͷʁ
ఆٛ௨Γ ੵΈॏͶ # ϑΟϘφονΛٻΊΔΞϧΰϦζϜ O ( 1 + 5 2
) (n−1) O (n)
#
# ( f k+1 f k ) = ( 1
1 1 0) ( f k f k−1 )
# ( f k+1 f k ) = ( 1
1 1 0) ( f k f k−1 ) ( f k+1 f k ) = ( 1 1 1 0) k ( f 1 f 0 )
# ( f k+1 f k ) = ( 1
1 1 0) ( f k f k−1 ) ( f k+1 f k ) = ( 1 1 1 0) k ( f 1 f 0 ) ( f k+1 f k ) = ( 1 1 1 0) k ( 1 0)
# ( 1 1 1 0) k
# ( 1 1 1 0) k ͜Εߴʹܭࢉग़དྷΔΑͶ
# ( 1 1 1 0) k = ( 1
0 0 1) (k = 0) ( 1 0 0 1) k 2 2 (k is even) ( 1 0 0 1) ( 1 0 0 1) k−1 (k is odd)
# ( 1 1 1 0) k = ( 1
0 0 1) (k = 0) ( 1 0 0 1) k 2 2 (k is even) ( 1 0 0 1) ( 1 0 0 1) k−1 (k is odd)
ఆٛ௨Γ ੵΈॏͶ ߦྻ ϑΟϘφονΛٻΊΔΞϧΰϦζϜ O ( 1 + 5 2
) (n−1) O (n)
ఆٛ௨Γ ੵΈॏͶ ߦྻ ϑΟϘφονΛٻΊΔΞϧΰϦζϜ O ( 1 + 5 2
) (n−1) O (n) O (log n)
ఆٛ௨Γ ੵΈॏͶ ߦྻ ϑΟϘφονΛٻΊΔΞϧΰϦζϜ O ( 1 + 5 2
) (n−1) O (n) O (log n) O (log n)
͍ݴޠͰ Φʔμʔߟ͑Α͏Ͷ