Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Algorithm and Programming (Introduction of Algorithms)

2,799 views

Published on

This file contains explanation about introduction of algorithms. This file was used in my Algorithm and Programming Class.

Published in: Software
  • Be the first to comment

Algorithm and Programming (Introduction of Algorithms)

  1. 1. Adam Mukharil Bachtiar English Class Informatics Engineering 2011 Algorithms and Programming Introduction of Algorithms
  2. 2. Steps of the Day Let’s Start Rules Of Lecture Syllabus Introduction of Algorithms
  3. 3. Rules of Lecture Description of Subject, Rules, References and Value
  4. 4. • Name of subject : Algorithm and and Programming • Prerequisite : none • Lecturer : Adam Mukharil Bachtiar • SKS : 4 SKS (Divide into 2 Teoritics and 2 Practises) Description of Subject
  5. 5. Rules Don’t be late to come in my classroom
  6. 6. Rules Presence must be above 80%
  7. 7. Rules Do all components of value
  8. 8. Rules Don’t be CHEATING!!!
  9. 9. ComponentsofValue • Presence : 10% • Homework : 20% • Middle Test : 30 % • Final Test : 40%
  10. 10. References • Rinaldi Munir, Algoritma & Pemrograman • Inggriani Liem, Diktat Algoritma dan Pemrograman
  11. 11. Syllabus Before and After Middle Test
  12. 12. SyllabusofSubject • Introduction of Algorithms • Introduction of Dev Pascal, Data Type, value, and naming • Sequential Structure • Branching Structure • Looping and Structure • Procedure and Function • Middle Test
  13. 13. SyllabusofSubject • One Dimension Array • Two Dimension Array • Record • Array of Record • Searching • Sorting • Final Test
  14. 14. Introduction Of Algorithms Definition and Example
  15. 15. Why We Must Study Algorithm?
  16. 16. What is the Definition of Problem? Question or set of works that must be done with human.
  17. 17. Algorithm and Programming can solve the problems
  18. 18. Some Terms in Programming • Program is implementation of ALGORITHM that was made from one programming language. • Programming language is notation that was used in ALGORITHM NOTATION to communicate with computers. • Programmers are people who made the programs with ONE OR MANY programming languages.
  19. 19. Types of Programming Languages • High Level • Middle Level • Low Level
  20. 20. Build the Program • Problem Definition • Requirements Analysis • Build the algorithms • Coding • Testing and Debugging • Maintenance • Documentation
  21. 21. What is Algorithm? Sequence of steps to solve the problems.
  22. 22. Presentation of Algorithm DESCRIPTIVE ANALYSIS FLOW CHART PSEUDO CODE
  23. 23. Example of Descriptive Analysis How to Make Scramble Egg: • Pour oil into skillet. • Heat oil. • Break the eggs and pour into the hot oil. • Fry it • Serve on a plate
  24. 24. Example of Flow Chart SYMBOL ACTIVITY INPUT/OUTPUT PROCESSING DECISION PROCEDURE/SUBROUTINE
  25. 25. Example of Flow Chart SYMBOL ACTIVITY FLOW LINES START/TERMINATOR ON PAGE CONNECTOR OFF PAGE REFERENCE
  26. 26. Example of Flow Chart
  27. 27. Example of Pseudo Code 1 2 3 4 5 6 7 8 9 10 11 Algoritma Tambah_Nilai {I.S.: Nilai kesatu dan kedua diinisialisasi} {F.S.: Menghitung penambahan nilai kesatu dan kedua} Deklarasi: {atau Kamus:} a,b,c:integer Algoritma: a1 b2 ca+b
  28. 28. Ilustration of Exchange Value with Variable A B A B
  29. 29. Ilustration of Exchange Value with Variable A C A C B A B A
  30. 30. Ilustration of Exchange Value with Variable C B C BA
  31. 31. EXERCISE
  32. 32. Exercise 1 Turn the process of exchange value with variable into: • Descriptive Analysis • Flow Chart • Pseudo Code
  33. 33. Exercise 2 Make algoritm for exchange value without variable (this case only suitable for integer) in: • Descriptive Analysis • Flow Chart • Pseudo Code
  34. 34. Exercise 3 Make algoritm for basic arithmetic operation (add, substract, multiply, and divide) in: • Descriptive Analysis • Flow Chart • Pseudo Code
  35. 35. Contact Person: Adam Mukharil Bachtiar Informatics Engineering UNIKOM Jalan Dipati Ukur Nomor. 112-114 Bandung 40132 Email: adfbipotter@gmail.com Blog: http://adfbipotter.wordpress.com Copyright © Adam Mukharil Bachtiar 2011

×