Giter Site home page Giter Site logo

wellofsorrows / ai-hw1 Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 367 KB

Some questions about intelligent agents and search methods in AI.

TeX 100.00%
tex latex ai artificial-intelligence artificial-intelligence-algorithms searching-algorithms intelligent-agents

ai-hw1's Introduction

AI-HW1

This is homework no. 1 of the "Artificial Intelligence" course in the spring semester of 2021 at Shiraz University.

Question 1

Write a PEAS description of the task environment and environment features (discrete or continuous, fully or partially observable, etc.) for the following:

  1. Tennis against the wall agent.
  2. Digikala site

Question 2

From the five types of agents (simple reflex agent, model-based reflex agent, goal-based agent, utility-based agent, learning agent), which of the following agents fit in? Justify your answer.

  1. Playing soccer agent.
  2. Exploring the subsurface ocean of titan agent.
  3. Bidding on an item at an auction agent.

Question 3

You are trying to recover a password to an encrypted file, by using search methods. You know that the password is up to 10 letters long and contains only the letters 'A', 'B', 'C'. You formulate a search problem as following:

  • The initial state is the empty string.
  • The successor function is to append one letter (A, B, or C) to the string.
  • The goal test is to verify a candidate’s password using the decryption software. There are 6 correct passwords: AAACCC, ABBCC, BABAB, BCABACB, CBAC, and CBACB.
  • Assume that all ties are broken alphabetically. For example, if there is a tie between states 'A', 'B', and 'C', expand 'A' first, then 'B', then 'C'.
  1. Will breadth-first search return the correct password? Justify your answer.
  2. Will depth-first search return the correct password? Justify your answer.
  3. You suspect that some letters are more likely to occur in the password than others. You model this by setting cost(A) = 1, cost(B) = 2, cost(C) = 3. Will uniform cost search return the correct password? Justify your answer.

Question 4

For each of the following graph search strategies, work out the order in which states are expanded, as well as the path returned by graph search.

In all cases, assume ties resolve in such a way that states with earlier alphabetical order are expanded first. The start and goal state are S and G, respectively.

Remember that in graph search, a state is expanded only once.

Graph.

  1. Breadth-first search.
  2. Depth-first search.
  3. Iterative deepening search.
  4. Uniform cost search.

ai-hw1's People

Contributors

sempfi avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.