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
MarkFly
February 12, 2019
Programming
0
64
演算法到底是在演哪一齣
MarkFly
February 12, 2019
Tweet
Share
More Decks by MarkFly
See All by MarkFly
關於 Mobile Developer 用 Flutter 去寫 Web 這檔事
mark33699
0
4
關於我在 visionOS 上 寫影片貼圖 app 這檔事
mark33699
0
100
iOS、Android、Flutter超級比一比
mark33699
1
960
如何使用Swift遙控你的樂高
mark33699
0
62
直播簡單講
mark33699
1
77
多執行緒編程
mark33699
0
47
對戰三平棋
mark33699
0
130
Other Decks in Programming
See All in Programming
Claude Code + Container Use と Cursor で作る ローカル並列開発環境のススメ / ccc local dev
kaelaela
10
5.9k
Python型ヒント完全ガイド 初心者でも分かる、現代的で実践的な使い方
mickey_kubo
1
130
なぜ適用するか、移行して理解するClean Architecture 〜構造を超えて設計を継承する〜 / Why Apply, Migrate and Understand Clean Architecture - Inherit Design Beyond Structure
seike460
PRO
3
780
Hack Claude Code with Claude Code
choplin
4
2.2k
猫と暮らす Google Nest Cam生活🐈 / WebRTC with Google Nest Cam
yutailang0119
0
150
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
820
Node-RED を(HTTP で)つなげる MCP サーバーを作ってみた
highu
0
120
Modern Angular with Signals and Signal Store:New Rules for Your Architecture @enterJS Advanced Angular Day 2025
manfredsteyer
PRO
0
230
ソフトウェア品質を数字で捉える技術。事業成長を支えるシステム品質の マネジメント
takuya542
2
14k
Android 16KBページサイズ対応をはじめからていねいに
mine2424
0
110
#kanrk08 / 公開版 PicoRubyとマイコンでの自作トレーニング計測装置を用いたワークアウトの理想と現実
bash0c7
1
790
Azure AI Foundryではじめてのマルチエージェントワークフロー
seosoft
0
190
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
The Cult of Friendly URLs
andyhume
79
6.5k
For a Future-Friendly Web
brad_frost
179
9.8k
Balancing Empowerment & Direction
lara
1
430
Agile that works and the tools we love
rasmusluckow
329
21k
The World Runs on Bad Software
bkeepers
PRO
69
11k
Making Projects Easy
brettharned
116
6.3k
Building a Modern Day E-commerce SEO Strategy
aleyda
42
7.4k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Optimizing for Happiness
mojombo
379
70k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
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