Computer Science, asked by sulekhasanyal63, 5 months ago

rules for writing an algorithm..​

Answers

Answered by KILLERsai
3

Explanation:

The following are few things that should be taken care of whenever you write an algorithm

Correctness.

Runtime analysis

Implementation

Correctness: Question about the correctness of an algorithm at every line, it will help you a lot.

Runtime Analysis: Always analyse the running time of an algorithm. You will know the importance of this only when you are dealing with high scale inputs. ( This involves lot of math )

Implementation: There are two things you will do when you write an algorithm

Learn how an algorithm works

Learn how to use an algorithm.

You may not want to know how an algorithm works, but you can at least want to learn how to solve a problem using an algorithm.You can be a decent coder by just knowing the latter one. But first one is also very important, you will realize it's importance only when you deal with non standard and hard problems. Learning how an algorithm works will help you a lot in hard times

Similar questions