학교/소프트웨어공학 2012. 9. 18. 11:42

specification continued:

--------------------------------------------------

 

sw engineer            customer:

dynamic knowledgebase:

knowledge base changes constantly

 

app:<---- yahoo

<---clear or cloudy

 

specification output:

 objects : yahoo: clear seq-or cloudy

 main: clear seq-or cloudy

 

app: yahoo에서 실시간으로 날씨 정보를 받아 그대로 display하라

 

Q: Java: leader:

A Seq-or B : it claims A is true. But at some later point, it can change its mind so that it claims B is ture

 

examples : A seq-or B

 

가로등: on seq-or off

door : open seq-or off

 

----------------------------

 

A seq-and B: it claims A is true but at some later point, the uwer changes its mind and make the machine claim B.

 

examples:

switch: on seq-and off.

tom 객체

tom : (alive seq-or dead)  죽는거 tom결정

(alive seq-and dead) 죽는거 다른사람 결정

(alive seq-or dead) seqand (alive seq-and dead)    앞에서 죽을경우 살수 없기 때문에  이 경우는 잘못됨

 

(divorced seq-or married) seqor (divorced

'학교 > 소프트웨어공학' 카테고리의 다른 글

  (0) 2012.11.06
  (0) 2012.10.30
10/16  (0) 2012.10.16
10/9  (0) 2012.10.09
소프트웨어공학  (0) 2012.09.11

소프트웨어공학

학교/소프트웨어공학 2012. 9. 11. 11:37

Q: What is the most important topic/ concept in IT?

 

=>

 

semantic web

=====================================

ex) SW developer coustomer:

 

Given a set of integers S and a number K,

sumofsubset(S,K) is true if there is a subset {k1,..,kn} of  S such that k1+k2+..+kn=k.

 

ex) ss({3,5,6},8) = true  why? 3+5=8

     ss({3,4},10) = false   why? 3+4=7

 

-----------------------

constructive definition.

:원소

:: 집합 추가

rule 1. if for all k , ss({K},K) is true.

 

rule 2. if for all S:set, K:int,A:int, if ss(S,K), then ss(A::S, A)  

s에 a라는 원소 추가하고 k자리에 a적는다.

 

 

rule 3. if for all S:set, K:int,A:int, if ss(S,K), then ss(A::S, K)  

===================================================

 

내 생각추가{

rule 3. if ss({S},k) , then ss((s1-k)::S,k)

s가 1개면 s-k의 값을 s집합에 넣는다.

 

rule 4. if ss({S},k) , then ss({s},s1+s2)

S가 2개 이상이면 원소합을 K에 넣는다.  룰 1이랑 완전 비슷

}

===============================================

 

real tasks:

task1 decide whether

ss({2,4,7},9).

Prog -> ss({2,4,7},9)

task2 decide whether ss({2,4},10)

and ss({2,4},1) in parallel.

 

exec(prog->ss({2,4},10);

ss({2,4},1) par-and

ss(2,4},1)

reference : "In the beginning was game semantics" by Giorg Japaridze.

 

'학교 > 소프트웨어공학' 카테고리의 다른 글

  (0) 2012.11.06
  (0) 2012.10.30
10/16  (0) 2012.10.16
10/9  (0) 2012.10.09
  (0) 2012.09.18