LISP Advance Assignment
LISP Advance Assignment
Q.1. What are the 3 AI based Programming Languages? Highlight their importance by
comparison of history, functions supported, style of programming and so on. (like to see best
possible answer)
1. PYTHON
Python is considered to be in the first place in the list of all AI development languages
due to the simplicity. The syntaxes belonging to python are very simple and can be
easily learnt. Therefore, many AI algorithms can be easily implemented in it. Python
takes short development time in comparison to other languages like Java, C++ or Ruby.
2. R
R is one of the most effective language and environment for analyzing and manipulating
the data for statistical purposes. Using R, we can easily produce well-designed
publication-quality plot, including mathematical symbols and formulae where needed.
Apart from being a general purpose language, R has numerous of packages like RODBC,
G models, Class and Tm which are used in the field of machine learning
3. Java
Java can also be considered as a good choice for AI development. Artificial intelligence
has lot to do with search algorithms, artificial neural networks and genetic
programming. Java provides many benefits: easy use, debugging ease, package services,
simplified work with large-scale projects, graphical representation of data and better
user interaction.
b. L2 = ((a b c) (d) e (f g) h)
c. L3 = ((a) (b (c) d) e (f g) h)
d. L4 = ((a b) c (d) e (f g) h)
g. 8 Fruits
(setq fruits ‘(apricot banana kiwi orange strawberry mango grapes pineapple watermelon))
h. 6 Vegetables
Q.3. How to add 6 odd numbers and how to add 5 even numbers using LISP?
Even Numbers:
(+ 0 2 4 6 8)
(eval even)
20
Odd Numbers:
(+1 3 5 7 9 11)
(eval odd)
36