# you will be asked to implement a Python program to solve the following puzzles described below: Introduction to Artificial Intelligence Assignment, APU, Malaysia

 University Asia Pacific University (APU) Subject Introduction to Artificial Intelligence

Description

In this assignment, you will be asked to implement a Python program to solve the following puzzles described below;

The main objective of this assignment is not to find a solution. Rather, it is for you to demonstrate an understanding in the process of obtaining a solution to such problems; and that you are capable of writing code to demonstrate that understanding.

Puzzles

You have three water bottles. Bottle #1 (b1) can be filled with 10 litres, bottle #2 (b2) with 6 litres, and bottle #3 (b3) with 5 litres of water respectively. There are no markings on the bottles so you cannot measure them if the bottles are filled less than their maximum capacity. Assuming that you have an unlimited supply of water, by filling or emptying these three bottles, how would you get from
the start state to the end state? What is the solution with the fewest steps?
The code should be able to solve this problem for the following parameters:
a) Start: b1 = 10, b2 = 0, b3 = 0
End: b1 = 5, b2 = 5, b3 = 0

b) Start: b1 = 2, b2 = 0, b3 = 0
End: b1 = 4, b2 = 0, b3 = 0

c) Start: b1 = 3, b2 = 0, b3 = 0
End: b1 = 0, b2 = 0, b3 = 1

b) Repeat (c) but now change the maximum of the bottles [(i) b1: 11, b2: 7 b3: 4].

## Get Help By Expert

Online Exam & Assignment Writing Services

11770+ Orders Delivered

4.9/5
5 Star Rating

Confidential & Secure Assignment Help For

Group Assignment Help

Online Exam -Test & Quiz

Cheapest Price Quote

Diploma & Certificate Levels

Semester & FYP Papers

Summative & Individual

GBA & Reflective

Last Minute Assistance

##### BBUN2103 Business Law Assignment Sample Malaysia
BBUN2103 Business Law is one of the courses offered by OUM Business School at Open University Malaysia (OUM). This course should be covered over 8-15 weeks and it's worth 3…
Law
##### AAR650 Design V UITM Assignment Sample Malaysia
AAR650 Design V is an exciting course for anyone looking to push their design skills forward. Filled with hands-on activities, the course teaches students ideation and prototyping techniques that will…
Assignment Sample

UP TO 15 % DISCOUNT

Instant Paper Writing Services by Native Malaysia Writers

Plagiarism Free Solutions
100% Original Work
24*7 Online Assistance
Native PhD Experts
Hire a Writer Now