SlideShare a Scribd company logo
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 Related Content

Viewers also liked (20)

PPT
Data structures & problem solving unit 1 ppt
aviban
 
PDF
Data science, self learning algorithms (by Alexander Frimout & Max Nie)
Verhaert Masters in Innovation
 
PPTX
Number series
Are Lavanya
 
PDF
Data localization and translation
Motti Danino
 
PPTX
Number Series: How To Solve Questions with Short Tricks
Entrance Exam Info
 
PPT
Php Docs
Pablo Viquez
 
PDF
"Internationalisation with PHP and Intl" source code
Daniel_Rhodes
 
PPTX
Multi language for php with gettext
Binh Quan Duc
 
ODP
Handling multibyte CSV files in PHP
Daniel_Rhodes
 
PPT
The Big Documentation Extravaganza
Stephan Schmidt
 
PDF
Grand Rapids PHP Meetup: Behavioral Driven Development with Behat
Ryan Weaver
 
PDF
Becoming a Better Programmer (2013)
Pete Goodliffe
 
DOCX
Problem solving with algorithm and data structure
Rabia Tariq
 
PDF
People code events flowchart
Satish Ap
 
ODP
Internationalisation with PHP and Intl
Daniel_Rhodes
 
PPTX
Logical reasoning number series
Praveesh Palakeel
 
PPTX
Top 5 algorithms used in Data Science
Edureka!
 
PDF
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
klirantga
 
PPT
Cmp104 lec 7 algorithm and flowcharts
kapil078
 
DOCX
CXC CSEC Information Technology Multiple Choice Questions
Elliot Seepaul
 
Data structures & problem solving unit 1 ppt
aviban
 
Data science, self learning algorithms (by Alexander Frimout & Max Nie)
Verhaert Masters in Innovation
 
Number series
Are Lavanya
 
Data localization and translation
Motti Danino
 
Number Series: How To Solve Questions with Short Tricks
Entrance Exam Info
 
Php Docs
Pablo Viquez
 
"Internationalisation with PHP and Intl" source code
Daniel_Rhodes
 
Multi language for php with gettext
Binh Quan Duc
 
Handling multibyte CSV files in PHP
Daniel_Rhodes
 
The Big Documentation Extravaganza
Stephan Schmidt
 
Grand Rapids PHP Meetup: Behavioral Driven Development with Behat
Ryan Weaver
 
Becoming a Better Programmer (2013)
Pete Goodliffe
 
Problem solving with algorithm and data structure
Rabia Tariq
 
People code events flowchart
Satish Ap
 
Internationalisation with PHP and Intl
Daniel_Rhodes
 
Logical reasoning number series
Praveesh Palakeel
 
Top 5 algorithms used in Data Science
Edureka!
 
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
klirantga
 
Cmp104 lec 7 algorithm and flowcharts
kapil078
 
CXC CSEC Information Technology Multiple Choice Questions
Elliot Seepaul
 

Similar to Problem Solving with Algorithms and Data Structures (20)

PDF
Python-Magnitia-ToC.pdf
AnanthReddy38
 
PPTX
Python.pptx
SajjadAbdullah4
 
PDF
ORM Pink Unicorns
Ortus Solutions, Corp
 
PPTX
Automate using Python
YogeshIngale9
 
PDF
Killing Shark-Riding Dinosaurs with ORM
Ortus Solutions, Corp
 
PPTX
Basic data analysis using R.
C. Tobin Magle
 
PPTX
Rdbms
Parthiv Prem
 
PPTX
Python training in hyderabad
Rajitha D
 
PPTX
Python Training in Hyderabad
CHENNAKESHAVAKATAGAR
 
PPTX
AP computer barron book ppt AP CS A.pptx
KoutheeshSellamuthu
 
PPTX
Introduction_to_Python.pptx
RahulChaudhary51756
 
PPT
Intro.ppt
Anonymous9etQKwW
 
PPT
Intro_2.ppt
MumitAhmed1
 
PPT
Intro.ppt
SharabiNaif
 
PDF
ITB2017 - Slaying the ORM dragons with cborm
Ortus Solutions, Corp
 
KEY
Developer testing 101: Become a Testing Fanatic
LB Denker
 
PDF
Lecture 5 numbers and built in functions
alvin567
 
PDF
Certified Professional Diploma in Data Science.pdf
romanpaul8888
 
PPTX
Data Ingestion Engine
Adam Doyle
 
PDF
ETL for the masses with Power Query and M
Régis Baccaro
 
Python-Magnitia-ToC.pdf
AnanthReddy38
 
Python.pptx
SajjadAbdullah4
 
ORM Pink Unicorns
Ortus Solutions, Corp
 
Automate using Python
YogeshIngale9
 
Killing Shark-Riding Dinosaurs with ORM
Ortus Solutions, Corp
 
Basic data analysis using R.
C. Tobin Magle
 
Python training in hyderabad
Rajitha D
 
Python Training in Hyderabad
CHENNAKESHAVAKATAGAR
 
AP computer barron book ppt AP CS A.pptx
KoutheeshSellamuthu
 
Introduction_to_Python.pptx
RahulChaudhary51756
 
Intro.ppt
Anonymous9etQKwW
 
Intro_2.ppt
MumitAhmed1
 
Intro.ppt
SharabiNaif
 
ITB2017 - Slaying the ORM dragons with cborm
Ortus Solutions, Corp
 
Developer testing 101: Become a Testing Fanatic
LB Denker
 
Lecture 5 numbers and built in functions
alvin567
 
Certified Professional Diploma in Data Science.pdf
romanpaul8888
 
Data Ingestion Engine
Adam Doyle
 
ETL for the masses with Power Query and M
Régis Baccaro
 
Ad

More from Yi-Lung Tsai (8)

PDF
Threads and Callbacks for Embedded Python
Yi-Lung Tsai
 
PDF
Lightning Talk - Raspberry Pi
Yi-Lung Tsai
 
PDF
Problem Solving with Algorithms and Data Structure - Graphs
Yi-Lung Tsai
 
PDF
Normal mapping
Yi-Lung Tsai
 
PDF
Problem Solving with Algorithms and Data Structure - Lists
Yi-Lung Tsai
 
PDF
OpenGL Introduction
Yi-Lung Tsai
 
PDF
iOS GPUImage introduction
Yi-Lung Tsai
 
PDF
Android programming introduction
Yi-Lung Tsai
 
Threads and Callbacks for Embedded Python
Yi-Lung Tsai
 
Lightning Talk - Raspberry Pi
Yi-Lung Tsai
 
Problem Solving with Algorithms and Data Structure - Graphs
Yi-Lung Tsai
 
Normal mapping
Yi-Lung Tsai
 
Problem Solving with Algorithms and Data Structure - Lists
Yi-Lung Tsai
 
OpenGL Introduction
Yi-Lung Tsai
 
iOS GPUImage introduction
Yi-Lung Tsai
 
Android programming introduction
Yi-Lung Tsai
 
Ad

Recently uploaded (20)

PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PPTX
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 

Problem Solving with Algorithms and Data Structures

  • 1. Problem Solving with Algorithms and Data Structures Bruce Tsai
  • 2. Computer Science • Algorithm • Step-by-step procedure for calculations • Data structure • Way of organizing data
  • 3. Problem-solving • Human • Time consuming • Computer • Efficiency • Reuse • Communication tool • Program • Method and Data • Mathematical model • Input/Output
  • 4. Sorting Example 50, 19, 1, 120, 6, 5, 999 1, 5, 6, 19, 50, 120, 999
  • 5. Python Data Type • int • float • bool • weak type • dynamic strongly type
  • 6. Python Collection • List [] • ordered • duplicate elements • mutable • compound data • Tuple () • ordered • duplicate elements • immutable • heterogeneous data
  • 7. Python Collection • Set {}, set() • unordered • no duplicate elements • mutable • heterogeneous data • Dictionary { key: value} • key-value pair • no duplicate keys • mutable • heterogeneous data
  • 8. Python String • “” or ‘’ • ordered • duplicate elements • immutable • homogeneous
  • 9. 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
  • 10. Exception • Syntax error • Logical error (runtime error) • Exception • prevent program to terminate from runtime error
  • 11. Function • Mathematical function • Black box • Input/Output
  • 12. 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/