Exchange algorithm ISI vessel
Given two vessels A and B, a vessel containing
solvent red, vessel B contains a solution
blue. Pertukarkan content of the second vessel
A vessel so that the solution contains color
blue and vessel B contains a red solution.
DESCRIPTION:
1. Pour solution from a vessel into the vessel C.
2. Pour the solution from the vessel in vessel B to A.
3. Pour the solution from the vessel in the vessel C to B.
The important algorithms
• Algorithm must stop after
a limited number of steps.
• Each step must be defined
with appropriate and does not mean two -
(Ambiguous).
• Algorithm has zero or more
entered.
• Algorithm has zero or more
output.
• algorithms must be effective (each step
must be simple so that it can
done in the entrance
pate).
Senin, 30 Maret 2009
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar