Search and Sort Techniques
Search and Sort Techniques
TECHNIQUES
FERRY KEMPERMAN
NANJING FOREIGN LANGUAGE SCHOOL
APRIL 2019
ALGORITHM DESIGN: EFFICIENCY
• As a software designer you have to design algorithms that meet the following two basic
requirements:
• 1. Works according to specification (correctness)
• 2. Works in the most efficient manner
• Efficiency of an algorithm is comprised of two main factors:
• - Least possible use of resources (CPU/RAM) during execution
• - Fastest possible execution of your algorithm
When you design an algorithm your design should take efficiency into account, but how?
HOW TO DESIGN AN EFFICIENT ALGORITHM?
A FEW GUIDELINES…..
Searching and sorting algorithms for arrays are well know design techniques in
Computer Science.
Before introducing them, let’s use a metaphor to understand the importance
of this.
SUPERMARKET METAPHOR