1. Home
  2. Explore
  3. Computer Science
  4. AI Knowledge & Reasoning

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

AI Knowledge & Reasoning

  • 54Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Knowledge-Based Agents
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is the primary focus of knowledge-based agents in AI?

Tap to flipClick to flipspace

Knowledge-based agents are designed to reason and act by representing knowledge internally.

Or swipe the card

54 cards

  1. What is the primary focus of knowledge-based agents in AI?

    Knowledge-based agents are designed to reason and act by representing knowledge internally.

  2. What does the example from Harry Potter demonstrate about human intelligence and knowledge?

    Humans use known facts to draw conclusions and reason about information to figure out how to do something or deduce additional information.

  3. In the context of AI, what is a sentence?

    A sentence is an assertion about the world in a knowledge representation language.

  4. What type of logic is based on propositions or statements about the world?

    Propositional logic.

  5. What are propositional symbols in propositional logic?

    Propositional symbols are letters (e.g., P, Q, R) that represent a specific fact or sentence about the world.

  6. What is the purpose of logical connectives in propositional logic?

    Logical connectives are symbols used to combine propositional symbols (or other sentences) to form more complex statements and reason about them.

  7. Describe the truth table for the 'not' (eg egeg) logical connective.

    If P is false, then eg egegP is true. If P is true, then eg egegP is false.

  8. Describe the truth table for the 'and' (extttand exttt{and}extttand) logical connective.

    P extttand exttt{and}extttand Q is true only when both P is true AND Q is true. In all other cases (P false, Q false; P false, Q true; P true, Q false), P extttand exttt{and}extttand Q is false.

  9. Describe the truth table for the 'or' (extttor exttt{or}extttor) logical connective in propositional logic.

    P extttor exttt{or}extttor Q is true if P is true, or Q is true, or both are true. It is only false if both P and Q are false.

  10. Describe the truth table for the 'implication' (o oo) logical connective (P implies Q).

    P implies Q is false only when P is true and Q is false. In all other cases (P false, Q false; P false, Q true; P true, Q true), P implies Q is true.

  11. Describe the truth table for the 'biconditional' (extttiff exttt{iff}extttiff) logical connective (P if and only if Q).

    P extttiff exttt{iff}extttiff Q is true when P and Q have the same truth value (both true or both false). It is false when P and Q have different truth values (one true, one false).

  12. What is a model in propositional logic?

    A model assigns a truth value (true or false) to every propositional symbol, effectively creating a possible world.

  13. What is a knowledge base (KB) in AI?

    A knowledge base is a set of sentences (in propositional logic) that an AI agent knows to be true about the world.

  14. What does 'alpha entails beta' ( exttt{KB} eta) mean in logic?

    Alpha entails beta means that in every model (possible world) in which sentence alpha is true, sentence beta is also true.

  15. What is inference in AI?

    Inference is the process of deriving new sentences (conclusions) from old ones (known facts in a knowledge base).

  16. What is the central question that inference algorithms aim to answer regarding entailment?

    Given a knowledge base (KB) and a query (alpha), the algorithms ask: 'Does KB entail alpha?' (i.e., 'Can we conclude that alpha is true based solely on KB?').

  17. What is the model checking algorithm for determining entailment?

    Model checking enumerates all possible models (assignments of true/false to propositional symbols). If, in every model where the knowledge base (KB) is true, the query (alpha) is also true, then KB entails alpha.

  18. If there are 'N' propositional symbols, how many possible models are there?

    2N2^N2N possible models.

  19. What is knowledge engineering?

    Knowledge engineering is the process of taking a real-world problem and figuring out how to distill it down into knowledge that is representable by a computer, often using propositional symbols and logical formulas.

  20. In the Clue game example, how are propositional symbols defined?

    A propositional symbol is created for each possible person, room, and weapon that could be inside the envelope, which is true if that item is in the envelope, and false otherwise.

  21. How is the knowledge 'one of the three people is the murderer' encoded in propositional logic for the Clue game?

    Mustard extttor exttt{or}extttor Plum extttor exttt{or}extttor Scarlet.

  22. If a player holds the 'Professor Plum' card in Clue, what piece of knowledge is added to the AI's knowledge base?

    Not Plum (eg egegPlum), meaning Professor Plum is not the criminal.

  23. If someone makes a guess (e.g., Colonel Mustard in the library with the revolver), and a card is revealed (but you don't see which one), what knowledge is gained?

    Either not Mustard extttor exttt{or}extttor not Library extttor exttt{or}extttor not Revolver. At least one of these three items is not in the envelope.

  24. What is a limitation of the model checking algorithm?

    Model checking is not particularly efficient, especially as the number of variables (N) increases, due to needing to enumerate 2N2^N2N possible models.

  25. What is an inference rule?

    An inference rule is a rule that can be applied to existing knowledge (premises) to derive new forms of knowledge (conclusions).

  26. Describe the Modus Ponens inference rule.

    If we know 'alpha implies beta' and we also know 'alpha' is true, then we can conclude 'beta' is true.

  27. Describe the And Elimination inference rule.

    If we know 'alpha and beta' is true, then we can conclude that 'alpha' is true (or 'beta' is true).

  28. Describe the Double Negation Elimination inference rule.

    If we know 'not not alpha' (egegextalpha eg eg ext{alpha}egegextalpha), then we can conclude 'alpha'.

  29. Describe the Implication Elimination inference rule.

    If we know 'alpha implies beta' (extalphaoextbeta ext{alpha} o ext{beta}extalphaoextbeta), then we can conclude 'not alpha or beta' (egextalphaextttorextbeta eg ext{alpha} exttt{or} ext{beta}egextalphaextttorextbeta).

  30. Describe the Biconditional Elimination inference rule.

    If we know 'alpha if and only if beta' (extalphaextttiffextbeta ext{alpha} exttt{iff} ext{beta}extalphaextttiffextbeta), then we can conclude 'alpha implies beta' (extalphaoextbeta ext{alpha} o ext{beta}extalphaoextbeta) AND 'beta implies alpha' (extbetaoextalpha ext{beta} o ext{alpha}extbetaoextalpha).

  31. Describe one of De Morgan's Laws related to 'not (A and B)'.

    If we know 'not (alpha and beta)' (eg(extalphaextttandextbeta) eg ( ext{alpha} exttt{and} ext{beta})eg(extalphaextttandextbeta)), then we can conclude 'not alpha or not beta' (egextalphaextttoregextbeta eg ext{alpha} exttt{or} eg ext{beta}egextalphaextttoregextbeta).

  32. Describe one of De Morgan's Laws related to 'not (A or B)'.

    If we know 'not (alpha or beta)' (eg(extalphaextttorextbeta) eg ( ext{alpha} exttt{or} ext{beta})eg(extalphaextttorextbeta)), then we can conclude 'not alpha and not beta' (egextalphaextttandegextbeta eg ext{alpha} exttt{and} eg ext{beta}egextalphaextttandegextbeta).

  33. Describe the Distributive Law that distributes 'and' over 'or'.

    If we have 'alpha and (beta or gamma)' (extalphaextttand(extbetaextttorextgamma) ext{alpha} exttt{and} ( ext{beta} exttt{or} ext{gamma})extalphaextttand(extbetaextttorextgamma)), then we can conclude '(alpha and beta) or (alpha and gamma)' ((extalphaextttandextbeta)extttor(extalphaextttandextgamma))(( ext{alpha} exttt{and} ext{beta}) exttt{or} ( ext{alpha} exttt{and} ext{gamma}))((extalphaextttandextbeta)extttor(extalphaextttandextgamma)).

  34. Describe the Distributive Law that distributes 'or' over 'and'.

    If we have 'alpha or (beta and gamma)' (extalphaextttor(extbetaextttandextgamma) ext{alpha} exttt{or} ( ext{beta} exttt{and} ext{gamma})extalphaextttor(extbetaextttandextgamma)), then we can conclude '(alpha or beta) and (alpha or gamma)' ((extalphaextttorextbeta)extttand(extalphaextttorextgamma))(( ext{alpha} exttt{or} ext{beta}) exttt{and} ( ext{alpha} exttt{or} ext{gamma}))((extalphaextttorextbeta)extttand(extalphaextttorextgamma)).

  35. How can theorem proving be framed as a search problem?

    The initial state is the knowledge base (set of known sentences). Actions are applying inference rules. The transition model adds new conclusions to the knowledge base. The goal test checks if the query is in the knowledge base. Path cost is the number of inference steps.

  36. What is resolution in AI logic?

    Resolution is an inference rule, and a powerful inference technique, that can prove anything provable from a knowledge base.

  37. Describe the Unit Resolution Rule.

    If we have 'P or Q' and we also know 'not P', then we can conclude 'Q'.

  38. How can the Unit Resolution Rule be generalized?

    If a clause contains 'P' (P or Q1 or ... Qn) and another clause contains 'not P' (not P or R1 or ... Rm), then they resolve to produce a new clause: 'Q1 or ... Qn or R1 or ... Rm'.

  39. What is a clause in logic?

    A clause is formally defined as a disjunction of literals.

  40. What is conjunctive normal form (CNF)?

    A logical sentence is in conjunctive normal form (CNF) if it is a conjunction of clauses.

  41. What is the process for converting a logical formula into conjunctive normal form (CNF)?

    1. Eliminate biconditionals (extttiff exttt{iff}extttiff). 2. Eliminate implications (o oo). 3. Move 'nots' (eg egeg) inwards using De Morgan's laws and double negation elimination. 4. Use the distributive law to distribute 'ors' over 'ands'.
  42. What happens when 'P' and 'not P' are resolved together using the resolution rule?

    They produce the empty clause, which is always false, representing a contradiction.

  43. How is inference by resolution used to prove that a knowledge base (KB) entails a query (alpha)?

    1. Assume 'not alpha' (proof by contradiction). 2. Convert KB extttand exttt{and}extttand eg egegalpha into conjunctive normal form (CNF). 3. Repeatedly apply the resolution rule to pairs of clauses to produce new clauses. 4. If the empty clause is ever produced, a contradiction is found, meaning KB entails alpha. If no more new clauses can be produced and the empty clause is not found, then there is no entailment.
  44. What is First Order Logic (FOL) and how does it differ from propositional logic?

    First Order Logic is more powerful than propositional logic, allowing for constant symbols (objects like people or houses) and predicate symbols (relations/functions that take inputs and evaluate to true/false), as well as quantifiers (universal and existential).

  45. What are constant symbols in First Order Logic?

    Constant symbols represent specific objects or entities in the world, such as people (Minerva, Horace) or houses (Gryffindor, Slytherin).

  46. What are predicate symbols in First Order Logic?

    Predicate symbols represent properties or relations that can hold true or false for constants (objects). They take one or more constant symbols as arguments.

  47. How would the statement 'Minerva is a person' be expressed in First Order Logic?

    Person(Minerva)

  48. How would the statement 'Minerva belongs to Gryffindor' be expressed in First Order Logic?

    BelongsTo(Minerva, Gryffindor)

  49. What are quantifiers in First Order Logic?

    Quantifiers are additional features in First Order Logic that allow expressing ideas about 'all' or 'some' values of a variable.

  50. What is universal quantification in First Order Logic?

    Universal quantification (symbolized by orall or an upside-down 'A', meaning 'for all') allows expressing that a statement is true for all values of a variable.

  51. How would the statement 'Anyone in Gryffindor is not a Hufflepuff' be expressed using universal quantification in First Order Logic?

    orall x ext{ BelongsTo}(x, ext{Gryffindor}) o eg ext{BelongsTo}(x, ext{Hufflepuff})

  52. What is existential quantification in First Order Logic?

    Existential quantification (symbolized by ext∃ ext{\exists}ext∃ or a backwards 'E', meaning 'there exists') allows expressing that a statement is true for at least one value of a variable.

  53. How would the statement 'Minerva belongs to a house' be expressed using existential quantification in First Order Logic?

    ext∃yextHouse(y)extttandextBelongsTo(extMinerva,y) ext{\exists} y ext{ House}(y) exttt{and} ext{BelongsTo}( ext{Minerva}, y)ext∃yextHouse(y)extttandextBelongsTo(extMinerva,y)

  54. How would the statement 'Every person belongs to a house' be expressed using both universal and existential quantification in First Order Logic?

    orall x ext{ Person}(x) o ( ext{\exists} y ext{ House}(y) exttt{and} ext{BelongsTo}(x, y))

Card 1 of 54
Card 1 of 54

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent