Oct
06
2015

Review Algorithm learning session 1 – 1 Oktober 2015

OOP: Object Oriented Programming

various kinds of OOPs

  • Inheritance : Allows classes or object to be inherited from other classes/object in the same way, this allows the use of code reusability, thus specifying implementation to maintain same behaviour, just like father and son.
  • Encapsulation: Is a packing of data into a single object, creating a digital “capsule” that protects it from outside sources thus allows it to be protected from accidental corruption or malicious programs
  • Abstract: Type of OOPs that is random, which allows it to correct itself, but also unstable.

Programming language difficulty levels

  • Low-level programming language : Assembler
  • Medium-level programming language : C, Pascal, Fortran
  • High-level programming language : C#, Java, C++

Basic forms of algorithm can be described in two ways:

  • Pseudocode
  • Flowchart

Pseudocode

Pseudocode is an informal description for high-level programming language of a computer program or algorithm, it describes the algorithm intended for human reading, instead of machine reading.

Example:

Start

Wake up

Walks out from the bed

Opens the bedroom door

Walks out from the bedroom door

Sit on a couch

Watch TV

End

Flowchart

Flowchart is used to simplify reading of pseudocode for an algorithm, instead of texts, it uses visual information in a form of two-dimensional bubbles, like baloon chat in comics, that interconnected to each other with lines, the process “flows” from one bubbles to the next, forming the algorithm and detailing it for human understanding.

Example:

Algorithm - Flowchart

 

Flowchart types

Algorithm - Flowchart 2

Example of efficient use of algorithms

  • Correct
  • Fast
  • Small space
  • Clever
  • General
  • Simple

Good Algorithm Practice

  • Having the right logical flow to solve the problem
  • Producing the correct output in a time efficient manner
  • Written using unambiguous structured language
  • Easy implementation into real programming language
  • All steps and operations are clearly defined and ended

Founder of C 

  • Dennis Ritchie

Dennis Ritchie founded C programming language between 1969 to 1973 at AT&T Bell Labs

Why do we use C?

  • Flexible
  • Compatibility
  • Ease of use
  • Simplicity

History of Algorithm

Al-Khawarizmi

Algorithm is created by an arabic man named Al-Khawarizmi (Abu Jafar Muhammad Ibnu Musa Al Khawarizmi). He is a medieval arabic mathematician, algorithm is created to solve problems in a methodical way, thus creating computers of today and change the face of the modern world as we know it.

 

 

The End.

Thank you.

Written by zedmatter123 in: College assignment |

No Comments »

RSS feed for comments on this post. TrackBack URL


Leave a Reply

Powered by WordPress. Theme: TheBuckmaker. Zinsen, Streaming Audio