CMPT 120 Lecture Notes - Lecture 4: Pseudocode
meghan78 and 39786 others unlocked
29
CMPT 120 Full Course Notes
Verified Note
29 documents
Document Summary
You can think of pseudocodes same as algorithms : a sequence of steps to solve a problem, except: Steps in algorithm may be less detailed , a pseudocode describes those steps. Steps in an algorithm look more like english ( natural ) language instructions, whereas, steps in a pseudocode may look more like a code . A step in algorithm may be written like this: convert feet into inches . An equivalent pseudocode may be written as: set inches to feet * 12. What"s common: we can transform the instruction written as algorithms, flowcharts or pseudocode into a programming language code. It would generally be more helpful to be short and specific , i. e. , describe our algorithms in a way that"s easy to transform into code. So, pseudocode a way to describe the steps in an algorithm using some short and simple english (natural) language terms. ( pseudo is almost . )