I am writing a research paper about discovery of a new data structure. From here (question a), here, and here I have inferred that I should not publish actual code in the paper, but instead use pseudocode.

I have been busy translating my object-oriented code (written in C#) to pseudocode for my paper. Here's the C# for one method I'm translating:

private void Resize()

    if (IsEmpty)
        _head = new T[4];
        _capacity = 4;

    int nextCapacity = _capacity == 4 ? 4 : HeadCapacity * 2;

    _head = new T[nextCapacity];
    _headCount = 0;
    _capacity += nextCapacity;

Here's the pseudocode, which I translated almost verbatim:

The pseudocode seems very unnatural/imperative to me, compared to the pseudocode I read in other academic paper describing data structures. Am I doing something wrong, or can I improve on anything?

  • 1
    It is very difficult to learn how to write a (publishable) academic paper unassisted, just because there are so many unwritten rules, field-dependent norms, specific vocabulary and expectations, etc. I strongly encourage you to find a mentor who is a researcher in your field of interest, and can give you personal feedback on your work. It will likely save you a LOT of time and effort. – ff524 Oct 15 '17 at 5:18
  • @ff524 I will follow your advice and speak to my mentor tomorrow, but just to be sure I want to get as many opinions as possible. – James Ko Oct 16 '17 at 21:34

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.