Primarily check wikipedia on pseudocode. Either:

  • use a Pascal style (for instance), or
  • use a Math style

First a bug on first glance:

    If minsource > source[i]
        minsource = source[i]
    Else if maxsource < source[i]
        maxsource = source[i]
    Endif

Should be

    If minsource > source[i]
        minsource = source[i]
    Endif
    If maxsource < source[i]
        maxsource = source[i]
    Endif

The case should be consistent (minsource/Minsource).

You might introduce

Function {int min, int max} array_min_max(int[] array)
    min = Integer.MAX_VALUE;
    max = Integer.MIN_VALUE;
    For value in array
        min = Math.min(min, value);
        max = Math.max(min, value);
    Endfor
Endfunction

Declaring at first use can be better readable.

Declare int minsource, maxsource
For (int i = 0; i < source.length; i++)
    If i == 0 
        minsource = source[i]
        maxsource = source[i]
    Else
        If minsource > source[i]
            minsource = source[i]
        EndIf
        If maxsource < source[i]
            maxsource = source[i]
        Endif
    Endif
Endfor

For (int i = 0; i < m; i++)
    Declare int mintarget, maxtarget
    {mintarget, maxtarget} = array_min_max(target[i]);
    If minsource == mintarget && maxsource == maxtarget
        Print true
        STOP
    Else if maxtarget > maxsource
        Print false
        STOP
    Endif
Endfor

Print false
STOP

On the pseudo-language itself: the "Basic" above with its recognisable C I find a bit irritating. Also I would go for min_target or minTarget instead of mintarget.

There are so many languages. In Computer Science there is a long non-tradition. The high level expression language Algol68 was used often, as it even has a bold type face for types and keywords. It would indeed be nice if you could use richt text.

Pascal like pseudo code, maybe borrowed from Modula with IF THEN ELSE END.

Personally I do not like camel case and would prefer all lower case.

Answer from Joop Eggen on Stack Overflow
🌐
Kalyna
mentor.enterprisedna.kalyna.dev › pseudo-code-generator
Pseudo Code Generator - Mentor
Our Pseudo Code Generator simplifies complex logic and requirements by transforming them into easy-to-understand high-level pseudocode.
🌐
Lex
theresanaiforthat.com › s › code+to+pseudocode+converter
Code to pseudocode converter - There's An AI For That®
Home Search Deals Leaderboard Tasks Mini tools Characters Map · Launch / Advertise Newsletter Merchandise Contact us ... Transform your codebase into comprehensive, beautiful documentation automatically. ... Generate code for Arduino with our AI. ... Convert code between languages instantly with AI. ... TypeScript/Java code snippet conversion saves dev time. ... Convert code between languages with a click. ... Write and compile pseudocode instantly online.
Discussions

Convert code to pseudocode automatically
Do you count python as pseudocode? https://github.com/pybee/seasnake More on reddit.com
🌐 r/AskEngineers
2
2
September 22, 2019
algorithm - Translating C programming into pseudocode - Stack Overflow
I'm writing a pseudo-code for an algorithm. The result looks very much like C language because it's the language I'm most familiar with. The code is as follows: START Declare int m, int n Input val... More on stackoverflow.com
🌐 stackoverflow.com
Is it malpractice to use Chat-Gpt to convert actual code into pseudocode?
On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge. If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options: Limiting your involvement with Reddit, or Temporarily refraining from using Reddit Cancelling your subscription of Reddit Premium as a way to voice your protest. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/learnprogramming
36
8
October 30, 2023
Is it malpractice to use Chat-Gpt to convert actual code into ...
🌐 r/learnprogramming
🌐
PseudoEditor
pseudoeditor.com › converter
Pseudocode Converter - PseudoEditor
Convert between pseudocode and program code in seconds with our converter.
🌐
Pseudocode
pseudocode.pro › editor
Pseudocode Pro - Cambridge IGCSE, O-Level & A-Level Pseudocode Executor
Tested and works for all demo programs - please contact me if this breaks any of your working code! ... Download one or more .pseudo files for future use (e.g. backup/sharing/transferring to a different device)
🌐
Runcell
runcell.dev › tool › pseudocode-generator
AI Pseudocode Generator — LaTeX Algorithm Writer | runcell
Convert natural language requirements into LaTeX pseudocode with an interactive AI workspace. Ideal for research papers and technical reports.
Find elsewhere
🌐
Nick Janetakis
nickjanetakis.com › blog › from-a-written-problem-to-pseudo-code-to-working-code-python
From a Written Problem to Pseudo Code to Working Code (Python) — Nick Janetakis
May 10, 2022 - The steps I would take are: Parse the site response as JSON Loop over that response (it's a list) If the item's serverType is "transparency" Store the item's id or do whatever you need (append this whole item to a new variable, etc.)
Top answer
1 of 2
1

Primarily check wikipedia on pseudocode. Either:

  • use a Pascal style (for instance), or
  • use a Math style

First a bug on first glance:

    If minsource > source[i]
        minsource = source[i]
    Else if maxsource < source[i]
        maxsource = source[i]
    Endif

Should be

    If minsource > source[i]
        minsource = source[i]
    Endif
    If maxsource < source[i]
        maxsource = source[i]
    Endif

The case should be consistent (minsource/Minsource).

You might introduce

Function {int min, int max} array_min_max(int[] array)
    min = Integer.MAX_VALUE;
    max = Integer.MIN_VALUE;
    For value in array
        min = Math.min(min, value);
        max = Math.max(min, value);
    Endfor
Endfunction

Declaring at first use can be better readable.

Declare int minsource, maxsource
For (int i = 0; i < source.length; i++)
    If i == 0 
        minsource = source[i]
        maxsource = source[i]
    Else
        If minsource > source[i]
            minsource = source[i]
        EndIf
        If maxsource < source[i]
            maxsource = source[i]
        Endif
    Endif
Endfor

For (int i = 0; i < m; i++)
    Declare int mintarget, maxtarget
    {mintarget, maxtarget} = array_min_max(target[i]);
    If minsource == mintarget && maxsource == maxtarget
        Print true
        STOP
    Else if maxtarget > maxsource
        Print false
        STOP
    Endif
Endfor

Print false
STOP

On the pseudo-language itself: the "Basic" above with its recognisable C I find a bit irritating. Also I would go for min_target or minTarget instead of mintarget.

There are so many languages. In Computer Science there is a long non-tradition. The high level expression language Algol68 was used often, as it even has a bold type face for types and keywords. It would indeed be nice if you could use richt text.

Pascal like pseudo code, maybe borrowed from Modula with IF THEN ELSE END.

Personally I do not like camel case and would prefer all lower case.

2 of 2
0

If I understand you well, you do not want the pseudo-code to look much like a program code so that someone using different progarmming language can use it and solve the same task. I have some tips that could help you achieve that. The main idea is that you should avoid using syntactic elements of the programming language. Think in terms of the problem beign solved, not the programming language. Write your pseudo-code in simple language that any one can read and understand. It should be simple that someone with out coding skills can follow it and solve thesame task. Here is an example of simple pseudo-code of a function that finds the second maximum element in an array.

The function takes two inputs:
  arr - array of integers
  length - lenght of the array
It returns:
  secMax - Second maximum element

Then the steps (should be in a simple language)

Define and set the maximum and second maximum as the minimum possible value

Repeat for each element of the array
{
  If the current element is greater than the current maximu
  {
    then make current maximum as second maximum
    Make the maximum as current array element
    (Now you have new maximum and second maximum)
  }
  else if the current array element is less than maximum but is greater than second 
  maximum
  { 
  then make it second maximum
  }
 
}
return second maximum

As you can see I just explained the steps without using syntactic elements of any programming language. So now anyone can implement my steps using his/her comfortable language to solve the same task.

Let's say I want to implement this using C, my code will be something like this:

//Defining the function according to the information above
//It takes to inputs and returns an integer

int findSecondMaximum(int arr[], int length)
{
  //Define and Set the maximum and second maximum as the minimum possible value
    int max, secondMax;
    max = secondMax = INT_MIN;

  for (int i = 0; i < length; i++) //Repeat for each element of the array
  {
     //If the current element is greater than the current maximum
     if (vect[i] > max)
     {
       //then make the current maximum as second maximum
        secondMax = max;
           
      //Make the maximum as the current array element
          max = vect[i];
     }

     /*else if the current array element is less than maximum but is greater than 
     second maximum*/
     else if (vect[i] > secondMax && vect[i] < max)
     { 
       //make it second maximum
        secondMax = vect[i];
     }
 
  }
  //return second maximum
   return secondMax;
  
}

I hope this would help.

🌐
Reddit
reddit.com › r/learnprogramming › is it malpractice to use chat-gpt to convert actual code into pseudocode?
r/learnprogramming on Reddit: Is it malpractice to use Chat-Gpt to convert actual code into pseudocode?
October 30, 2023 -

So if i write out the complete code for a relatively minor program and then copy and paste that into chat-gpt asking it to convert it into readable pseudocode for an assessment, how likely is that to be considered mal-practice?

This is assuming my variables and logic remain consistant in the chat-gpt output. The reason I am asking is because, fair enough getting chat-gpt to write code is not your own work but using chat-gpt to convert my already written work into something else is no different to say using a pdf-converter no?

I understand that if the code works, its already pseudocode - but I would like to make it more readable also. Chances are I wont use it anyway just to be safe, but I was wondering what the ethics would be like.

🌐
Future Tools
futuretools.io › tools › ai-code-converter
Future Tools - AI Code Converter
A tool to generate code and convert code from one programming language to another.
🌐
YesChat
yeschat.ai › home › gpts › pseudocode translator-free pseudocode translation
Pseudocode Translator-Free Pseudocode Translation
Streamline your coding tasks with Pseudocode Translator, an AI-powered tool that turns detailed task descriptions into clear, structured pseudocode, enhancing clarity and efficiency in software development.
🌐
GitHub
gist.github.com › BlueNexus › 599962d03a1b52a8d5f595dabd51dc34
Python to Pseudocode converter · GitHub
Python to Pseudocode converter. GitHub Gist: instantly share code, notes, and snippets.
🌐
Enterprisedna
mentor.enterprisedna.co › pseudo-code-generator
Pseudo Code Generator - Simplify Complex Logic and
Our Pseudo Code Generator simplifies complex logic and requirements by transforming them into easy-to-understand high-level pseudocode.
🌐
PseudoEditor
pseudoeditor.com
Pseudocode Online Editor & Compiler - PseudoEditor
After years of writing in notepad and other basic text editors, we decided to try and find a dedicated pseudocode editor, we never found one. That is when we decided to make one ourselves! So here you are, the internet's first browser-based pseudocode editor/IDE that can be used completely free of charge! This is a pseudocode editor, a pseudocode generator, and code converter.
🌐
FlowGPT
flowgpt.com › p › pseudocode-conversion
Pseudocode Conversion| FlowGPT
Pseudocode to Actual Code Conversion | upvote: 5 times | saved: 39 times | created by mr_Spectrum
🌐
Deepjain
pseudocode.deepjain.com
Online Pseudocode Editor & Compiler
Pseudocode is a simple, human-readable representation of a program's design and structure, allowing developers to prototype an algorithm or communicate ideas without having to write actual code in a programming language. This platform provides a user-friendly interface for writing and executing pseudocode, making it accessible and easy to use for students, teachers, and developers of all skill levels. The built-in compiler converts the pseudocode into machine-readable code, allowing users to verify that their algorithms are functioning as intended.
🌐
Lex
theresanaiforthat.com › @0vvner › python-to-pseudocode
Python to pseudocode - Free AI Tool | TAAFT
January 22, 2026 - Python to Pseudocode: Transform Python code into clear, structured pseudocode. This AI tool simplifies complex algorithms, making them easily understandable for programmers and students alike. Enhance your coding skills and communication with this efficient converter.
🌐
IEEE Xplore
ieeexplore.ieee.org › document › 10953232
Converting Pseudo Code to Code | part of How Machine Learning is Innovating Today's World: A Concise Technical Guide | Wiley AI books | IEEE Xplore
Summary As of this writing, the process of turning an algorithm into code still falls short of expectations. Algorithms can be written as code, which will help novices and programmers with visual impairments by letting them concentrate entirely on coming up with the best logic to solve a problem ...