What is the problem with using natural language to represent algorithms?
What will be an ideal response?
Natural language can be extremely verbose, causing the resulting algorithms to be rambling, unstructured, and hard to follow. An unstructured, "free-flowing" writing style might be wonderful for novels and essays, but it is horrible for algorithms. The lack of structure makes it difficult for the reader to locate specific sections of the algorithm because they are buried inside the text. For example, without any clues to guide us, such as indentation, line numbering, or highlighting, locating the beginning of a loop can be a daunting and time-consuming task. A second problem is that natural language is too "rich" in interpretation and meaning. Natural language frequently relies on either context or a reader's experiences to give precise meaning to a word or phrase. This permits different readers to interpret the same sentence in totally different ways. This may be acceptable, even desirable, when writing poetry or fiction, but it is disastrous when creating algorithms that must always execute in the same way and produce identical results.
You might also like to view...
The IRR and ________ functions are used for capital budgeting purposes
Fill in the blank(s) with correct word
Which of the following cannot be used to form a word?
a) String b) StringBuilder c) Regex d) An array of Chars e) None of the above