作业_4

作业_4 -...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 200628017029197 1. o 2.3 0 D1R C P1 a STOP{a, b} P2 X:{a, b}. a X P3 ( a STOP{a, b})|(b STOP{a, b}) P4 ( a STOP{a})||(b STOP{b}) P1={a,b}; trace(P1) = {<>,<a>} P2={a,b}; trace(P2) = {<>,<a>,<a,a>,<a,b>} P3={a,b}; trace(P3) = {<>,<a>,<b>} P4={a,b}; trace(P4) = {<>} 2. 0 P=(y z P| z P)0 Q=(y (z Q|d Q)),0 P||Q P||Q = (y z P| z P)||(y (z Q|d Q)) = (y z P)||(y (z Q|d Q)) = (y (z P))||(y (z Q|d Q)) = y ((z P)||(z Q|d Q)) = y (z (P||Q) = y z (P||Q) = X (y z X) 3. |N f | N ; f C ; f C m o 1 o 4 N f= N ACC = {open, deposit, withdraw, terminate} (1)R ACC ACC = X :{deposit, withdraw}(open (deposit X | withdraw X) terminate STOP) f ( f f= N z ; o= N (2)f ( f f= N C ; o= N {query, terminate}. y QUERY QUERY = {query, terminate} QUERY = X :{query}(query X terminate STOP) (3) o FORBID = X :{ terminate}(STOP) (4)6 RO f f (f f=N y ACC={open, deposit . n, withdraw . n, terminate} ACC =X :{deposit . n, withdraw .n} (open (deposit. n X | withdraw. n X) terminate STOP) (5)R C bounce. o bounce y ACC={open, deposit, withdraw, terminate, bounce!n} ACC=X :{deposit , withdraw } 1 200628017029197 (open (deposit X | withdraw X) bounce!n terminate STOP) n: f 1 4. o 4 N f= empty o5 C f= N 6RO f CSP ) 5 STACK ) STACK 0 left ) right5 STACK = {empty, left, right} STACK = P< >; P< > = (empty P< > | left ?x P<x > ); P<x >^s = (right !x Ps | left !y P< y >^< x >^s ); 5. -0 (Producer-Consumer) f= N 6 RO f - | f | N;f C ; f C 1 `eb+ C1 o P1 0 P2 l o P2 0 P1 0 f ( f f= N ; b pm F C1 0 C2 5 * C2 0...
View Full Document

Page1 / 6

作业_4 -...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online