130 likes | 331 Views
Applications of the Matrix Model of Computation. Sergio Pissanetzky. The MMC consists of two sparse matrices: M = (C, Q) C = Matrix of Services Q = Matrix of Sequences The model has two forms: ● imperative form ● canonical form.
E N D
Applications of theMatrix Model of Computation Sergio Pissanetzky
The MMC consists of two sparse matrices: M = (C, Q) C = Matrix of Services Q = Matrix of Sequences The model has two forms: ● imperative form ● canonical form. Matrix Q is the imperative part of the model.
A Business Problem M A a B b S C Services: Init, AM, BM, CM, AS, BS, CS, MCost, SCost
Matrix of Sequences R Q =
Relations are code Relation R = Program in C
Relations are object-oriented Relation R =
Case b/a ● Consider control variable b. ● Add foreign keys for variable b. ● Project on (P, b, h) and (h, a, F). R3 R = R4
Relations support UML models R1 R2 R2 Caller initializes a. Caller constructs A/B/CModel initialize b. Caller calls Cost, passing a Cost selects MList /SList a decision. MList, SList call their override b decision, calculate the list of equipment, construct a Mail or Spray object, and call their M/SCost method to calculate cost.
Relations support Patterns R3 R3 R4 R4