Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Problem Solving with Algorithms and Data Struct...
Search
Bruce Tsai
February 02, 2015
Programming
81
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Problem Solving with Algorithms and Data Structures
Slides for
http://interactivepython.org/runestone/static/pythonds/index.html
Bruce Tsai
February 02, 2015
Transcript
12 slides
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/
More Decks by Bruce Tsai
See All by Bruce Tsai
Problem Solving with Algorithms and Data Structure - Graphs
wagamama
0
120
Normal Mapping
wagamama
0
93
Android Programming Introduction
wagamama
0
110
iOS GPUImage introduction
wagamama
0
150
OpenGL Introduction
wagamama
0
63
Problem Solving with Algorithms and Data Structure - Lists
wagamama
0
100
Other Decks in Programming
See All in Programming
GraphQL の onError と Nullability のこれから
quramy
0
220
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
150
疎結合とは何か?ソフトウェア設計における結合バランスについて考える #phpcon_niigata
kajitack
0
150
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
220
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
310
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
1
2.1k
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
140
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
170
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.9k
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
750
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
290
Featured
See All Featured
WENDY [Excerpt]
tessaabrams
15
40k
Building Applications with DynamoDB
mza
96
7.3k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
660
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
750
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
60k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
The Cost Of JavaScript in 2023
addyosmani
56
10k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
350
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
480