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
68
0
Share
Problem Solving with Algorithms and Data Structures
Slides for
http://interactivepython.org/runestone/static/pythonds/index.html
Bruce Tsai
February 02, 2015
More Decks by Bruce Tsai
See All by Bruce Tsai
Problem Solving with Algorithms and Data Structure - Graphs
wagamama
0
100
Normal Mapping
wagamama
0
76
Android Programming Introduction
wagamama
0
90
iOS GPUImage introduction
wagamama
0
130
OpenGL Introduction
wagamama
0
52
Problem Solving with Algorithms and Data Structure - Lists
wagamama
0
87
Other Decks in Programming
See All in Programming
プラグインで拡張される Context をtype-safe にする難しさと設計判断
kazupon
0
130
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
4
520
How We Practice Exploratory Testing in Iterative Development( #scrumniigata ) / 反復開発の中で、探索的テストをどう実施しているか
teyamagu
PRO
3
840
SkillsをS3 Filesに置く時のあれこれ
watany
3
1.6k
Oxlintはいかにしてtsgolintのlint ruleを呼び出しているのか
syumai
0
160
KMP × Kotlin 2.3 - How Android Got Slower While iOS Builds Improved by 47%
rio432
0
200
AI時代になぜ書くのか
mutsumix
0
410
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
390
20260514 - build with ai 2026 - build LINE Bot with Gemini CLI
line_developers_tw
PRO
0
450
Symfony AI in Action - SymfonyLive Berlin 2026
chr_hertel
1
150
Spec Driven Development | AI Summit Vilnius
danielsogl
PRO
1
160
cloudnative conference 2026 flyle
azihsoyn
0
180
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
42
3k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
190
A Tale of Four Properties
chriscoyier
163
24k
Making Projects Easy
brettharned
120
6.6k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
180
Building an army of robots
kneath
306
46k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
230
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
KATA
mclloyd
PRO
35
15k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
140
Building Adaptive Systems
keathley
44
3k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
130
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/