Professional Documents
Culture Documents
Objective:
To be able to understand hill-climbing local search
To be able to implement simpler variants of hill-climbing and genetic algorithms in Python.
Basic-Python Practice:
String Manipulation:
1. Write a program that check either given string contains the substring or not
List Manipulation:
2. Write a program to create a list and apply these functions:
Insert(position, element)
Remove(element)
Count()
Index(element)
Sort()
Append(element)
Dictionary Manipulation:
3. Write a program in python to create a dictionary:
From the given dictionary: Assume all subject are out of 100.
Find the sum of all marks, Obtained Marks, Highest and Lowest subject and finally the percentage of
marks.
Tuple Manipulation:
4. Write a program in python to sort a tuple by 2nd item
Application of Hill-Climbing:
Traveling salesman problem
Robotics
Job Scheduling
Lab-Practice:
1. Solve a traveling saleman problem using Hill-Climbing Algorithm:
There are total 4 nodes that are needed to be explored. As a saleman you are required to visit these
nodes with minimum cost.
Artificial Intelligence and Neural Network Lab
Key Value
2021-CS-700 [(DSA,3.0), (Algo,2.5), (AI,3.3)]
2021-CS-701 [(DSA,2.7), (Algo,3.0), (AI,2.7)]
2021-CS-702 [(DSA,3.0), (Algo,2.5), (AI,2.7)]
2021-CS-710 [(DSA,3.3), (Algo,3.0), (AI,3.3)]
2021-CS-711 [(DSA,3.5), (Algo,3.5), (AI,3.7)]
2021-CS-712 [(DSA,3.0), (Algo,2.5), (AI,2.5)]
2021-CS-713 [(DSA,3.7), (Algo,2.5), (AI,3.0)]
a) Write a program which shall print GPA of all students. Assume all subject have 3 credit hours.
b) Write a program that print the highest number obtained in DSA
c) Write a program that print the total number of students those have less than 3.0 GPA
You are required to make a one page proposal as a semester project. It should contain
1. Title of your Project
2. Group Members
3. Problem Statement (One Paragraph or 150 Words)
4. How you solve this Problem (200 Words)
Lab Submission:
Create two python files name as 8-queen puzzle.py and python-practice.py
Create one document for proposal in MS-Word with name as: semester_project_proposal.docx
Submit it on email id: rabeeyasaleem@uet.edu.pk with subject 2019-GCU-CS-LABASSIGNMENT