7COM1034: Search and Bayesian Update — A “Whale Watching” Scenario – Python Assessment Answer

Responsive Centered Red Button

Need Help with this Question or something similar to this? We got you! Just fill out the order form (follow the link below), and your paper will be assigned to an expert to help you ASAP.

1AFIFF

Subject Code: 7COM1034

Python Assessment Answer

1 Task: Search — Decanting Problem

The task consists of programming a Python implementation of a solver for the Decanting Task.

Assume you have 3 vessels, vessel 1 capable of holding 5 litres of milk, vessel 2 capable of holding 3 litres and vessel 3 capable of holding 8 litres. The starting state is the first vessel is filled to the limit (i.e. 5 litres), vessel 2 is also filled to the limit (3 litres), and vessel 3 is empty:

One can now pour the contents of one vessel into another one, without spilling, and stopping when the target vessel is filled. The task is the following: by pouring back and forth, how can one split the total of 8 litres of milk into two equal portions of 4 litres each? How can one pour the contents of the vessels from one to another such that at the end of the pouring process, one vessel should contain 4 litres and another one also 4 litres. The following considerations apply: it is not allowed to estimate quantities “by eye”. In pouring the contents from one vessel to another, one stops either when the pouring vessel is empty, or when the target vessel is full. One can not do a “partial decanting”.

The Task

Based on the search algorithms covered in the lecture, write a Python program that starts from some starting state, (f

1

,f

2

,f

3

) and moves according to the rules until it reaches a given goal

state for the decanting task.

2 Task: Bayesian Update — A “Whale Watching” Scenario

2.1 Description

The task consists of writing a Python program which simulates a ship trying to reach a whale in a 10 × 10 grid world. More precisely, the ship moves through the grid world and measures (e.g. by “sonar”) a distance to the whale. From it, it deduces where the whale could be (using a Bayesian model), moves, measures again, etc. until it knows where the whale

The Task

The task of this assignment is to fill in the missing parts of the program, indicated by three dots “

…

” in the Python program

whale_fillin.py

This Python Assessment has been solved by our Python/Computer Science experts at TVAssignmentHelp. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

How to create Testimonial Carousel using Bootstrap5

Clients' Reviews about Our Services