Human(david). human(john). human(suzie). human(eliza). man(david). man(john). woman(suzie)....

3
human(david). human(john). human(suzie). human(eliza). man(david). man(john). woman(suzie). woman(eliza). parent(david, john). parent(john, eliza). parent(suzie, eliza). father(X,Y) :- parent(X,Y), man(X). mother(X,Y) :- parent(X,Y), woman(X). ?- father(X, eliza). X = john ; - Constraint programming - Expert systems - Prolog - Inference engine - Knowledge base knowledg e rules inferenc e

Transcript of Human(david). human(john). human(suzie). human(eliza). man(david). man(john). woman(suzie)....

Page 1: Human(david). human(john). human(suzie). human(eliza). man(david). man(john). woman(suzie). woman(eliza). parent(david, john). parent(john, eliza). parent(suzie,

human(david).human(john).human(suzie).human(eliza).man(david).man(john).woman(suzie).woman(eliza).parent(david, john).parent(john, eliza).parent(suzie, eliza).

father(X,Y) :- parent(X,Y), man(X).mother(X,Y) :- parent(X,Y), woman(X).

?- father(X, eliza). X = john ;

http://en.wikibooks.org/wiki/Prolog/Rules

- Constraint programming- Expert systems- Prolog- Inference engine- Knowledge base

knowledge

rules

inference

Page 2: Human(david). human(john). human(suzie). human(eliza). man(david). man(john). woman(suzie). woman(eliza). parent(david, john). parent(john, eliza). parent(suzie,

2

QQ after Hello Answer

1 Signature of a Python class constructor

2 Definition of software architecture

3 The basic tools of software architecture? = What does MASC mean?

4 A software architect cares about code structure and what else?

5 Design decisions == design constraints?

6 Every system has ONE single true architecture. Yes, no, maybe?

7 Name 3 non-functional requirements

8 I just fixed a bug (issue #5) locally. How do I send the fix to Github?

9 r1 = pygame.Rect(10, 10, 20, 20)r2 = pygame.Rect(25, 25, 10, 10)print r1.colliderect(r2)

Page 3: Human(david). human(john). human(suzie). human(eliza). man(david). man(john). woman(suzie). woman(eliza). parent(david, john). parent(john, eliza). parent(suzie,

3

QQ after Hello Answer

1 Signature of a Python class constructor def __init__(self, var1):def __init__(self, var1, **kwargs):

2 Definition of software architecture The set of most important design decisions

3 The basic tools of software architecture? = What does MASC mean?

Modularity, Abstraction, Separation of Concerns

4 A software architect cares about code structure and what else?

Code behavior. Reuse. Stakeholders. Deployment.

5 Design decisions == design constraints? True

6 Every system has ONE single true architecture. Yes, no, maybe?

No: System vs usability vs software arch.And sw arch in reqs != in code != in docs

7 Name 3 non-functional requirements Adaptability, Availability, Compliance, Complexity, Efficiency, Fault-tolerance, Interoperability, Robustness, Scalability, Security, Usability, …

8 I just fixed a bug (issue #5) locally. How do I send the fix to Github?

git add . ; git commit –m ‘fixed issue #5’;git push … Or right click -> Team -> commit

9 r1 = pygame.Rect(10, 10, 20, 20)r2 = pygame.Rect(25, 25, 10, 10)print r1.colliderect(r2)

True: Rect(left, top, width, height)