انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة
الكلية كلية تكنولوجيا المعلومات
القسم قسم شبكات المعلومات
المرحلة 3
أستاذ المادة علاء الدين عباس عبد الحسن
29/05/2013 08:27:51
Examples for how to Translate English Sentences into First-Order Logic If you would like to practise, there are some more problems (with sample solutions) in Nilsson, Section 15.6.2, and ((without sample solutions) in Russell and Norvig, Exercise 7.2. The following problems were inspired by them. In the following, it is important to remember the precedence of the operators, which are (from highest to lowest): ? (NOT), U (AND), ? (OR), ? (IMPLIES),U (EQUIV). Notice also that there are always several (equivalent) sentences in first-order logic that correspond to a given English sentence. We give only one example. All students are smart. " x ( Student(x) ? Smart(x) ) There exists a student. $ x Student(x). There exists a smart student. $ x ( Student(x) U Smart(x) ) Every student loves some student. " x ( Student(x)?$ y ( Student(y) U Loves(x,y) )) Every student loves some other student. " x ( Student(x)?$ y ( Student(y) U ? (x = y) U Loves(x,y) )) There is a student who is loved by every other student. $ x ( Student(x) U " y ( Student(y) U ?(x = y) ? Loves(y,x) )) Bill is a student. Student(Bill) Bill takes either Analysis or Geometry (but not both) Takes(Bill, Analysis)U? Takes(Bill, Geometry) Bill takes Analysis or Geometry (or both). Takes(Bill, Analysis) ? Takes(Bill, Geometry) Bill takes Analysis and Geometry. Takes(Bill, Analysis) U Takes(Bill, Geometry) Bill does not take Analysis. ? Takes(Bill, Analysis). No student loves Bill. ? $ x ( Student(x) U Loves(x, Bill) ) Bill has at least one sister. $ x SisterOf(x,Bill) Bill has no sister. ? $ x SisterOf(x,Bill) Bill has at most one sister. " x, y ( SisterOf(x, Bill) U SisterOf(y, Bill) ? x = y ) Bill has exactly one sister. $ x ( SisterOf(x, Bill) U " y ( SisterOf(y, Bill) ? x = y )) Bill has at least two sisters. $ x, y ( SisterOf(x, Bill) U SisterOf(y, Bill) U ? (x = y) )
المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
|