Homework 7

2y ago
24 Views
2 Downloads
384.53 KB
10 Pages
Last View : 10d ago
Last Download : 3m ago
Upload by : Fiona Harless
Transcription

CompSci 171: Intro AIHomework 7First-Order Logic

8.3 Is the sentence x,y x y valid?Valid.An existentially quantified sentence is true in a model if it holds underany extended interpretation in which its variables are assigned todomain elements.According to the standard semantics of FOL as given in the chapter,every model contains at least one domain element.Hence, for any model, there is an extended interpretation in which xand y are assigned to the first domain element. In such aninterpretation, x y is true.

8.6Represent the following sentences in first order logic,using a consistent vocabularyVocabulary:Student(x), Person(x), Man(x), Barber(x), Expensive(x), Agent(x),Insured(x), Smart(x),Politician(x): predicates satisfied by members of thecorresponding categoriesF, G: French and German coursesx y: x is greater than y;Take(x, c, s): student x, course c, semester sPass(x, c): student x passes course cScore(x, c): the score obtained by student x in course c in semester s;Subject(c, f): the subject of course c is field f;

8.6Buys(x, y, z): x buys y from zSells(x, y, z): x sells y to zShaves(x, y): person x shaves person yParent(x, y): x is a parent of yCitizen(x, c, r): x is a citizen of country c for reason rResident(x, c): x is a resident of country cBirthplace(x, u): person x born in country uCitizen(x, u): person x is a citizen of country uParent(x, z): z is a parent of xFools(x, y, t): person x fools person y at time t

8.6a) Some students took French in spring 2001. x Student(x) Takes(x, F, Spring2001).b) Every student who takes French passes it. x, s Student(x) Takes(x, F, s) Passes(x, F, s).c) Only one student took Greek in spring 2001. x Student(x) Takes(x,G, Spring2001) y y x Takes(y,G,Spring2001).d) The best score in Greek is always higher than the best score in French. s x y Score(x,G,s) Score(y,F, s).e) Every person who buys a policy is smart. x Person(x) ( y, z Policy(y) Buys(x, y, z)) Smart(x).f) No person buys an expensive policy. x, y, z Person(x) Policy(y) Expensive(y) Buys(x, y, z).

8.6g) There is an agent who sells policies only to people who are notinsured. x Agent(x) y, z Policy(y) Sells(x, y, z) (Person(z) Insured(z)).h) There is a barber who shaves all men in town who do not shavethemselves. x y Barber(x) Man(y) Shaves(y, y) Shaves(x, y).i) A person born in the UK, each of whose parents is a UK citizen or a UKresident, is a UK citizen by birth. x Person(x) Born(x,UK) ( y Parent(y, x) (( r Citizen(y,UK, r)) Resident(y,UK))) Citizen(x,UK,Birth).j) A person born outside the UK, one of whose parents is a UK citizen bybirth, is a UK citizen by descent. x Person(x) Born(x,UK) ( y Parent(y, x) Citizen(y,UK,Birth)) Citizen(x,UK,Descent).

8.6k) Politicians can fool some of the people all of the time, and they can foolall of the people some of the time, but they can’t fool all of the people allof the time. x Politician(x) ( y t Person(y) Fools(x, y, t)) ( t yPerson(y) Fools(x, y, t)) ( t y Person(y) Fools(x, y, t))

8.7 Represent the sentence “All Germans speak thesame languages” in predicate calculus.

8.8 What axiom is needed to infer the fact Female(Laura)given the facts Male(Jim) and Spouse(Jim, Laura)

8.15 Explain what is wrong with the following proposeddefinition of adjacent squares in the wumpus world:There are several problems with the proposed definition.– It allows one to prove, say Adjacent([1,1],[1,2]) but notAdjacent([1,2],[1,1]); so we need an additional symmetry axiom.– It does not allow one to prove that Adjacent([1,1],[1,3]) is false,so it needs to be written as– Finally, it does not work as the boundaries of the world, so someextra conditions must be added

b) Every student who takes French passes it. x, s Student(x) Takes(x, F, s) Passes(x, F, s). c) Only one student took Greek in spring 2001. x Student(x) Takes(x,G, Spring2001) y y x Takes(y,G,Spring2001). d) The best score in Greek is always higher than the best score in French. s x y Score(

Related Documents:

tell me your favorite subject in first grade and why! Monthly ELA Homework Calendar: Please complete your ELA homework nightly on the white paper provided in the homework section of your P.A.W. binder. Homework will be checked on Friday’s. Homework is a completion grade and is a good practice of the content that we cover in class. Spelling .

Let’s try: Weak Entity Set homework have course c_number title hw_number total_scores due_date Homework cannot exist without a course. Every homework must belong to a single class. A course can have many homework. Different courses may have the same homework number

Homework If your school has decided to share homework tasks with parents, you will see the Homework tab when viewing pupils from that school. Selecting this tab will display a list of homework tasks which your child has been assigned to. To change the date range for displayed homework tasks, click on the Date button to select from the

Homework If your school has decided to share homework with pupils, you will see the Homework tab in your account. Selecting this tab will display a list of the homework tasks which you have been given. To change the date range for displayed homework tasks, click on the orange Date button. To display tasks in the order they were

Research on effective homework practices (Pickering, 2003) suggests the following. Vary the amount of homework assigned to students from elementary to middle school to high school. As students grow older, they should spend more time on homework. The homework chart below (Table 1) reflects the results of six studies

against homework becomes a moot point (Voorhees, 2011). “When teachers design homework to meet specific purposes and goals, more students complete their homework and benefit from the results” (Epstein & Van Voorhis, 2001, p. 191). In fact, when homework is

School Closed - Martin Luther King Jr. Day 11:45 am ASVAB Score Review Homework Club Homework Club 1:45 pm Eagle Time Homework Club Homework Club 7:00 pm Board of Education Meeting (HS Library) Homework Club End of 2nd Marking Period 6:00 pm 6th Grade Moving Up Night 7:00 pm NHS Middle School Dance No

Homework 7.4 – The Extreme Value Theorem and Optimization. Homework 7.5 – Differential Equations. Homework 8.1 – Sigma Notation and Summations. Homework 8.2 – The Definition of Net Area. Homework 8.3 – Rolle