Académique Documents
Professionnel Documents
Culture Documents
Year
Session 26
Practices of Algorithm Analysis
CASE 1
Create an algorithm to calculate the number of
divisor factor a number N!
Bina Nusantara
STAGE 5
Code optimization
Find which section of the pseudocode that can be
optimized!
Bina Nusantara
STAGE 6
Writing programs, compiling, testing
Perform repairs if necessary
Issues in choosing a programming language
Bina Nusantara
Issues needed
Speed
Display
Compatibility
Memory and data types
STAGE 7
Implementation, training, maintenance
The last stage is often overlooked
A program mean nothing if users do not know how
to use it!
Bina Nusantara
CASE 2
Make an algorithm to display the number of divider factor of
X, where X is 1 to N!
Example
Number of factor of 1 is a 1
Number of factor of 2 is a 2
Number of factor of 3 is a 2
Number of factor of 4 is a 3
Number of factor of 5 is a 2
Number of factor of 6 is a 4
And so on
SOLVING OF CASE 2
Bina Nusantara
Bina Nusantara
CLOSING
The key to success in mastering computer
programming is practicing and keep practicing.
Bina Nusantara
Books References
References:
Computer Algorithms / C++
Ellis Horowitz, Sartaj Sahni, Sanguthevar Rajasekaran.
Computer Science Press. (1998)
Introduction to Algorithms
Thomas H Cormen, Charles E Leiserson, Ronald L.
3nd Edition. The MIT Press. New York. (2009)
END
Bina Nusantara