DEV Community

Cover image for Programming Concept #Algorithm
Anwar Sadat Ayub
Anwar Sadat Ayub

Posted on

Programming Concept #Algorithm

Hi there πŸ€—.

I have decided to create a series on the concepts of programming. If I missed out on something, please you can leave a message in the comment section. Let's help as many beginners as we can. With that side note, let's dive into today's post.

As a software developer, the first thing you should learn is Algorithm 😱. Wait now, it's not that scary. I know you are thinking about maths because you are probably math-phobia but it's not it. It is not Algebra but rather Algorithm.

Algorithm is basically the steps you will follow to complete a certain task. As humans, we always follow an algorithm to do something i.e. sleeping, eating, going to school, reading this blog post, etc.

Before you do any task, you will have to think about what you need to do to successfully complete the task. For example, can you write down the directions from your house to your school using landmarks for your friend to follow? Well, if you can do that, then it means you can write an algorithm. The directions you wrote must follow a certain order or sequence. The moment you switch one of the steps, your friend will never get to your school.

Basically that's Algorithm. It's not that difficult to start with. You can express each step using the English language which is referred to as PseudoCode meaning "FalseCode". Your pseudocode should not include any programming language keyword. It should be easy and simple enough to read and understand.

You can also express your algorithm graphically using Flow Chart. It uses symbol to represent actions in your algorithm.
Both pseudocode and flow chart cam be used as a blueprint to write code in any programming language.

In my next post, I will discuss how to write an algorithm using pseudocode and flow chart.

Enjoy your weekend and see you on the next one πŸ‘‹

Top comments (2)

anwar_sadat profile image
Anwar Sadat Ayub

Thanks Andrew ☺️

andrewbaisden profile image
Andrew Baisden

Adding some spaces between the paragraphs will make it more readable πŸ˜‰