+ 9

Do you make pseudocodes before solving problems using algorithms?

Is there special benefits in writing pseudocodes?

31st Mar 2017, 3:58 PM
Rumesh Madhusanka
Rumesh Madhusanka - avatar
5 Réponses
+ 9
I find it good practice to make one. It is more like taking notes of an attack mission in an unfamiliar land then use the notes to guide you. Of course, these notes can be later edited or even changed completely in the real action on ground. Similarly, sometimes one might have ignored or skipped a step in the pseudo code but find it necessary while writing code.
1st Apr 2017, 5:13 AM
Tusiime Innocent Boub
Tusiime Innocent Boub - avatar
+ 15
not always. if i need to communicate what i want to write, i make pseudocode.
31st Mar 2017, 4:28 PM
Agus Mei
Agus Mei - avatar
+ 11
what is psudo code?
14th Apr 2017, 1:11 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 7
I do, given the problem is difficult enough. Although my pseudo code usually has a high degree of abstraction and I deal with the nitty gritty details or choice of data structures later on. It is useful to check your thinking that way. Also you get a good idea of the algorithms complexity (meaning runtime and memory usage) by seeing it sketched.
31st Mar 2017, 4:14 PM
Tob
Tob - avatar
+ 7
Thanks @Rumesh Madhusanka for choosing my answer as the best! 👏👏👏 It came in timely that it raised my level & Rank at the same time.
6th Apr 2017, 3:40 PM
Tusiime Innocent Boub
Tusiime Innocent Boub - avatar