2 a process like copy except that every number input

Info icon This preview shows pages 6–12. Sign up to view the full content.

(2) A process like COPY , except that every number input is doubled before it is output αleft = αright = N DOUBLE = μX ( left ? x right !( x + x ) X ) 6
Image of page 6

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

& $ % (3) The value of a punched card is a sequence of eighty characters, which may be read as a single value along the left channel. A process which reads cards and outputs their characters one at a time αleft = { s | s αright * # s = 80 } UNPACK = P hi where P hi = left ? s P s P h x i = right ! x P hi P h x i _ s = right ! x P s 7
Image of page 7
& $ % (4) A process which inputs characters one at a time from the left, and assembles them into lines of 125 characters length. Each completed line is output on the right as a single array-valued message αright = { s | s αleft * # s = 125 } PACK = P hi where P s = right ! s P hi , if # s = 125 P s = left ? x P s _ h x i , if # s < 125 (5) A process which copies from left to right, except that each pair of consecutive asterisks is replaced by a single . αleft = αright - { } SQUASH = μX left ? x if x 6 = ” * then ( right ! x X ) else left ? y if y = ” * ” then ( right !” X ) else ( right !” * right ! y X )) 8
Image of page 8

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

& $ % Note: A process may be prepared initially to communicate on any one of a set of channels, leaving the choice between them to the other processes with which it is connected. For example, ( c ? x P ( x ) | d ? y Q ( y )) (6) A process which accepts input on either of the two channels left 1 or left 2, and immediately outputs the message to the right αleft 1 = αleft 2 = αright MERGE = ( left 1? x right ! x MERGE | left 2? x right ! x MERGE ) The output of this process is an interleaving of the messages input from left 1 and left 2. 9
Image of page 9
& $ % (7) A process that is always prepared to input a value on the left, or to output to the right a value which it has most recently input αleft = αright V AR = left ? x V AR x where, V AR x = ( left ? y V AR y | right ! x V AR x ) (8) A process which inputs from up and left , outputs to down a function of what it has input, before repeating NODE ( v ) = μX ( up ? sum left ? prod down !( sum + v × prod ) X ) 10
Image of page 10

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

& $ % (9) A process which is at all times ready to input a message on the left, and to output on its right the first message which it has input but not yet output BUFFER = P hi where, P hi = left ? x P h x i P h x i _ s = ( left ? y P h x i _ s _ h y i | right ! x P s ) (10) A process which behaves like a stack of messages. When empty, it
Image of page 11
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '12
  • ZhuHuibiao
  • αc, αright

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern