AI file.pdf
AI file.pdf
BAJAJ
INSTITUTE OF TECHNOLOGY & MANAGEMENT
GREATER NOIDA
Dept. of Artificial Intelligence and Machine Learning
(BCAI-501)
ACADEMIC SESSION 2024-25
COURSE : B.TECH
SEM: V
Code:
Output:
Experiment No: 2
OBJECTIVE: Write a Program to Implement Water-Jug problem using Python.
Code:
Output:
Experiment No: 3
OBJECTIVE: . Write a python program to remove punctuations from the given string.
Code:
Output:
Experiment No: 4
OBJECTIVE: Write a python program to sort the sentence in alphabetical order.
Code:
Output:
Experiment No: 5
OBJECTIVE: Write a program to implement Hangman game using python.
Description:
Hangman is a classic word-guessing game. The user should guess the word correctly
by entering alphabets of the user choice. The Program will get input as single alphabet
from the user and it will matchmaking with the alphabets in the original word. If the
user given alphabet matches with the alphabet from the original word then user must
guess the remaining alphabets. Once the user successfully found the word he will be
declared as winner otherwise user lose the game.
Code:
Output:
Experiment No: 6
Code:
Output:
Experiment No: 7
OBJECTIVE: Write a python program to remove stop words for a given passage from
a text file using NLTK.
Code:
Output:
Experiment No: 8
OBJECTIVE: Write a python program to implement stemming for a given
sentence using NLTK.
Code:
Output:
Experiment No: 9
OBJECTIVE: Write a Program to Implement Depth First Search
using Python.
Code:
Output:
Experiment No: 10
OBJECTIVE: Write a python program to for Text Classification for
the give sentence using NLTK
Code:
Output: