Preview

It422 Hw1

Satisfactory Essays
Open Document
Open Document
351 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
It422 Hw1
Page 1 of 2
King Saud University
College of Computer and Information Sciences
Information Technology Department
IT422
Artificial Intelligence

HOMEWORK 1
Q1: Problem formulation
Three fathers with 3 children (A and his child CA, B and his child CB, and C and his child CC) are standing on side North of a river. The three fathers want to cross the river (go to side South) with their children, but there is only one boat, which can hold a maximum of two persons (a child is considered a person).
Furthermore, no child can stay with other fathers without the presence of his father.
a. Give a suitable representation of a state.
b. According to the previous representation, what is the initial state?
What is the goal state?
c. What are the possible actions on a state?
d. Draw the state space using a tree structure up to depth 2.
SEARCH STRATEGIES
Q1.

A. Show that DFS generates about O(bm) nodes in the search tree.
B. Explain why DFS requires less memory than BFS.
Q2.
A. Starting from “a”, find the goal “e” using DFS with tree-search algorithm, and then with graph-search algorithm.

d

a

c

b

e

Page 2 of 2

You have to show:
1.
2.
3.
4.
5.
6.

The search tree.
The order in which nodes will be visited.
The frontier at each step.
The explored list
The solution path.
The frontier after the search is terminated.

Note: expand nodes in alphabetical order when you have more than one candidate for expansion. B. Compare the two solutions. What can you conclude?

Q3. Please refer to chapter 3 slide 7.
Starting from Pitesti, find a path to Oradea. Show the search tree, the frontier, the explored list, the solution path and the solution cost for the following search strategies:
a) UCS
b) Greedy
c) A*
Consider the following estimative of distance to the goal: o o o o o o o h(Oradea) = 0 h(Arad) =120 h(Bucharest) = 430 h(Sibiu) = 160 h(Fagaras) = 130 h(Craiova)=350 h(Rimnicu)=230

Is this heuristic admissible? Why?

You May Also Find These Documents Helpful

  • Good Essays

    NVQ 2 HSC2024

    • 1049 Words
    • 4 Pages

    Creases over the joints are the same as the joint always folds in the same way.…

    • 1049 Words
    • 4 Pages
    Good Essays
  • Good Essays

    P370 Hw2

    • 721 Words
    • 3 Pages

    | Which of the following is NOT a method used in aggregate planning to cope with fluctuations in demand?…

    • 721 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Bisc403

    • 2334 Words
    • 10 Pages

    iBISC403 Genetics and Evolutionary Biology Exam 2, March 22, 2012 Instructions: 1. Grid in your name on the answer sheet. 2. DO NOT grid in your student number, the course number or section. 3. Print your last name at the top of this cover page and short answer pages. 4. At the end of the exam, turn in your exam and your answer sheet together. All multiple choice questions are of equal value and together are worth 80% of the exam. The three short answer questions are each of indicated value and worth 20% of the exam.…

    • 2334 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    Acct420 Wk 6 Hw

    • 881 Words
    • 4 Pages

    15-1. 1. d. 6. a. 2. a. 7.…

    • 881 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    As you can see that from the header the name of the company in which I choose to select is called International Goods 2 Go. Yes, this is a fictional company that focuses on the importing and exporting of goods internationally. International Goods 2 Go, seeks to establish long term customer relationships by bridging our customer 's needs with our supplier 's capabilities being mindful of all environmental, safety, and regulatory compliance requirements. International Goods 2 Go will continually expand our knowledge of specific industries and provide successful logistical solutions for our customers. The reason why I chose to do a company like this because I have been working in logistics for quite some time now and this industry really drives me and keeps me motivated. I liked the idea of the company being international because I believe in the benefits of building relationships overseas are as follows:…

    • 2699 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    Acc421

    • 899 Words
    • 4 Pages

    Kudler Fine Foods was founded in 1998 by Kathy Kudler in San Diego, CA. Since the beginning of operation of one store, the business has grown to a total of three stores. By concentrating on the market research this will help with expansion of more locations.…

    • 899 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    ITNW 2335

    • 402 Words
    • 2 Pages

    6. What are three main types of high-bandwidth connection options used by medium- to large-sized businesses?…

    • 402 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Hltap501A

    • 3110 Words
    • 13 Pages

    The following assignment will discuss essential nursing processes to obtain information from a client to identify health problems or potential health problems and to gather and document information to use in the contribution of care planning for a client in a variety of health care settings. The case study involves Mrs Blow, an elderly patient who has a variety of health issues and requirements, that need to be implemented in hospital and on her return home for optimal health and…

    • 3110 Words
    • 13 Pages
    Powerful Essays
  • Good Essays

    I am writing in response to your request that I analyze Stewart Brand's “The Case for De-Extinction: Why We Should Bring Back the Woolly Mammoth” and make a recommendation for or against publication in The Shorthorn. I have considered the rhetorical appeals of Brand’s piece and determined that a large majority of students would find this to be unappealing due to the large amount of Christians, Catholics, Muslims, and other religious groups on campus, so therefore, it should not be published. This topic is very controversial and most likely will not persuade the UTA community in agreeing with Brand’'s viewpoints.…

    • 976 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Eco 561 Wk 4

    • 1761 Words
    • 8 Pages

    Vallerand, A. H., & Sanoski C. A., Vidaza (2013) Drug Information, Davis Drug Guide (13th Ed.) Unbound Medicine Inc. Charlottesville, VA…

    • 1761 Words
    • 8 Pages
    Better Essays
  • Satisfactory Essays

    Hr593

    • 709 Words
    • 3 Pages

    * Commissioned sales employees of retail or service establishments are exempt from overtime if more than half of the employee 's earnings come from commissions and the employee averages at least one and one-half times the minimum wage for each hour worked. You may also wish to review the applicable regulation.…

    • 709 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    IT 282 sylabus

    • 2660 Words
    • 11 Pages

    University policies are subject to change. Be sure to read the policies at the beginning of each class. Policies may be slightly different depending on the modality in which you attend class. If you have recently changed modalities, read the policies governing your current class modality.…

    • 2660 Words
    • 11 Pages
    Satisfactory Essays
  • Good Essays

    Constructing an expression tree from a postfix expression: read one symbol at a time; if operand, create a one-node tree and push it onto a stack. If operator, pop two trees T1, T2 from stack, and form a new tree whose root is the operator, and whose left and right children are T2 and T1; push new tree onto stack…

    • 1611 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    HW FIN 3331

    • 1351 Words
    • 10 Pages

    9.14. Microtech Corporation is expanding rapidly, and it currently needs to retain all of its earnings, hence it does not pay any dividends. However, investors expect Microtech to begin paying dividends, with the first dividend of $1.00 coming 3 years from today. The dividend should grow rapidly – at a rate of 50 percent per year – during Years 4 and 5. After Year 5, the company should grow at a constant rate of 8 percent per year. If the required return on the stock is 15 percent, what is the value of the stock today?…

    • 1351 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Today, top search engines like Google and Yahoo use a data structure called Inverted Index for their matching of queries to the documents and give users the relevant documents according to their rank. Inverted Index is basically a mapping from a word to its position of occurence in the document. Since a word may appear more than once in the document, storing all the positions and the frequency of a word in the document gives an idea of relevance of this document for a particular word. If such an inverted index is build up for each document in the collection, then when a query is fired, a search can be done for the query in these indexes and ranking is obtained according to the frequency. Mathematically, an inverted index for a document D and strings s1 , s2 , ..., sn is of the form s1 − > a1 , a1 , ... 1 2 s2 − > a2 , a2 , ... 1 2 . . . sn − > an , an , ... 2 1 where ak denotes the lth position of k th word in the document D. l To build up this kind of data structure efficiently, Tries are used. Tries are a good data structure for strings as searching becomes very simple here with every leaf node describing one word. To build up an inverted index given a set of documents using trie, following steps are followed • Traverse one document and insert words into a trie. As a leaf node is reached, assign it a number (in increasing order) representing its location in the index (staring from 0). Add the position of this word into the index. • Now for a word which occur more than once in the document, when attempt for second insertion into the trie is made, a leaf node already containing that word would be found and its value would tell the location in the index. So simply go to this index and add another position for this word. • Do this till end of document is reached. Now, you have a trie and an inverted index for the first document. • Repeat this procedure for the rest of the documents. 1…

    • 879 Words
    • 4 Pages
    Good Essays