Discussion:
High-level description
(too old to reply)
Congxi Liu
2011-12-11 21:39:08 UTC
Permalink
When we are asked to give a high-level description of an algorithm,
should we right pseudocode? Or can we even simplify some of the
procedure code by describing it.
say,while i <- 1 to n
do {blah blah blah}
Can we just write "do "blah blah blah" n times instead writing this
pseudocode?

Thanks in advance!
Congxi Liu
cs240
2011-12-11 22:41:19 UTC
Permalink
If the problem explicitly states "high-level", then it's your choice
whether to write the pseudo code or not. You can describe your idea if you are
confident that your description is clear enough for the markers to
understand. One advantage of writing down pseduo code is that you might be
able to get partial credits since code provides more detail and is
more rigorously formatted.

You might also want to consider the marks for that question, say if it's a 8 mark question, then a one-sentence answer
is probably not good enough.


Vivian
When we are asked to give a high-level description of an algorithm, should we
right pseudocode? Or can we even simplify some of the procedure code by
describing it.
say,while i <- 1 to n
do {blah blah blah}
Can we just write "do "blah blah blah" n times instead writing this
pseudocode?
Thanks in advance!
Congxi Liu
Loading...