Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University...

29
Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada

description

Outline 1.Problem Statement 2.Criticism of Existing Solutions 3.Suggested Solution 3.1 Rough Sets 3.2 Strength of a Rule 3.3 Rough Mereology 3.4 RM System Specification 4.Conclusions

Transcript of Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University...

Page 1: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Specification From Examples

Julia JohnsonDept. of Math & Computer Science

Laurentian UniversitySudbury, Ontario

Canada

Page 2: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Problem

To describe system characteristics by providing examples of systems that exhibit those characteristics.

Page 3: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Outline1. Problem Statement2. Criticism of Existing Solutions3. Suggested Solution 3.1 Rough Sets 3.2 Strength of a Rule 3.3 Rough Mereology 3.4 RM System Specification4. Conclusions

Page 4: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

ag

ag2 agmag1 …

ag11 ag12…

ag1n…

ag21 ag20agm1 agmp

Page 5: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

M

BL

Page 6: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

B1

L2

B3

L3

µB (B3,B1) =

B ≥ .25

µL (L3,L2) =

L ≥ .4

Page 7: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

C1 C5µM (C5,C1) =

M ≥ .14

Page 8: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Rough Mereology

Mereology ≡ Theory of “Part of” relation, Lesniewski

Rough Mereology – Theory of Relation “Part of to a degree”, Polkowski & Skowron

Applications of Rough Mereology Control – Skowron & Polkowski 1994 Warsaw Politecnica Building – Poitr 1998-99 Polish Academy of Science Scheduling – Johnson 1998-99 University of Regina/University of

Waterloo

µ (x,y) is read “the degree in which x is a part of y”

-the rough inclusion function

Page 9: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

For each construction of objects from sub-objects, we form a vector,

B L M

Where if M1 = O(B1L1) and M2 = O(B2L2)

Then B = µB(B1,B2) L = µL(L1,L2)

M = µM(M1,M2)

M2 is constructed from B2 and L2

Page 10: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

The vector means

If µB(B1,B2) > B (B1 is part of B2 to degree at least B)

And µL(L1,L2) > L (L1 is part of L2 to degree at least L)

Then µM(M1,M2) > M (M1 is part of M2 to degree at least M)

Page 11: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

B1

L2

B3

L2

µB (B3,B1) =

B ≥ .25

µL (L2,L2) =

L ≥ 1

Rough Mereology

Page 12: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

C1 C4µM (C4,C1) =

M ≥ .28

Page 13: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

(A) µ(x,y) Є [0,1]

(B) µ(x,x) = 1

(C) If µ(x,y) = 1 then µ(z,y) > µ(z,x) for each object z

A null object is any object n which satisfies

(D) µ(n,y) = 1 for every object y

Some Properties of µ

Page 14: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

We wish to learn functions f from a set of vectors.

B

L

Mf

B1

B2

B3 . . .

Bn

L1

L2

L3 . . .

Ln

M1

M2

M3

.

.

. Mn

Page 15: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Back to the Problem at Hand

To describe system characteristics by providing examples of systems that exhibit those characteristics.

To determine system cost by providing examples of systems whose design, maintenance and overall costs are known.

Page 16: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Suppose we know the following:

•Maintenance requirements Maintk and Maintq similar to degree at least Maint , possibly k=q

•Cost1 and Cost2 , respectively, of the two systems O(Design1, Maint1) and O(Design2, Maint2) similar by at least Cost.

•Specs Designi and Designj similar to degree at least Design , i,j not necessarily distinct

Page 17: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

We wish to learn function f from a set of vectors.

Maint

Design

Costf

Design1

Design2

Design3

. . .

Designn

Maint1

Maint2

Maint3

. . .

Maintn

Cost1

Cost2

Cost3

.

. . Costn

Page 18: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Table 1: Criteria Inferred from Application Data

Design Goal SYS1 SYS2 SYS3ResponseTimeThroughputMemoryRobustnessReliabilityAvailability

FaultToleranceSecuritySafetyUtilityUsability

slowlow

smallpoorlittlelowpoorpoorpoorpooreasy

fasthigh

mediumaveragemarginalmoderateaverageaverageaverageaverage

moderate

fasthighlargegoodgreathighgoodgoodgoodgood

difficultAcceptable? no yes no

Page 19: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

(ResponseTime, slow) and (Throughput, low) (Acceptable, no),

(ResponseTime, fast) and (Memory, medium) (Acceptable, yes),

(Throughput, high) and (Memory, large) (Acceptable, no).

Uncertain (or possible) rules are:(ResponseTime, fast) and (Throughput, high)

(Acceptable, yes),(ResponseTime, fast) and (Throughput, high)

(Acceptable, no).

Page 20: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Table 3: Rough Inclusion for Table 1

System SYS1 SYS2 SYS3SYS1 1 0 0SYS2 0 1 .18SYS3 0 .18 1

Page 21: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Table 2: Criteria Dictated by the Customer

Cost SYS1 SYS2 SYS3DevelopmentDeploymentUpgrade

MaintenanceAdministration

lowlowhighhighlittle

moderatehighlowhighgreat

highhighlowlowgreat

Acceptable? yes yes no

Page 22: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Table 4: Rough Inclusion for Table 2

System SYS1 SYS2 SYS3SYS1 1 .2 0SYS2 .2 1 .6SYS3 0 .6 1

Page 23: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Table 5: Maintenance Criteria

Maintenance SYS1 SYS2 SYS3ExtensibilityModifiabilityAdaptabilityPortabilityReadabilityTraceability

easyeasyeasyeasyeasyeasy

difficultmoderate

easyeasy

difficultmoderate

difficultdifficultdifficultdifficultdifficultdifficult

Acceptable? yes yes no

Page 24: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Table 6: Rough Inclusion for Table 5

System SYS1 SYS2 SYS3SYS1 1 .33 0SYS2 .33 1 .33SYS3 0 .33 1

Page 25: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

D1 D2 M1 M2 C1 C2

S1S1S1S2S2S3S1S1S1S2S2S3S1S1S1S2S2S3S1S1S1S2S2S3S1S1S1S2S2S3S1S1S1S2S2S3

S1S2S3S2S3S3S1S2S3S2S3S3S1S2S3S2S3S3S1S2S3S2S3S3S1S2S3S2S3S3S1S2S3S2S3S3

S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S2S2S2S2S2S2S2S2S2S2S2S2S3S3S3S3S3S3

S1S1S1S1S1S1S2S2S2S2S2S2S3S3S3S3S3S3S2S2S2S2S2S2S3S3S3S3S3S3S3S3S3S3S3S3

S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1

S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1S1

Table 7: Partial List of Arguments for µ

Page 26: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

D M C D M C

1001

.6711001

.67111001

.67

11111.2.2.2.2.2.2.4.4.4.4.4.4.4

111111111111111111

1001

.6711001

.6711001

.671

111111.6.6.6.6.61111111

111111111111111111

Table 8: Partial List of Arguments for

Page 27: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

RM – ‘acceptable degree’

What? How?

? µ (X, Y) threshold vectors composition of objects agents message passing

Page 28: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

What? How?

µ (X, Y) threshold vectors composition of objects agents message passing

Simplicity user – satisfaction learnability ease of use comprehensibility user - friendliness

Page 29: Specification From Examples Julia Johnson Dept. of Math & Computer Science Laurentian University Sudbury, Ontario Canada.

Summary & Conclusions1. Our objective is to describe system characteristics such as user

friendliness by providing examples of systems that exhibit such characteristics.

2. The computer recognizes a pattern and generates rules for what a user friendly system, for example, would be.

3. This is possible because computers are able to provide imprecise solutions to problems.

4. We have demonstrated the feasibility of applying rough sets/rough mereology to the problem of systems requirements systems.