+ 3
How to make your own algorithm to solve problems?
5 Answers
+ 9
Yes you generally write the steps of the algorithm in English, your own language, pseudo code or via a diagram such as a flow chart. The code you write is the implementation of the algorithm.
+ 15
For that you have to solve the problem first.
If you would be able to solve that problem then the STEPS that you use to solve it is actually an ALGORITHM for that problem
----------------------------------------------------
Hope you get your answer
+ 5
First thing is to have a good understanding of algorithms and data structures then formulate your problem and write it down. Imagine you have infinite time and space, think of the correct steps you would follow to solve your problem given the unlimited time and space. Then start limiting your time and space tweaking your steps to improve time and space efficiency to a practical level i.e. what your machine could handle. Now use your favorite programming language to code the steps/pseudo code. There goes your algorithm.đ
+ 2
Sonic Yeah i've learned this before
from udacity courses
+ 2
According to me, first I just thinking how can I solve the problem in my mind, then I put them at the code.