Does anyone know what is meant by 'High-level pseudo-code'?
Does anyone know what is meant by 'High-level pseudo-code'?
pseudo, as in false or fake
high level, as in don't descend into the details.
It means that want you to (somewhat freely) express the plan or outline of an algorithm without regard to a specific language. I don't recall there being in particularly strict rules in the depiction of pseudo code, though certainly someone could theoretically contrive some.
For example:
Might qualify as pseudo code. It's decidedly C looking with respect to ; and {.Code:For Each: { Do Step A; Do Step B; }
I've seen pseudo code that looks more like BASIC:
No one would expect pseudo code to drop into any compiler or language and make sense for actual use, but it should be descriptive of a plan such that code could be developed from it with simple translation.Code:For Each: if Step A then Step B else Step C Next
In "high level" you wouldn't see the specifics of managing memory (no mallocs or callocs), probably not even "new" or "delete".
I don't use it much, and haven't since my college days a long, long time ago, so the notion may be different today.
Okay. it because we are told to write a high level pseudo-code for the program we wrote. Iwas just not sure what they meant by 'high-level'.
Thanks for your help
To be honest, I am more curious about what is "low level pseudo code"
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Any program is a pseudocode for itself.we are told to write a high level pseudo-code for the program we wrote.
"High-level" probably means adding a meaningful comment to each non-trivial line of code and then remove the corresponding code.
Greets,
Philip
All things begin as source code.
Source code begins with an empty file.
-- Tao Te Chip
i thought it depends on the programming lang u use like if you use asm its low level and vb high level ?
...and I though pseudo code was supposed to be independent of language, more expressive of a plan for deployment in any language.
Then, too, I've not used it much or seen it enough to know that for certain.