What is an Algorithm?
Algorithms are steps that are used to solve a problem the word algorithm has it's roots Latinizing the name of Persian mathematician " Muḥammad ibn Mūsā al-Khwārizmī " a famous mathematician.
An example of using an algorithm?
One of the most famous examples about algorithms is recipes if you have ever tried to cook you'll find yourself following a certain rules or steps so that's an algorithm.
My steps to build an algorithm?
1. I need to understand 80% of the question.
2. I will try to write some notes to remind me of what am i supposed to do.
3. I will try to write a code as simple as possible and implement it if it works then i try to refactor it.
The challenges to create an algorithm?
Understanding the question is the most important step to implement an algorithm because you cannot build an algorithm about a thing you don't understand.
No comments:
Post a Comment