# Artificial Intelligence - Knowledge Representation

>>>>>>>>Knowledge Representation

(p N
(applicant ^name <n> ^salary <35000 ^status NIL)
→
(modify 1 ^status No)
)
(p LC1
(applicant ^name <n> ^salary >100000 ^status NIL)
(stocks ^holder <n> ^worth >20000)
→
(modify 1 ^status C1)
)
(p LC2
(applicant ^name <n> ^salary >85000 ^status NIL)
(stocks ^holder <n> ^worth >50000)
(credit ^user <n> ^score >150)
→
(modify 1 ^status C2)
)
Consider the following set of working memory elements:
1. (applicant ^name a ^salary 5000 ^status NIL)
2. (applicant ^name b ^salary 1035000 ^status NIL)
3. (applicant ^name c ^salary 95000 ^status NIL)
4. (credit ^user b ^score 100)
5. (credit ^user c ^score 155)
6. (stocks ^holder a ^worth 10000)
7. (stocks ^holder c ^worth 60000)
8. (stocks ^holder b ^worth 25000)

• A

A and B  • B

B and C  • C

A and D  • D

C and D  (p N
(applicant ^name <n> ^salary <35000 ^status NIL)
→
(modify 1 ^status No)
)
(p LC1
(applicant ^name <n> ^salary >100000 ^status NIL)
(stocks ^holder <n> ^worth >20000)
→
(modify 1 ^status C1)
)
(p LC2
(applicant ^name <n> ^salary >85000 ^status NIL)
(stocks ^holder <n> ^worth >50000)
(credit ^user <n> ^score >150)
→
(modify 1 ^status C2)
)
Consider the following set of working memory elements:
1. (applicant ^name a ^salary 5000 ^status NIL)
2. (applicant ^name b ^salary 1035000 ^status NIL)
3. (applicant ^name c ^salary 95000 ^status NIL)
4. (credit ^user b ^score 100)
5. (credit ^user c ^score 155)
6. (stocks ^holder a ^worth 10000)
7. (stocks ^holder c ^worth 60000)
8. (stocks ^holder b ^worth 25000)

• A

I only  • B

I and II only  • C

II only  • D

III only  (p N
(applicant ^name <n> ^salary <35000 ^status NIL)
→
(modify 1 ^status No)
)
(p LC1
(applicant ^name <n> ^salary >100000 ^status NIL)
(stocks ^holder <n> ^worth >20000)
→
(modify 1 ^status C1)
)
(p LC2
(applicant ^name <n> ^salary >85000 ^status NIL)
(stocks ^holder <n> ^worth >50000)
(credit ^user <n> ^score >150)
→
(modify 1 ^status C2)
)
Consider the following set of working memory elements:
1. (applicant ^name a ^salary 5000 ^status NIL)
2. (applicant ^name b ^salary 1035000 ^status NIL)
3. (applicant ^name c ^salary 95000 ^status NIL)
4. (credit ^user b ^score 100)
5. (credit ^user c ^score 155)
6. (stocks ^holder a ^worth 10000)
7. (stocks ^holder c ^worth 60000)
8. (stocks ^holder b ^worth 25000)

• A

<N,1>  • B

<LC2,3,5,7>  • C

<LC2,3,5>  • D

<LC1,2,8>  • A

I and II  • B

II and III  • C

I, II and III  • D

None of the above  Related Quiz.
Knowledge Representation