World's most popular travel blog for travel bloggers.

How Programming Languages like C/C++/Java differs from Programming languages used for the purpose of Artificial intelligence viz.

, , No Comments
How Programming Languages like C/C++/Java differs from
Programming languages used for the purpose of Artificial
intelligence viz. PROLOG, LISP. What are the additi onal
components present in LISP & PROLOG, which makes them
intelligent enough. What is the mathematical basis  of PROLOG?
Which polish notation supports the LISP ? Write theFollowing
codes(provide suitable comments with code to express your logic)
(a)  Write a recursive function in LISP named power  that takes two
numeric arguments, n and m, that computes nth power of  m (i.e.,
m
n
).
(b) Write a PROLOG programme that answers questionsabout
family members and relationships. Include predicates and rules
which define sister, brother, father, mother, grandfather, grand-child and uncle. The programme should be able to answer
queries such as the following:
? – father (X, mohit)
? – grandson (X, Y)
? – uncle (abdul, ruksana)
? – mother (mary, X) 

0 comments:

Post a Comment

Let us know your responses and feedback