0

I wrote the following pseudocode and I want to know if it is ok.

enter image description here

the two variables

   local_atoms                        //atoms inside hlground

and

   global_hlinks                      //hyperlinks to be cut 

are going to receive some value as it shown in the algorithm. But someone says putting them as in line 2 and line 3 is not right. I said I give comments on the right of line 2 and line 3, so it should be clear enough.

So I checked some examples of using algorithm package for writing pseudocode and did not find examples written like mine. So I want to know what is the best way to write line 2 and line 3?

My question is related to using algorithm package, so I am asking it here.

3
  • Are you looking for an opinion about the logic/formatting of your code example? If yes, then I would rather ask the person for whom you make it for (e. g. your professor if this is applicable). Or do you have a technical question (how to achieve this and that) - is that's the case, then I do not understand the question. Mar 12, 2017 at 12:30
  • @Dr.ManuelKuehner I am asking for the way to format the two lines. commenting them as shown is the right way or something else can be done in algorithm package?
    – alim
    Mar 12, 2017 at 14:11
  • Again, I think this is more a question about opinion or convention. Or maybe I don't get it. The question is now one day old and didn't get any attention apart from comment. Maybe others also have problems understanding it. Mar 12, 2017 at 14:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.