INTRO TO PROGRAMMING
This time we're talking about a very interesting topic which is programming , it's a bit of a long topic so it's gonna be in 2 posts
Programming is found in every device , machine or vehicle, it's what gives any of them their values
Programming is giving an order to a device for example, but you'll have to give a step by step instructions for the device to understand what you want and do it right
Algorithms are the steps of carrying out a task or steps of solving a problem , the word algorithm comes from the name of Arab scholars "Al-Khawarizmi" who invented it in the 8th century
Properties of an algorithm :
- Must be exact
- Must terminate
- Must be effective
- Should be general
Problem solving has a number of stages ,at first we define the problem then we do a step by step instruction ( write an algorithm) then writing a code , checking if it works , lastly we write every thing down to help others having the same problem
There could be more than one algorithm to solve a problem, using a flow chart is the most common ,it demonstrates the sequential character of an algorithm
تعليقات
إرسال تعليق