亚洲欧美精品沙发,日韩在线精品视频,亚洲Av每日更新在线观看,亚洲国产另类一区在线5

<pre id="hdphd"></pre>

  • <div id="hdphd"><small id="hdphd"></small></div>
      學習啦>論文大全>職稱論文>

      計算機類職稱論文:應用Pi演算

      時間: 謝樺657 分享

        Pi演算起源于上世紀80年代,由圖靈獎得住Robin Milner提出。它是一種描述和分析并發(fā)系統(tǒng)的演算模型,是用演算中的歸約表示由進程間的相互通信形成的動態(tài)演化。以下是學習啦小編今天為大家精心準備的計算機類相關(guān)職稱論文:應用Pi的演算。內(nèi)容僅供閱讀與參考!

        應用Pi演算全文如下:

        由于Internet與移動通信的快速發(fā)展和安全通信的需求,出現(xiàn)了適應種種形式分析目的的一大類應用&pi;-演算(Application &pi;-Calculus)[ ];本文從&pi;-演算出發(fā),對其進行嚴格的討論與介紹。

        1、基本&pi;-演算與異步&pi;-演算的語法(Synta_)

        1.1 名字與進程

        設&Chi; = {_, y, z, . .} 是名字(names)集(可將名字看作是通信中的通道channels of communication),??_,

        歸納定義(基本)?演算的進程(processes)如下(其中//&hellip;為幫助理解的直觀說明):

        P:: = 0 //空進程

        | P|Q //并發(fā)(并行)進程

        | !P //復制進程(無窮多次)

        | _.P //在通道_上發(fā)送y(輸出)后執(zhí)行進程P

        | _(y).P //將從通道_上接收的名字賦給y后執(zhí)行進程P

        | &nu;_.P //將名字_限制到進程P中使用,P的私有名字

        為減少括號使用,約定:

        對于&ldquo;|&rdquo;,用左結(jié)合,例如&ldquo;P|Q|R&rdquo;表示&ldquo;(P|Q)|R&rdquo;;

        對于_(y).P、_.P與?_.P,稱_(y)、_或?_為P的前綴,P稱為前綴的體(body),為減少括號使用,約定前綴的體向右最大擴展,例如:

        vz._._._._.P表示vz..(_.(_.(_.(_.P))))

        1.2 自由與約束的名字

        設P、Q為進程,歸納定義名字集合fn(P)如下:

        fn(0) = ?; //空進程無自由名字

        fn(P|Q) = fn(P) ? fn(Q);

        fn(!P) = fn(P);

        fn(_.P) = {_,y}?fn(P); //對于輸出,_,y是自由名字

        fn(_(y).P) = {_} ? (fn(P)-{y}); //對于輸入,_是自由名字,y不是自由名字

        fn(v_.P) = fn(P)-{_} //對于限制,_不是自由名字

        稱fn(P)為進程P的自由名字集,若_?fn(P),稱名字_在進程P中是自由的;如果進程P中的名字_不是自由名字,則稱為約束名字,用bn(P)表示P的約束名字集,記nP=fn(P) ? bn(P)并稱為P的名字集;對a(_).P或(?_).P,將在P中自由出現(xiàn)的_稱為被a(_)或(?_)約束的名字;注意,有P,使fn(P)?bn(P) ? ?,即某個名字_可能同時在P中自由出現(xiàn)與約束出現(xiàn).

        例:在進程

        a?_?.P | a(y).Q | (?_)a?_?.R

        里,_既自由出現(xiàn),也約束出現(xiàn)。

        例:進程

        a?_?.(_?b?.P | _?c?.R)

        中的(_?b?.P | _?c?.R)里兩處_均被a(_)約束,是a(_)的約束名字,而

        a?_?.(_?b?.P | (?_)a?_?.R)

        中的(?_)a?_?.R里的_不被a(_)約束,不是a(_)的約束名字。

        定義:

        1 稱名字w對進程P是新鮮(fresh)的,若w ? nP;

        2 自由名字的代入:對任何進程P,進程P[z/_]是將P里每個自由出現(xiàn)的_改為z而得的進程,稱為在進程P里對自由名字進行代入。

        3 約束名字的改名:(1)對進程 a(_).P的約束名字_可用z改名并將改名結(jié)果記為a(z).P[z/_],如果z?fn(P);(2)對進程 (?_).P的約束名字_可用z改名并將改名結(jié)果記為(?z).P[z/_],如果z?fn(P);

        注意:

        1 對a(_).P或(?z).P改名的結(jié)果并不導致a(_).P或(?z).P里的任何名字的自由出現(xiàn)變?yōu)榧s束出現(xiàn);

        2 為防止改名失敗,可簡單地使用新鮮名字來改名,

        例:設a(_).P=a(_).(_|_(c)>),則:可用y改名_,結(jié)果為:a(y).(y|y(c)>);但不可用b改名_為a(b).(b|b(c)>)

        例:代入 (y(_).0 | a(y).y| (?z)y.0)[z/y] 的結(jié)果是z(_).0 | a(y).y|(?z)y.0或者z(_).0 | a(y).y|(

        1550;w)y.0;但不可為:(z(_).0 | a(y).z|(?z)y.0)

       ?。篴(y).(y|y(c)>);但不可用b改名_為a(b).(b|b(c)>)

        1.2 ?-同余(?-congruence)

        稱P與Q是?-同余的并記為P??Q,若Q可由P的約束名字改名而得;顯然,??是自反、對稱與傳遞的關(guān)系-等價關(guān)系,

        例如,下面定義的進程C1與C2是?-同余的:_

        C1 = a(_).P | a(y).Q | (?z)a?z?.R

        C2 = a(_).P | a(y).Q | (?w)a?w?.R

        1.3 結(jié)構(gòu)同余(structural congruence)

        定義:對進程P,Q,R,定義結(jié)構(gòu)等價關(guān)系&ldquo;?&rdquo;為滿足下列性質(zhì)的最小等價類:

        SC1: 若P??Q,則P?Q,

        SC2: P|0 ? P //自反

        SC3: P|Q ? Q|P, //交換

        SC4: P|(Q|R) ? (P|Q)|R //結(jié)合

        SC5: (?_)0 ? 0,(?_)(?y)P &equiv; (?y)(?_)P.

        SC6: (?_)(P|Q) &equiv; P|(?_)Q, 如果 _ ?fn(P)

        例:如果y?fn(P),則 (?y)P &equiv; P

        證明:

        P &equiv; P|0 SC2

        ? P &equiv; 0|P SC3

        ? P &equiv; (?_)0|P SC5

        ? P &equiv; (?_)(0|P) SC6

        ? P &equiv; (?_)P SC2

        這個證明也如下描述:

        P &equiv; P|0 SC2

        &equiv; 0|P SC3

        &equiv; (?_)0|P SC5

        &equiv; (?_)(0|P) SC6

        &equiv; (?_)P SC2

        1.4 歸約Reduction rules

        定義The main reduction rule which captures the ability of processes to communicate through channels is the following:

        _.P | _(z).Q &rarr; P | Q[y/z]

        where Q[y/z] is the process Q www.51lunwen.com/jsjzy/ where the name y has been substituted to the namez. There are 3 more rules, one of which is

        If P &rarr; Q then also P|E &rarr; Q|E.

        It says that parallel composition does not inhibit computation. Similarly, the rule

        If P &rarr; Q then also (&nu; _)P &rarr; (&nu; _)Q

        ensures that computation can proceed underneath a restriction.

        Finally we have the structural rule

        If P &equiv; P' &rarr; Q' &equiv; Q, then also P &rarr; Q .

        &bull;

        示例

        內(nèi)存單元:如下定義的進程MEM(_)描述了計算機的一個內(nèi)存單元:

        MEM(_) = out.MEM(_) + in(y).MEM(y)

        The memory cell MEM can either output its contents, _ and then continue as MEM(_) (i.e. as itself), or input ano

        ther value, y, and then continue as MEM(y), as itself but with another content

        服務器:

        服務器S傳出通道a,客戶接受通道a,并用這個通道傳送d

        通道是公開的情況:

        b.S | b(c).c. P &rarr; S|a.P

        通道是私有的情況:

        (?a)(b.S | R) | b(c).c. P &rarr; (?a)(b.S | R | b(c).c. P )

        &rarr; (?a)( S | R | a.P)

        多重匹配:

        _<8,3>|_(z1,z2).y&rarr; y[(8,3)/(z1,z2)] = y

        同名通道上的多個輸出:

        _|_|_u.y &rarr; _|y 或 _|_|_u.y &rarr; _|y

        同名通道上的多個輸入:

        _| _u.y| _u.z &rarr; y| _u.z 或 _| _u.y| _u.z&rarr; _u.y|z

        私有名字可改名:

        _|(?z)(z|zu.y) &rarr; _|(?_)(_|_u.y)

        &rarr; _|(?_)y&rarr; _|(?n)y

        _|(?_)(_|_u.y) &rarr; _|(?z)(z|zu.y)

        &rarr; _|(?n)y&rarr; _|(?_)y

        通道傳送:

        _|_u.u&rarr; y

        (?y)(_|yv.P)|_u.u&rarr; (?y)(yv.P)|y&rarr; (?y)P[7/v]

        (?y)(_|yv.P)|_u.u? (?y)(_|yv.P|_u.u) &rarr; (?y)(yv.P|y) &rarr; (?y)P[7/v]

        a(_).P | a(y).Q | (?z)a?z?.R &rarr; (?w) (P[w/_] | R[w/z]) | a(y).Q (w是新鮮fresh的)

        a(_).P | a(y).Q | (?z)a?z?.R &rarr; (?w) (Q[w/_] | R[w/z]) | a(_).P (w是新鮮fresh的)

        2、應用?演算

        可以引入一類新的特殊的名字?,表示進程內(nèi)的不與其它進程交互的事件,并在進程定義中增加:?.P

        A sum (P + Q) can be added to the synta_. It behaves like a nondeterministic choice betweenP and Q.

        A test for name equality (if _=y then P else Q) can be added to the synta_. Similarly, one may addname inequality.

        The asynchronous &pi;-calculus allows only _.0, not _.P.

        The polyadic &pi;-calculus allows communicating more than one name in a single action:_.P and _(y1,y2,...).P. It can be simulated in the monadic calculus by passing the name of aprivate channel though which the multiple arguments are then passed in sequence.

        Replication !P is not usually needed for arbitrary processes P. One can replace !P withreplicated or lazy input !_(y).P without loss of e_pressive power. The correspondingreduction rule is

        _.P | !_(z).Q &rarr; P | !_(z).Q | Q[y/z].

        Processes like !_(y).P can be understood as servers, waiting on channel _ to be invoked by clients.Invokation of a server spawns a new copy of the process P[a/y], where a is the name passed by the client to the server,during the latter's invokation.

        A higher order &pi;-calculus can be defined where not names but processes are sent through channels. Thekey reduction rule for the higher order case is

        _.P | _(v).Q &rarr; P | Q[R/v].

        In this case, the process _.P sends the process R to _(v).Q. Sangiorgi established the surprisingresult that the ability to pass processes does not increase the e_pressivity of the &pi;-calculus: passing a process Pcan be simulated by just passing a name that points to P instead.

        Properties

        Turing completeness

        Bisimulations

        See also

        &bull; Calculus of CommunicatingSystems

        &bull; Communicating seque

        ntialprocesses

        &bull; Calculus of BroadcastingSystems

        &bull; Ambient calculus

        &bull; Join calculus

        References

        &bull; Robin Milner : Communicating and Mobile Systems: thePi-Calculus, Springer Verlag, ISBN0521658691

        &bull; Davide Sangiorgi and David Walker: The Pi-calculus: A Theory of Mobile Processes, Cambridge University Press, ISBN 0521781779

        E_ternal links

        &bull; Citations from CiteSeer

        &bull; PiCalculus on the C2 wiki

        ip calculus, name, pi calcuus, free, pi caculus, rule, pic alculus, one, picalculus, channel, i calculus, binds, pi clculus, turing, pi claculus, passing, pi calculsu, model, p calculus, added, pi alculus, sangiorgi, p icalculus, active, pi aclculus, input, pi calculu, concurrently, pi caclulus, defined, pi calculs, structural, pi caluclus, channels, , passed, pi calcluus, simulated, pi calulus, invokation, pi calclus, case, pi calcuuls, walker

        1._ 解釋:

        &bull; _(y).P, which binds the name y in P, means "input some name &ndash; call it y &ndash; onthe channel named _";

        &bull; _.P, which binds the name y in P, means "output the name y on the channel named_";

        &bull; P|Q, means that the processes P and Q are concurrently active (this is the constructionwhich really gives the power to model concurrency to the &pi;-calculus);

        &bull; &nu;_.P, which binds the name _ in P, means that the usage of _ is "restricted" to theprocess P;

        &bull; !P means that there are infinitely many processes P concurrently active (this construction might not bepresent in the definition of the &pi;-calculus but it is needed for the &pi;-calculus to be turing complete ), formally !P &rarr; P |!P;

        &bull; 0 is the null process which cannot do anything. Its purpose is to serve as basis upon which one builds otherprocesses.

        &bull;通信通道-(參考:01 lecture21-pi.ppt)

        Speaker = air

        Phone = air(_).wire //電纜

        ATT = wire(_).fiber //光纖

        System = Speaker | Phone | ATT

        進程間的通信導致歸約(reduction):

        Speaker | Phone ? wire

        wire| ATT ? fiberComposing these reductions we get:

        Speaker | Phone | ATT ? fiber

        無限制通道是可視的,Anybody can monitor an unrestricted channel:Consider that we define

        WireTap = wire(_).wire.NSA

        &ndash;Copies the messages from the wire to NSA

        &ndash;Possible since the name &ldquo;wire&rdquo; is globally visible

        不難看出:

        WireTap | wire| ATT ? wire.NSA| ATT

        ? NSA| fiber

        OOPS !

        &bull;The restriction operator &ldquo;(?c) p&rdquo; makes a f

        resh channel c within process p.

        &ndash; ? is the Greek letter &ldquo;nu&rdquo;&ndash;The name &ldquo;c&rdquo; is local (bound) in p

        &bull;Restricted channels cannot be monitored.

        wire(_) &hellip; | (? wire)(wire| ATT) ! wire(_) &hellip; | fiber

        &bull;The scope of the name &ldquo;wire&rdquo; is restricted

        &bull;There is no conflict with the global &ldquo;wire&rdquo;&bull;Restriction

        &ndash;is a binding construct (like ?, 8, 9, ...)

        &ndash;is le_ically scoped

        &ndash;allocates a new object (a channel)

        (?c)p is like &ldquo;let c = new Channel() in p&rdquo;&bull;&bull;In particular, c can be sent outside its scope.

        &ndash;But only if &ldquo;p&rdquo; decides so

        &ndash;Communicating Sequential Processes (CSP) (Hoare, 1978)

        &ndash;Calculus of Communicating Systems (CCS) (Milner, 1980)

        &ndash;The Pi calculus (Milner, 1989 and others)

        [15] R. Milner, A calculus of communicating systems, Lecture Notes in Computer Science, vol. 92, Springer, Berlin, 1980.

        [16] Milner, R., www.51lunwen.com/jsjzy/ Communication and Concurrency, Prentice Hall, 1989

        [AG97] Martin Abadi and Andrew D. Gordon. A calculus for cryptographic protocols: The spi calculus. In Proceedings of the Fourth ACM Conference on Computer and Communications Security, Zurich, pages 36{47. ACM Press, April 1997。

      計算機類職稱論文:應用Pi演算

      Pi演算起源于上世紀80年代,由圖靈獎得住Robin Milner提出。它是一種描述和分析并發(fā)系統(tǒng)的演算模型,是用演算中的歸約表示由進程間的
      推薦度:
      點擊下載文檔文檔為doc格式

      精選文章

      • 數(shù)據(jù)管理技術(shù)發(fā)展研究計算機類職稱論文
        數(shù)據(jù)管理技術(shù)發(fā)展研究計算機類職稱論文

        數(shù)據(jù)管理技術(shù)具體就是指人們對數(shù)據(jù)進行收集、組織、存儲、加工、傳播和利用的一系列活動的總和,經(jīng)歷了人工管理、文件管理、數(shù)據(jù)庫管理三個階段。

      • 土木工程職稱論文:采空區(qū)現(xiàn)狀與處理方案描述
        土木工程職稱論文:采空區(qū)現(xiàn)狀與處理方案描述

        土木工程是建造各類工程設施的科學技術(shù)的統(tǒng)稱。它既指所應用的材料、設備和所進行的勘測、設計、施工、保養(yǎng)、維修等技術(shù)活動,也指工程建設的對象

      • 機械工程師高級職稱論文怎么寫
        機械工程師高級職稱論文怎么寫

        機械工程師是指在機械工程行業(yè)從事工作,并且具備一定經(jīng)驗和水平的人下面是學習啦小編帶來的關(guān)于機械工程師職稱論文的內(nèi)容,歡迎閱讀參考! 機械工

      • 高中數(shù)學評職稱論文范文
        高中數(shù)學評職稱論文范文

        職稱論文,顧名思義就是指在一定職業(yè)范圍內(nèi),用于評定一定職業(yè)職稱的論文形式。以下是學習啦小編今天為大家精心準備的:高中數(shù)學評職稱論文相關(guān)范

      359004