+ 3

How to make your own algorithm to solve problems?

15th Apr 2019, 11:35 AM
khalil Saghiri
khalil Saghiri - avatar
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.
16th Apr 2019, 6:47 AM
Sonic
Sonic - avatar
+ 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
15th Apr 2019, 11:54 AM
Mohd Abdul Sameer
Mohd Abdul Sameer - avatar
+ 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.😍
17th Apr 2019, 4:56 AM
Dan Rhamba
Dan Rhamba - avatar
+ 2
Sonic Yeah i've learned this before from udacity courses
16th Apr 2019, 11:43 AM
khalil Saghiri
khalil Saghiri - avatar
+ 2
According to me, first I just thinking how can I solve the problem in my mind, then I put them at the code.
16th Apr 2019, 1:11 PM
Fandi Presly Simamora
Fandi Presly Simamora - avatar