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
0
350
『CrystalとGolangの速さを比較してみた』を考察してみた
『CrystalとGolangの速さを比較してみた』を考察してみた
Shoma Saito
April 09, 2017
Tweet
Share
More Decks by Shoma Saito
See All by Shoma Saito
11/17 LT テトリスしゅきぴ
tantakan
0
130
10/18 LT swiftで楕円曲線郡を作る
tantakan
0
62
普段iOS書いてるつもりなのでgomobileを取り上げてみる
tantakan
0
120
WWDC2017 個人的まとめ
tantakan
0
200
CrystalとGolangの速さを比較してみた
tantakan
0
160
Other Decks in Programming
See All in Programming
見た目から始める生産性向上
ikumatadokoro
8
930
冗長なエラーログを削減し、スタックトレースを手に入れる / Reducing Verbose Error Logs and Obtaining Stack Traces
upamune
0
830
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
210
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
180
Scalable Customer Journey Orchestration (CJO)
lewuathe
0
350
Micro Frontends for Java Microservices - Devnexus 2024
mraible
PRO
0
500
ONE WEDGE_company_guide
1wedge_one
0
500
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.4k
PHPの次期バージョンはこの時期どうなっているのか - Internalsの開発体制について - PHPカンファレンス小田原
youkidearitai
PRO
1
190
Ruby Function Composition
bkuhlmann
1
330
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
650
Elm 0.19.0 Changes
bkuhlmann
0
490
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
A Tale of Four Properties
chriscoyier
151
22k
KATA
mclloyd
15
12k
The MySQL Ecosystem @ GitHub 2015
samlambert
243
12k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
2
3.4k
What the flash - Photography Introduction
edds
64
11k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
40
4.4k
Learning to Love Humans: Emotional Interface Design
aarron
267
39k
Mobile First: as difficult as doing things right
swwweet
216
8.6k
A designer walks into a library…
pauljervisheath
200
23k
For a Future-Friendly Web
brad_frost
172
9k
Building Your Own Lightsaber
phodgson
99
5.7k
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)
͍ݴޠͰ Φʔμʔߟ͑Α͏Ͷ