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.
Are You Searching Answer of this Question? Request Malaysian Writers to Write a plagiarism Free Copy for You.
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 Solution of this Assessment. Hire Experts to solve this assignment for you Before Deadline.
Get Help By Expert
Recent Solved Questions
- CDCP2101: Happy Market is a sundry shop that sells everyday products to customers. The owner of the shop wants to have a program: C Programming Assignment, OUM, Malaysia
- Does the scope of the project appear to have been clearly defined upfront and Is there any evidence of an effective risk assessment process: Master of Project Management Assignment, OUM, Malaysia
- The rationale of the study is to investigate the communicative competence of the English language among Malaysian adult players: Animal Crossing Thesis, OUM, Malaysia
- Examine the depiction of family relationships or the “domestic affections” as one of the central concerns: Nineteenth-Century Literature and Culture Essay, UOC, Malaysia
- Lazada is the leading international e-Commerce company in Southeast Asia that was founded by Maximilian Bittner: Business Communication Report, UiTM, Malaysia
- MPU2313: Entrepreneurship Assignment help – City University
- Work Integrated Project is a compulsory component of the BBUS program After completing all the taught courses: Final Year Project Case Study, UTM, Malaysia
- BHMC3004: Refer to Data Assignment 1, and select a proportionate stratified probability sample of 40 cities according to the region: Statistical Analysis for Communication Assignment, TARC, Malaysia
- OUMH1303: Describe Effective Verbal and Non-Verbal Language in Expressing Formal: English For Oral Communication Assignment, OUM
- In response to the judicial outcome of the Afghan Hijackers case: Public Law Research Paper, UUM, Malaysia