You are on page 1of 7

CS3491 - ARTIFICIAL

INTELLIGENCE AND MACHINE


LEARNING LABORATORY

DEPARTMENT OF COMPUTER SCIENCE


AND ENGINEERING

REGULATION 2021

II YEAR / IV SEM

Prepared By,
Dr. P.Krishnaveni,
ASP/CSE
AIM

Artificial intelligence and machine learning laboratory


involves developing knowledge about uninformed and
informed search algorithms, unsupervised and supervised
learning algorithms, and neural networks. The learners can
infer a good knowledge about AI programming.
SYLLABUS

1.Implementation of Uninformed search algorithms (BFS, DFS).

2. Implementation of Informed search algorithms (A*, memory-bounded


A*).

3. Implement naïve Bayes models.

4. Implement Bayesian Networks.

5. Build Regression models.

6. Build decision trees and random forests.


SYLLABUS Cont…

7. Build SVM models.

8.Implement ensembling techniques.

9. Implement clustering algorithms.

10. Implement EM for Bayesian networks.

11. Build simple NN models .

12. Build deep learning NN models.


SAMPLE PROGRAM

Breadth First Search in Python


graph = { '5' : ['3','7'], '3' : ['2', '4'], '7' : ['8'], '2' : [], '4' : ['8'], '8' : [] }
visited = [] # List for visited nodes.
queue = [] #Initialize a queue
def bfs(visited, graph, node): #function for BFS
visited.append(node)
queue.append(node)
SAMPLE PROGRAM Cont…
while queue: # Creating loop to visit each node
m = queue.pop(0)
print (m, end = " ")
for neighbour in graph[m]:
if neighbour not in visited:
visited.append(neighbour)
queue.append(neighbour)
# Driver Code
print("Following is the Breadth-First Search")
bfs(visited, graph, '5') # function calling
THANK YOU

You might also like