You are on page 1of 5

ALGORITHMS

1. NARRATIVE

This is to use natural language and natural


language rules to construct sentences and
paragraphs which describe the actions to take.

The narrative should ideally include bulleted


or numbered lists
NARRATIVE EXAMPLE
How to tie a tie
1) Begin with the wide end "W" extended about 12 inches below
the narrow end "N". Cross the wide end "W" over the narrow
end "N".
2) Bring the wide end "W" up through the loop between the
collar and your tie; then back down.
3) Pull the wide end "W" underneath the narrow end "N" and to
the right, back through the loop and to the right again so that
the wide end "W" is inside out.
4) Bring the wide end "W" across the front from right to left.
5) Pull the wide end "W" up through the loop again.
6) Bring the wide end "W" down through the knot in front.
7) Using both hands, tighten the knot carefully and draw it up to
the collar. You are now finished
NARRATIVE EXAMPLE
How to calculate your tax liability

For starters, from 6 April 2010, tax is payable at the basic rate of
20% on taxable income up to $720,000. If you have more than
$720,000 of taxable income, you will have to pay a higher rate of
tax on the amount above this level. To calculate the tax payable,
you should:
 work out the taxable income, after taking any allowances or tax
reliefs into account
 calculate tax on your taxable income up to the limit of $720,000 at
20%, then
 if you have taxable income over $720,000, calculate tax on the
taxable income over $372,000 at 40%, then
 add the last two figures together. This is the amount of tax that is
payable for 2015 -16.
NARRATIVE

The advantages of a narrative are that

 it can be applied outside of computing,


 It is in a natural language and
 It requires no special training to construct..
NARRATIVES

The disadvantages of a narrative are that

 it can be too verbose (too wordy)


 It can be context-sensitive (interpretation
varies depending on the reader’s
background and experience)

You might also like