25.06.2013 Views

1 transparent par page - Montefiore

1 transparent par page - Montefiore

1 transparent par page - Montefiore

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Modélisation <strong>par</strong> une machine d’état<br />

◮ Un état est défini <strong>par</strong> la quantité d’eau dans chacune des cruches<br />

Q = {(a, b)|0 ≤ a ≤ 3, 0 ≤ b ≤ 6, a, b ∈ R}<br />

◮ Initialement, les cruches sont vides<br />

Q0 = {(0, 0)}<br />

◮ L’ensemble des transitions est l’union de<br />

◮ (a, b) → (3, b) (remplissage petite cruche)<br />

◮ (a, b) → (a, 6) (remplissage grande cruche)<br />

◮ (a, b) → (0, b) (vidage petite cruche)<br />

◮ (a, b) → (a, 0) (vidage grande cruche)<br />

◮ (a, b) → (max(0, a − (6 − b)), min(a + b, 6))<br />

(transvasement petite vers grande cruche)<br />

◮ (a, b) → (min(a + b, 3), max(0, b − (3 − a)))<br />

(transvasement grande vers petite cruche)<br />

(cette machine est non déterministe)<br />

88

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!