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
演算法到底是在演哪一齣
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
MarkFly
February 12, 2019
Programming
74
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
演算法到底是在演哪一齣
MarkFly
February 12, 2019
More Decks by MarkFly
See All by MarkFly
關於 Mobile Developer 用 Flutter 去寫 Web 這檔事
mark33699
0
20
關於我在 visionOS 上 寫影片貼圖 app 這檔事
mark33699
0
160
iOS、Android、Flutter超級比一比
mark33699
1
990
如何使用Swift遙控你的樂高
mark33699
0
67
直播簡單講
mark33699
1
97
多執行緒編程
mark33699
0
58
對戰三平棋
mark33699
0
170
Other Decks in Programming
See All in Programming
ふつうのFeature Flag実践入門
irof
8
4.1k
The NotImplementedError Problem in Ruby
koic
1
840
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
14
5.6k
依存関係から依存物へ―Dependencyという言葉の歴史をひも解く
j_lee
0
120
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2.1k
正しくソフトウェアを作る、前提を疑うための認知の視点 / doubt-premise
minodriven
21
6.7k
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
270
さぁV100、メモリをお食べ・・・
nilpe
0
150
AIとASP.NET Coreで雑Webアプリを作った話
mayuki
0
660
JavaDoc 再入門
nagise
1
370
Signal Forms: Details & Live Coding @enterJS 2026 in Mannheim
manfredsteyer
PRO
0
160
Webフレームワークの ベンチマークについて
yusukebe
0
170
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.3k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
370
Prompt Engineering for Job Search
mfonobong
0
350
Code Review Best Practice
trishagee
74
20k
HDC tutorial
michielstock
2
720
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
210
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.7k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
970
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
490
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
170
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Transcript
ALGO X SWIFT
好吧...什麼是演算法?
None
None
演算法跟程式語⾔的差異?
1.對象不同 2.⼀對多
如何選擇演算法?
重新排列50個數 需要花費比宇宙歷史還長的時間?
None
全域搜尋 VS 選擇排序
何謂資料結構?
None
如何選擇資料結構?
好存 VS 好找
STACK VS QUEUE
None
樹
1. 由N個節點組成的具有階層關係的集合 2. 沒有⽗節點的節點稱為根節點 3. 跟真實世界的樹相反, 根節點是在最上⾯ 4. ⼀定有也只有⼀個根節點 5.
除了根節點以外, 每個節點都⼀定有也只有⼀ 個根節點 6. 每個節點都只有有限個⼦節點, 也可以沒有⼦ 節點 7. 樹裡⾯不會產⽣CYCLE 8. GRAPH的⼀種
None
實戰1. 輸出⼆元樹的中序
注意根節點的位置,就能破解樹的遍歷 左節點永遠在右節點前⾯ BFS DFS
注意根節點的位置,就能破解樹的遍歷 左節點永遠在右節點前⾯ BFS DFS
注意根節點的位置,就能破解樹的遍歷 左節點永遠在右節點前⾯ BFS DFS
注意根節點的位置,就能破解樹的遍歷 左節點永遠在右節點前⾯ BFS DFS
注意根節點的位置,就能破解樹的遍歷 左節點永遠在右節點前⾯ BFS DFS
實戰2. 比較兩棵樹有幾個節點不同的⽅法
None
參考資料
None
None
None
None