This is homework no. 1 of the "Artificial Intelligence" course in the spring semester of 2021 at Shiraz University.
Write a PEAS description of the task environment and environment features (discrete or continuous, fully or partially observable, etc.) for the following:
- Tennis against the wall agent.
- Digikala site
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.
- Playing soccer agent.
- Exploring the subsurface ocean of titan agent.
- Bidding on an item at an auction agent.
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'.
- Will breadth-first search return the correct password? Justify your answer.
- Will depth-first search return the correct password? Justify your answer.
- 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.
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.
- Breadth-first search.
- Depth-first search.
- Iterative deepening search.
- Uniform cost search.