Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

HOW TO WRITE A GOOD ALGORITHM

It has been a very long time since we posted a new article.I am back again with new tutorial of knowing Algorithm. Someone may ask what an algorithm is.
Algorithm is the the well defined instructions which is unambiguous  in a sequential order to accomplish a task.
Example of an algorithm is.
We want to write an algorithm about how to delete a folder from a computer desktop:
The algorithm for the above instruction is as followed.

1:Start
2:Go to desktop
3:Locate the folder you want to delete
4:Right-click on the folder you want to delete
5:A popup menu appears, select from the popup menu delete
6:Click on yes from the option that appears
7:stop
Above is a very  nice and simple algorithm
And also, algorithm being an instruction has to begin  with a START and STOP known as TERMINALS ;
CHARACTERISTICS OF A GOOD ALGORITHM
Below is some of the characteristics of a good algorithm to all programmers
1: A good algorithm must be well defined
2:every good algorithm must be umambigious
3:Algorithms must be written in a sequential order 
4:A good algorithm should be able to accomplish a task.
STRUCTURE OF AN ALGORITHM


This post first appeared on ANDROID NEGA, please read the originial post: here

Share the post

HOW TO WRITE A GOOD ALGORITHM

×

Subscribe to Android Nega

Get updates delivered right to your inbox!

Thank you for your subscription

×