SlideShare a Scribd company logo
L.O: STUDENTS WILL
REVIEW BIG IDEA 4:
ALGORITHMS
DO NOW:
READ PAGE 49-54
EK 4.1.1A Sequencing, selection, and
iteration are building blocks of algorithms
EK 4.1.1B Sequencing is the application of
each step of an algorithm in the order in
which the statements are given.
EK 4.1.1C Selection uses a Boolean
condition to determine which of two
parts of an algorithm is used.
EK 4.1.1D Iteration is the repetition of
part of an algorithm until a condition
is met or for a specified number of
times.
EK 4.1.1E Algorithms can be
combined to make new algorithms.
EK 4.1.1F Using existing correct
algorithms as building blocks for
constructing a new algorithm helps
ensure the new algorithm is correct
Programmers use what they
know WORKS to make
something new that they know
will work TOO!
EK 4.1.1G Knowledge of standard
algorithms can help constructing new
algorithms
You can use programs that
already exist, are
commonly used and
commonly known to create
NEW programs!
EK 4.1.1H Different algorithms can be
developed to solve the same problem.
There is more than one way to “skin a
cat”.
There is more than one way to solve
the same problem.
There is more than one way of solving
the same computing challenge!
EK 4.1.1I Developing a new algorithm to
solve a problem can yield insight into the
problem.
Sometimes a new way of solving a problem creates a
NEW WAY of seeing the problem!
EK 4.1.2B Natural language and
pseudocode describe algorithms so that
humans can understand them.
EK 4.1.2C Algorithms described in
programming languages can be executed
on a computer.
EK 4.1.2D Different languages are better
suited for expressing different algorithms.
EK 4.1.2E Some programming languages
are designed for specific domains and are
better for expressing algorithms in those
domains.
EK 4.1.2F The languages used to express
an algorithm can affect characteristics
such as clarity or readability but not
whether an algorithmic solution exists.
These
words all
say the
same
thing, but
some
languages
are clearer
and more
readable
EK 4.1.2G Every algorithm can be
constructed using only sequencing,
selection, and iteration.
EK 4.1.2H Nearly all programming
languages are equivalent in terms of being
able to express any algorithm.
You can say same word, “hello” in any human language,
You write the same computer program in nearly any computer
language.
EK 4.1.2I Clarity and readability are
important considerations when
expressing an algorithm in a language.
Just like handwriting should be clear and readable,
expressing an algorithm should be clear and readable too!
EK 4.2.1A Many problems can be solved in
a reasonable time.
EK 4.2.1B Reasonable time means that as the
input size grows, the number of steps the algorithm
takes is proportional to the square (or cube, fourth
power, fifth power, etc.) of the size of the input.
Both are solvable but one can be solved in a
reasonable time because it has less steps
EK 4.2.1C Some problems cannot be
solved in a reasonable time, even for
small input sizes.
EK 4.2.1D Some problems can be solved
but not in a reasonable time. In these
cases, heuristic approaches may be
helpful to find solutions in reasonable
time.
In computer science, a heuristic algorithm is a problem
solving method that uses incomplete information to derive a
potentially inaccurate or imprecise solution.
EK 4.2.2A A heuristic is a technique that
may allow us to find an approximate
solution when typical methods fail to find
an exact solution.
The “ perfect” is the enemy of the good enough.
Heuristics is about finding a good enough solution that
works. NOT a PERFECT solution that might take TOO
LONG to find!
EK 4.2.2B Heuristics may be helpful for
finding an approximate solution more
quickly when exact methods are too slow.
The “ perfect” is the enemy of the good enough.
Heuristics is about finding a good enough solution that
works. NOT a PERFECT solution that might take TOO
LONG to find!
EK 4.2.2C Some optimization problems
such as “find the best” or “find the
smallest” cannot be solved in a
reasonable time but approximations to
the optimal solution can.The “ perfect” is
the enemy of the
good enough.
Heuristics is
about finding a
good enough
solution that
works. NOT a
PERFECT solution
that might take
TOO LONG to
find!
EK 4.2.2D Some problems cannot be
solved using any algorithm.
ALAN TURING along
with his colleague
ALONZO CHURCH
through the HALTING
THEOREM proved that
some computer
problems can’t ever be
solved. Example: you
can’t find every infinite
loop in a program
EK 4.2.3A An undecidable problem may
have instances that have an algorithmic
solution, but there is not algorithmic
solution that solves all instances of the
problem.
Alonzo and I proved that Its
impossible to create a
computer program that
solves EVERY problem!
EK 4.2.3B A decidable problem is one in
which an algorithm can be constructed to
answer "yes" or "no" for all inputs (e.g.,
"is the number even?").
EK 4.2.3C An undecidable problem is one
in which no algorithm can be constructed
that always leads to a correct yes-or-no
answer.
EK 4.2.4A Determining an algorithm’s
efficiency is done by reasoning formally or
mathematically about the algorithm.
EK 4.2.4B Empirical analysis of an
algorithm is done by implementing the
algorithm and running it on different
inputs.
To UNDERSTAND
HOW a program
WORKS. RUN it!
Trying out
different
numbers.
EK 4.2.4C The correctness of an algorithm
is determined by reasoning formally or
mathematically about the algorithm, not
by testing an implementation of the
algorithm.HEY THIS
EQUAL SIGN
DOESN’T
BELONG HERE!
EK 4.2.4D Different correct algorithms for
the same problem can have different
efficiencies.
IN COMPUTER SCIENCE THERE ARE MANY WAY TO SOLVE THE SAME PROBLEM, BUT SOME
SOLUTIONS ARE BETTER THAN OTHERS.
EK 4.2.4E Sometimes, more efficient
algorithms are more complex.
SOMETIMES, THE COMPLACTED SOLUTION
IS BETTER SOLUTION….
EK 4.2.4F Finding an efficient algorithm
for a problem can help solve larger
instances of the problem.
Sometimes, when you find a good algorithm that
SOLVES one problem, MIGHT be able to use it to
solve FUTURE problems…
EK 4.2.4G Efficiency includes both
execution time and memory usage.
Fast &
efficient
EK 4.2.4H Linear search can be used when
searching for an item in any list; binary
search can be used only when the list is
sorted.
Complete the algorithm questions

More Related Content

Similar to Ap exam big idea 4 algorithms

Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithms
Praveen M Jigajinni
 
Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)
TejaswiB4
 
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptxLec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab36
 
Algorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdfAlgorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdf
MaryJacob24
 
Small Basic Calculator Apps lesson
Small Basic Calculator Apps lessonSmall Basic Calculator Apps lesson
Small Basic Calculator Apps lesson
Edujetage
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
DeepikaV81
 
Improving Blockchain Developer Experience (DevX): Where UX meets Developer Tools
Improving Blockchain Developer Experience (DevX): Where UX meets Developer ToolsImproving Blockchain Developer Experience (DevX): Where UX meets Developer Tools
Improving Blockchain Developer Experience (DevX): Where UX meets Developer Tools
Erik Trautman
 
Design and analysis of algorithm lec 1.pptx
Design and analysis of algorithm lec 1.pptxDesign and analysis of algorithm lec 1.pptx
Design and analysis of algorithm lec 1.pptx
AyeshaIftikhar67
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
AnuragJoshi813963
 
Spreadsheets are code
Spreadsheets are codeSpreadsheets are code
Spreadsheets are code
Felienne Hermans
 
Ds03 algorithms jyoti lakhani
Ds03 algorithms jyoti lakhaniDs03 algorithms jyoti lakhani
Ds03 algorithms jyoti lakhani
jyoti_lakhani
 
A Survey of Verification Tools Based on Hoare Logic
A Survey of Verification Tools Based on Hoare Logic A Survey of Verification Tools Based on Hoare Logic
A Survey of Verification Tools Based on Hoare Logic
ijseajournal
 
S D D Program Development Tools
S D D  Program  Development  ToolsS D D  Program  Development  Tools
S D D Program Development Tools
gavhays
 
Compiler Design.pptx
Compiler Design.pptxCompiler Design.pptx
Compiler Design.pptx
SouvikRoy149
 
NLP Bootcamp 2018 : Representation Learning of text for NLP
NLP Bootcamp 2018 : Representation Learning of text for NLPNLP Bootcamp 2018 : Representation Learning of text for NLP
NLP Bootcamp 2018 : Representation Learning of text for NLP
Anuj Gupta
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
Prof. Erwin Globio
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to Programming
Prof Ansari
 
NLP Bootcamp
NLP BootcampNLP Bootcamp
NLP Bootcamp
Anuj Gupta
 
ProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdfProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdf
lailoesakhan
 
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptxChallenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptx
RusherGamer1
 

Similar to Ap exam big idea 4 algorithms (20)

Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithms
 
Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)
 
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptxLec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
 
Algorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdfAlgorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdf
 
Small Basic Calculator Apps lesson
Small Basic Calculator Apps lessonSmall Basic Calculator Apps lesson
Small Basic Calculator Apps lesson
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
 
Improving Blockchain Developer Experience (DevX): Where UX meets Developer Tools
Improving Blockchain Developer Experience (DevX): Where UX meets Developer ToolsImproving Blockchain Developer Experience (DevX): Where UX meets Developer Tools
Improving Blockchain Developer Experience (DevX): Where UX meets Developer Tools
 
Design and analysis of algorithm lec 1.pptx
Design and analysis of algorithm lec 1.pptxDesign and analysis of algorithm lec 1.pptx
Design and analysis of algorithm lec 1.pptx
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
 
Spreadsheets are code
Spreadsheets are codeSpreadsheets are code
Spreadsheets are code
 
Ds03 algorithms jyoti lakhani
Ds03 algorithms jyoti lakhaniDs03 algorithms jyoti lakhani
Ds03 algorithms jyoti lakhani
 
A Survey of Verification Tools Based on Hoare Logic
A Survey of Verification Tools Based on Hoare Logic A Survey of Verification Tools Based on Hoare Logic
A Survey of Verification Tools Based on Hoare Logic
 
S D D Program Development Tools
S D D  Program  Development  ToolsS D D  Program  Development  Tools
S D D Program Development Tools
 
Compiler Design.pptx
Compiler Design.pptxCompiler Design.pptx
Compiler Design.pptx
 
NLP Bootcamp 2018 : Representation Learning of text for NLP
NLP Bootcamp 2018 : Representation Learning of text for NLPNLP Bootcamp 2018 : Representation Learning of text for NLP
NLP Bootcamp 2018 : Representation Learning of text for NLP
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to Programming
 
NLP Bootcamp
NLP BootcampNLP Bootcamp
NLP Bootcamp
 
ProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdfProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdf
 
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptxChallenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptx
 

More from Lexume1

Lesson flow charts 1
Lesson flow charts 1Lesson flow charts 1
Lesson flow charts 1
Lexume1
 
Ap exam big idea 7 global impact
Ap exam big idea 7 global impactAp exam big idea 7 global impact
Ap exam big idea 7 global impact
Lexume1
 
Lesson pseudocode
Lesson  pseudocodeLesson  pseudocode
Lesson pseudocode
Lexume1
 
Ap exam big idea 6 the internet
Ap exam big idea 6 the internetAp exam big idea 6 the internet
Ap exam big idea 6 the internet
Lexume1
 
Ap exam big idea 3 data and information
Ap exam big idea 3 data and informationAp exam big idea 3 data and information
Ap exam big idea 3 data and information
Lexume1
 
Ap exam big idea 2 abstraction
Ap exam big idea 2 abstractionAp exam big idea 2 abstraction
Ap exam big idea 2 abstraction
Lexume1
 
Lesson4.4 u4 l1 using hex
Lesson4.4 u4 l1 using hexLesson4.4 u4 l1 using hex
Lesson4.4 u4 l1 using hex
Lexume1
 
Lesson4.3 u4 l1 hexadecimal representation
Lesson4.3 u4 l1 hexadecimal representationLesson4.3 u4 l1 hexadecimal representation
Lesson4.3 u4 l1 hexadecimal representation
Lexume1
 
Lesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squencesLesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squences
Lexume1
 
Lesson4.1 u4 l1 binary representation
Lesson4.1 u4 l1 binary representationLesson4.1 u4 l1 binary representation
Lesson4.1 u4 l1 binary representation
Lexume1
 
Lesson4.0 unit 4 the internet and global impact
Lesson4.0 unit 4  the internet and global impactLesson4.0 unit 4  the internet and global impact
Lesson4.0 unit 4 the internet and global impact
Lexume1
 
Lesson4.9 d u4l3 hierarchy of open protocols
Lesson4.9 d u4l3 hierarchy of open protocolsLesson4.9 d u4l3 hierarchy of open protocols
Lesson4.9 d u4l3 hierarchy of open protocols
Lexume1
 
Lesson4.9 c u4l3 tcp (transmission control protocol)
Lesson4.9 c u4l3 tcp (transmission control protocol)Lesson4.9 c u4l3 tcp (transmission control protocol)
Lesson4.9 c u4l3 tcp (transmission control protocol)
Lexume1
 
Lesson4.9 b u4l3 ip addresses
Lesson4.9 b u4l3 ip addressesLesson4.9 b u4l3 ip addresses
Lesson4.9 b u4l3 ip addresses
Lexume1
 
Lesson4.9 a u4l2 html
Lesson4.9 a u4l2 htmlLesson4.9 a u4l2 html
Lesson4.9 a u4l2 html
Lexume1
 
Lesson4.8 u4 l2 address hierarchy
Lesson4.8 u4 l2 address hierarchyLesson4.8 u4 l2 address hierarchy
Lesson4.8 u4 l2 address hierarchy
Lexume1
 
Lesson4.7 u4 l2 network redundancy
Lesson4.7 u4 l2 network redundancyLesson4.7 u4 l2 network redundancy
Lesson4.7 u4 l2 network redundancy
Lexume1
 
Lesson4.6 u4 l2 what is the internet?
Lesson4.6 u4 l2 what is the internet?Lesson4.6 u4 l2 what is the internet?
Lesson4.6 u4 l2 what is the internet?
Lexume1
 
Lesson2.9 o u2l6 who cares about encryption
Lesson2.9 o u2l6 who cares about encryptionLesson2.9 o u2l6 who cares about encryption
Lesson2.9 o u2l6 who cares about encryption
Lexume1
 
Lesson2.9 p u2l6 cryptography and innovations
Lesson2.9 p u2l6 cryptography and innovationsLesson2.9 p u2l6 cryptography and innovations
Lesson2.9 p u2l6 cryptography and innovations
Lexume1
 

More from Lexume1 (20)

Lesson flow charts 1
Lesson flow charts 1Lesson flow charts 1
Lesson flow charts 1
 
Ap exam big idea 7 global impact
Ap exam big idea 7 global impactAp exam big idea 7 global impact
Ap exam big idea 7 global impact
 
Lesson pseudocode
Lesson  pseudocodeLesson  pseudocode
Lesson pseudocode
 
Ap exam big idea 6 the internet
Ap exam big idea 6 the internetAp exam big idea 6 the internet
Ap exam big idea 6 the internet
 
Ap exam big idea 3 data and information
Ap exam big idea 3 data and informationAp exam big idea 3 data and information
Ap exam big idea 3 data and information
 
Ap exam big idea 2 abstraction
Ap exam big idea 2 abstractionAp exam big idea 2 abstraction
Ap exam big idea 2 abstraction
 
Lesson4.4 u4 l1 using hex
Lesson4.4 u4 l1 using hexLesson4.4 u4 l1 using hex
Lesson4.4 u4 l1 using hex
 
Lesson4.3 u4 l1 hexadecimal representation
Lesson4.3 u4 l1 hexadecimal representationLesson4.3 u4 l1 hexadecimal representation
Lesson4.3 u4 l1 hexadecimal representation
 
Lesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squencesLesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squences
 
Lesson4.1 u4 l1 binary representation
Lesson4.1 u4 l1 binary representationLesson4.1 u4 l1 binary representation
Lesson4.1 u4 l1 binary representation
 
Lesson4.0 unit 4 the internet and global impact
Lesson4.0 unit 4  the internet and global impactLesson4.0 unit 4  the internet and global impact
Lesson4.0 unit 4 the internet and global impact
 
Lesson4.9 d u4l3 hierarchy of open protocols
Lesson4.9 d u4l3 hierarchy of open protocolsLesson4.9 d u4l3 hierarchy of open protocols
Lesson4.9 d u4l3 hierarchy of open protocols
 
Lesson4.9 c u4l3 tcp (transmission control protocol)
Lesson4.9 c u4l3 tcp (transmission control protocol)Lesson4.9 c u4l3 tcp (transmission control protocol)
Lesson4.9 c u4l3 tcp (transmission control protocol)
 
Lesson4.9 b u4l3 ip addresses
Lesson4.9 b u4l3 ip addressesLesson4.9 b u4l3 ip addresses
Lesson4.9 b u4l3 ip addresses
 
Lesson4.9 a u4l2 html
Lesson4.9 a u4l2 htmlLesson4.9 a u4l2 html
Lesson4.9 a u4l2 html
 
Lesson4.8 u4 l2 address hierarchy
Lesson4.8 u4 l2 address hierarchyLesson4.8 u4 l2 address hierarchy
Lesson4.8 u4 l2 address hierarchy
 
Lesson4.7 u4 l2 network redundancy
Lesson4.7 u4 l2 network redundancyLesson4.7 u4 l2 network redundancy
Lesson4.7 u4 l2 network redundancy
 
Lesson4.6 u4 l2 what is the internet?
Lesson4.6 u4 l2 what is the internet?Lesson4.6 u4 l2 what is the internet?
Lesson4.6 u4 l2 what is the internet?
 
Lesson2.9 o u2l6 who cares about encryption
Lesson2.9 o u2l6 who cares about encryptionLesson2.9 o u2l6 who cares about encryption
Lesson2.9 o u2l6 who cares about encryption
 
Lesson2.9 p u2l6 cryptography and innovations
Lesson2.9 p u2l6 cryptography and innovationsLesson2.9 p u2l6 cryptography and innovations
Lesson2.9 p u2l6 cryptography and innovations
 

Recently uploaded

writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 

Recently uploaded (20)

writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 

Ap exam big idea 4 algorithms

  • 1. L.O: STUDENTS WILL REVIEW BIG IDEA 4: ALGORITHMS DO NOW: READ PAGE 49-54
  • 2. EK 4.1.1A Sequencing, selection, and iteration are building blocks of algorithms
  • 3. EK 4.1.1B Sequencing is the application of each step of an algorithm in the order in which the statements are given.
  • 4. EK 4.1.1C Selection uses a Boolean condition to determine which of two parts of an algorithm is used.
  • 5. EK 4.1.1D Iteration is the repetition of part of an algorithm until a condition is met or for a specified number of times.
  • 6. EK 4.1.1E Algorithms can be combined to make new algorithms.
  • 7. EK 4.1.1F Using existing correct algorithms as building blocks for constructing a new algorithm helps ensure the new algorithm is correct Programmers use what they know WORKS to make something new that they know will work TOO!
  • 8. EK 4.1.1G Knowledge of standard algorithms can help constructing new algorithms You can use programs that already exist, are commonly used and commonly known to create NEW programs!
  • 9. EK 4.1.1H Different algorithms can be developed to solve the same problem. There is more than one way to “skin a cat”. There is more than one way to solve the same problem. There is more than one way of solving the same computing challenge!
  • 10. EK 4.1.1I Developing a new algorithm to solve a problem can yield insight into the problem. Sometimes a new way of solving a problem creates a NEW WAY of seeing the problem!
  • 11. EK 4.1.2B Natural language and pseudocode describe algorithms so that humans can understand them.
  • 12. EK 4.1.2C Algorithms described in programming languages can be executed on a computer.
  • 13. EK 4.1.2D Different languages are better suited for expressing different algorithms.
  • 14. EK 4.1.2E Some programming languages are designed for specific domains and are better for expressing algorithms in those domains.
  • 15. EK 4.1.2F The languages used to express an algorithm can affect characteristics such as clarity or readability but not whether an algorithmic solution exists. These words all say the same thing, but some languages are clearer and more readable
  • 16. EK 4.1.2G Every algorithm can be constructed using only sequencing, selection, and iteration.
  • 17. EK 4.1.2H Nearly all programming languages are equivalent in terms of being able to express any algorithm. You can say same word, “hello” in any human language, You write the same computer program in nearly any computer language.
  • 18. EK 4.1.2I Clarity and readability are important considerations when expressing an algorithm in a language. Just like handwriting should be clear and readable, expressing an algorithm should be clear and readable too!
  • 19. EK 4.2.1A Many problems can be solved in a reasonable time.
  • 20. EK 4.2.1B Reasonable time means that as the input size grows, the number of steps the algorithm takes is proportional to the square (or cube, fourth power, fifth power, etc.) of the size of the input. Both are solvable but one can be solved in a reasonable time because it has less steps
  • 21. EK 4.2.1C Some problems cannot be solved in a reasonable time, even for small input sizes.
  • 22. EK 4.2.1D Some problems can be solved but not in a reasonable time. In these cases, heuristic approaches may be helpful to find solutions in reasonable time. In computer science, a heuristic algorithm is a problem solving method that uses incomplete information to derive a potentially inaccurate or imprecise solution.
  • 23. EK 4.2.2A A heuristic is a technique that may allow us to find an approximate solution when typical methods fail to find an exact solution. The “ perfect” is the enemy of the good enough. Heuristics is about finding a good enough solution that works. NOT a PERFECT solution that might take TOO LONG to find!
  • 24. EK 4.2.2B Heuristics may be helpful for finding an approximate solution more quickly when exact methods are too slow. The “ perfect” is the enemy of the good enough. Heuristics is about finding a good enough solution that works. NOT a PERFECT solution that might take TOO LONG to find!
  • 25. EK 4.2.2C Some optimization problems such as “find the best” or “find the smallest” cannot be solved in a reasonable time but approximations to the optimal solution can.The “ perfect” is the enemy of the good enough. Heuristics is about finding a good enough solution that works. NOT a PERFECT solution that might take TOO LONG to find!
  • 26. EK 4.2.2D Some problems cannot be solved using any algorithm. ALAN TURING along with his colleague ALONZO CHURCH through the HALTING THEOREM proved that some computer problems can’t ever be solved. Example: you can’t find every infinite loop in a program
  • 27. EK 4.2.3A An undecidable problem may have instances that have an algorithmic solution, but there is not algorithmic solution that solves all instances of the problem. Alonzo and I proved that Its impossible to create a computer program that solves EVERY problem!
  • 28. EK 4.2.3B A decidable problem is one in which an algorithm can be constructed to answer "yes" or "no" for all inputs (e.g., "is the number even?").
  • 29. EK 4.2.3C An undecidable problem is one in which no algorithm can be constructed that always leads to a correct yes-or-no answer.
  • 30. EK 4.2.4A Determining an algorithm’s efficiency is done by reasoning formally or mathematically about the algorithm.
  • 31. EK 4.2.4B Empirical analysis of an algorithm is done by implementing the algorithm and running it on different inputs. To UNDERSTAND HOW a program WORKS. RUN it! Trying out different numbers.
  • 32. EK 4.2.4C The correctness of an algorithm is determined by reasoning formally or mathematically about the algorithm, not by testing an implementation of the algorithm.HEY THIS EQUAL SIGN DOESN’T BELONG HERE!
  • 33. EK 4.2.4D Different correct algorithms for the same problem can have different efficiencies. IN COMPUTER SCIENCE THERE ARE MANY WAY TO SOLVE THE SAME PROBLEM, BUT SOME SOLUTIONS ARE BETTER THAN OTHERS.
  • 34. EK 4.2.4E Sometimes, more efficient algorithms are more complex. SOMETIMES, THE COMPLACTED SOLUTION IS BETTER SOLUTION….
  • 35. EK 4.2.4F Finding an efficient algorithm for a problem can help solve larger instances of the problem. Sometimes, when you find a good algorithm that SOLVES one problem, MIGHT be able to use it to solve FUTURE problems…
  • 36. EK 4.2.4G Efficiency includes both execution time and memory usage. Fast & efficient
  • 37. EK 4.2.4H Linear search can be used when searching for an item in any list; binary search can be used only when the list is sorted.