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
Problem Solving with Algorithms and Data Struct...
Search
Bruce Tsai
February 02, 2015
Programming
0
65
Problem Solving with Algorithms and Data Structures
Slides for
http://interactivepython.org/runestone/static/pythonds/index.html
Bruce Tsai
February 02, 2015
Tweet
Share
More Decks by Bruce Tsai
See All by Bruce Tsai
Problem Solving with Algorithms and Data Structure - Graphs
wagamama
0
94
Normal Mapping
wagamama
0
62
Android Programming Introduction
wagamama
0
87
iOS GPUImage introduction
wagamama
0
120
OpenGL Introduction
wagamama
0
47
Problem Solving with Algorithms and Data Structure - Lists
wagamama
0
77
Other Decks in Programming
See All in Programming
Composerが「依存解決」のためにどんな工夫をしているか #phpcon
o0h
PRO
1
280
RailsGirls IZUMO スポンサーLT
16bitidol
0
190
猫と暮らす Google Nest Cam生活🐈 / WebRTC with Google Nest Cam
yutailang0119
0
160
Android 16KBページサイズ対応をはじめからていねいに
mine2424
0
170
Python型ヒント完全ガイド 初心者でも分かる、現代的で実践的な使い方
mickey_kubo
1
150
型で語るカタ
irof
0
220
GPUを計算資源として使おう!
primenumber
1
190
イベントストーミング図からコードへの変換手順 / Procedure for Converting Event Storming Diagrams to Code
nrslib
2
890
たった 1 枚の PHP ファイルで実装する MCP サーバ / MCP Server with Vanilla PHP
okashoi
1
270
なんとなくわかった気になるブロックテーマ入門/contents.nagoya 2025 6.28
chiilog
1
280
状態遷移図を書こう / Sequence Chart vs State Diagram
orgachem
PRO
1
150
Team operations that are not burdened by SRE
kazatohiei
1
320
Featured
See All Featured
Writing Fast Ruby
sferik
628
62k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Code Reviewing Like a Champion
maltzj
524
40k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Making Projects Easy
brettharned
116
6.3k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
The Cult of Friendly URLs
andyhume
79
6.5k
Agile that works and the tools we love
rasmusluckow
329
21k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.6k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.4k
The Straight Up "How To Draw Better" Workshop
denniskardys
235
140k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Transcript
Problem Solving with Algorithms and Data Structures Bruce Tsai
Computer Science • Algorithm • Step-by-step procedure for calculations •
Data structure • Way of organizing data
Problem-solving • Human • Time consuming • Computer • Efficiency
• Reuse • Communication tool • Program • Method and Data • Mathematical model • Input/Output
Sorting Example 50, 19, 1, 120, 6, 5, 999 1,
5, 6, 19, 50, 120, 999
Python Data Type • int • float • bool •
weak type • dynamic strongly type
Python Collection • List [] • ordered • duplicate elements
• mutable • compound data • Tuple () • ordered • duplicate elements • immutable • heterogeneous data
Python Collection • Set {}, set() • unordered • no
duplicate elements • mutable • heterogeneous data • Dictionary { key: value} • key-value pair • no duplicate keys • mutable • heterogeneous data
Python String • “” or ‘’ • ordered • duplicate
elements • immutable • homogeneous
Python Control Structure • while • execute code repeatedly based
on given condition • for • allow code to repeatedly executed • if, elif, else • perform different computations depending on condition
Exception • Syntax error • Logical error (runtime error) •
Exception • prevent program to terminate from runtime error
Function • Mathematical function • Black box • Input/Output
Reference • http://interactivepython.org/runestone/static/ pythonds/index.html • https://docs.python.org/2/tutorial/ • http://zeroturnaround.com/rebellabs/there-is-more- to-code-quality-than-just-pretty-vs-ugly/