1. Homepage
  2. Programming
  3. COMPSCI 367 Artificial Intelligence Assignment 2: PDDL

COMPSCI 367 Artificial Intelligence Assignment 2: PDDL

Engage in a Conversation
AucklandCOMPSCI 367Artificial IntelligencePDDLPrologvariable elimination algorithm

School of Computer Science CourseNana.COM

COMPSCI 367 Assignment 2
Total marks:
10.
Weighting: This assignment counts toward 10% of your final mark.
CourseNana.COM

Question 1 [4 marks] CourseNana.COM

For this question, you are asked to solve a classical planning problem using PDDL. Read the problem description carefully. CourseNana.COM

Polynesian navigators trained in schools (wānanga) to learn a body of wayfinding techniques that provided the skills necessary to travel to other locations throughout the Pacific, including over vast distances. CourseNana.COM

Jeff Evans describes the general process as follows: CourseNana.COM

A voyage is divided into three main stages. First there is the departure and the setting of the primary course. This primary course takes into account any local sea or wind conditions likely to push the waka off course as it departs land. The second challenge for the navigator is to maintain the appropriate course en route, while the third objective is to reach the destination successfully. (Polynesian navigation and the discovery of New Zealand pp. 58-59) CourseNana.COM

Wayfinding required the ability to interpret reliable environmental signs. For our purposes, we are going to divide this into three actions representing groups of signs to look out for at different degrees of proximity to the destination: CourseNana.COM

  1. 1)  Navigatorswouldmemoriseastarpath—anumberofstarsthatcanbeseenrisingfromthe same point on the horizon each night—to guide them in their direction of sail. They would also have an understanding of familiar currents and techniques to detect ocean swells that allows them to know more about the general region they are travelling toward. We will call this action schema: check_currents_star_map. CourseNana.COM

  2. 2)  Whennavigatorswerenearingthelocalityoftheirdestination,theywouldcheckfor signs including cloud formations that typically indicate a land mass is near. It has also been recorded that certain signs of phosphorescence under the water could provide direction toward the nearest land mass. We will call this action schema: check_clouds_phosphoresence. CourseNana.COM

  3. 3)  Asnavigatorswerenearingtheisland,othersignswouldindicatewherethelandmass was. Certain birds that returned to land at night could provide direction based on their flight CourseNana.COM

COMPSCI 367 Assignment 2 Page 1 of 5 CourseNana.COM

path. Skilled navigators could identify colours reflecting on the horizon that are indicative of land. Weeds and logs in the water would also indicate that land was close. These signs would result in landfall at their destination. We will call this action schema: check_birds_horizon_detritus. CourseNana.COM

Our planning problem is represented by the diagram below. We are considering a wayfinder- in-training who is attempting to sail from the origin to the destination. CourseNana.COM

The vessel will always be at one of the locations on this map. CourseNana.COM

You should note in this diagram that only the moves indicated by arrows are possible (e.g., you can move from region1 directly to region2 but you cannot move directly from locality1 to locality2). Each of the arrows in the diagram represents a possiblemove. The colours of the arrows also indicate which specific actions need to be performed to move into a new region or to move to a new locality or to land at an island. CourseNana.COM

For your reference, here is a key to the objects in this diagram: CourseNana.COM

COMPSCI 367 Assignment 2 Page 2 of 5 CourseNana.COM

Note that for the action check_currents_star_map, the position that the vessel will end up at must be a region. For the action check_clouds_phosphoresence, the position that the vessel will end up at must be a locality. For the action check_birds_horizon_detritus, the position that the vessel will end up at must be an island. CourseNana.COM

For this assignment, you will write PDDL code to represent this problem and successfully generate a plan to travel from the origin to the destination. All of the terms that have appeared in these instructions so far in bold courier new font and also in the diagrams should also appear in your code as predicates, objects, and actions. CourseNana.COM

  1. (a)  Write a PDDL domain file wayfinding_domain.pddl that specifies predicates and the three action schemas: check_currents_star_map, check_clouds_phosphoresence and check_birds_horizon_detritus. (2 marks) CourseNana.COM

  2. (b)  Write a PDDL problem file wayfinding_task.pddl that defines all components of the task, including specifying the objects, initial state and the goal state. (2 marks) CourseNana.COM

    Submit the two files wayfinding_domain.pddl and wayfinding_task.pddl. You may use the PDDL Editor to test your code: http://editor.planning.domains/ CourseNana.COM

COMPSCI 367 Assignment 2 Page 3 of 5 CourseNana.COM

Question 2 [3 marks total] CourseNana.COM

Lots of people training for marathons have a goal, for example, to run a sub-four-hour marathon. When runners talk about running a sub-four-hour marathon, this implies that they will achieve a time 3 hours or over but below four hours. Below are the probabilities associated with the finishing times for runners in marathons. CourseNana.COM

  1. 1  Sub-one-hour range (Less than 1 hour) 0 CourseNana.COM

  2. 2  Sub-two-hour range (1 hour or over but less than 2 hours) 0 CourseNana.COM

  3. 3  Sub-three-hour range (2 hours or over but less than 3 hours) 0.1 CourseNana.COM

  4. 4  Sub-four-hour range (3 hours or over but less than 4 hours) 0.4 CourseNana.COM

  5. 5  Sub-five-hour range (4 hours or over but less than 5 hours) 0.35 CourseNana.COM

  6. 6  Sub-six-hour range (5 hours or over but less than 6 hours) 0.15 CourseNana.COM

It was found that people who run their first marathon will either get the same time or faster in their second marathon. CourseNana.COM

Write ProbLog code for this scenario to generate answers for the questions below. CourseNana.COM

  1. (a)  Based on the output of your ProbLog program, what is the probability that a runner will run in CourseNana.COM

    the sub-four-hour range in both their first and second marathon? (2 marks) CourseNana.COM

  2. (b)  Based on the output of your ProbLog program, what is the probability that a runner will improve their run time so that they fall in the next-shortest sub-hour range in their second marathon. (E.g., if their time is in the sub-hour 6 range in the first marathon, their time will be in the sub-hour 5 range in the second marathon; if their time is in the sub-hour 5 range in the first marathon, their time will be in the sub-hour 4 range in the second marathon; and so on.) (1 mark) CourseNana.COM

You may use the ProbLog editor: https://dtai.cs.kuleuven.be/problog/editor.html. Please save your code as marathon.txt and submit this file. CourseNana.COM

CourseNana.COM

Question 3 [3 marks total] CourseNana.COM

We are analysing the expression of various genes and their relationships to one another.
The following facts are found: The expression of
GeneA and/or GeneB regulates the expression of GeneC. The expression of GeneC regulates the expression of GeneD. CourseNana.COM

  1. (a)  Consider the following facts: P(GeneA) = 0.2 CourseNana.COM

    P(GeneB) = 0.5 CourseNana.COM

    P(GeneC | GeneA, GeneB) = 0.8 P(GeneC | GeneA, ¬GeneB) = 0.1 P(GeneC | ¬GeneA, GeneB) = 0.25 P(GeneC | ¬GeneA, ¬GeneB) = 0 CourseNana.COM

    P(GeneD | ¬GeneC) = 0.85 P(GeneD | GeneC) = 0.1 CourseNana.COM

    A gene may be in a state of “on” (=1) or “off (=0). Given this information, draw the full conditional probability tables for the following probability distributions: P(GeneA), P(GeneB), P(GeneC), and P(GeneD). (1 mark) CourseNana.COM

  2. (b)  Use the variable elimination algorithm to calculate the probability that gene B is “on” given that we have found that gene D is “on”. I.e., What is P(GeneB | GeneD)? Show all working. (2 marks) CourseNana.COM

COMPSCI 367 Assignment 2 Page 5 of 5 CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
Auckland代写,COMPSCI 367代写,Artificial Intelligence代写,PDDL代写,Prolog代写,variable elimination algorithm代写,Auckland代编,COMPSCI 367代编,Artificial Intelligence代编,PDDL代编,Prolog代编,variable elimination algorithm代编,Auckland代考,COMPSCI 367代考,Artificial Intelligence代考,PDDL代考,Prolog代考,variable elimination algorithm代考,Aucklandhelp,COMPSCI 367help,Artificial Intelligencehelp,PDDLhelp,Prologhelp,variable elimination algorithmhelp,Auckland作业代写,COMPSCI 367作业代写,Artificial Intelligence作业代写,PDDL作业代写,Prolog作业代写,variable elimination algorithm作业代写,Auckland编程代写,COMPSCI 367编程代写,Artificial Intelligence编程代写,PDDL编程代写,Prolog编程代写,variable elimination algorithm编程代写,Aucklandprogramming help,COMPSCI 367programming help,Artificial Intelligenceprogramming help,PDDLprogramming help,Prologprogramming help,variable elimination algorithmprogramming help,Aucklandassignment help,COMPSCI 367assignment help,Artificial Intelligenceassignment help,PDDLassignment help,Prologassignment help,variable elimination algorithmassignment help,Aucklandsolution,COMPSCI 367solution,Artificial Intelligencesolution,PDDLsolution,Prologsolution,variable elimination algorithmsolution,