🌍 Artificial Intelligence · flashcards

Artificial Intelligence Knowledge, Reasoning, and Logic Flashcards

60 question-and-answer cards covering Knowledge, Reasoning, and Logic as it is examined in Artificial Intelligence. 24 of them are printed below, taken from across the deck — no signup, no paywall on the preview.

60Cards in deck
24Free preview
20Syllabus topics
~303Chars per answer
FreePrice

24 sample cards from the Knowledge, Reasoning, and Logic deck

Sampled from the end of the deck, so these are different cards from the ones shown on the syllabus page.

  1. How does backward chaining work in FOL, and what search strategy does it use?

    To prove a goal, find rules whose head unifies with the goal and recursively prove the (substituted) subgoals in the body, composing substitutions. It is a depth-first, goal-directed search—the basis of logic programming—but can loop infinitely and repeat work.

  2. State the full first-order resolution inference rule.

    For clauses $(\ell_1 \lor \cdots \lor \ell_k)$ and $(m_1 \lor \cdots \lor m_n)$, if $\ell_i$ and $m_j$ have unifier $\theta$ (i.e. $\text{Unify}(\ell_i, \lnot m_j)=\theta$), infer the clause containing all remaining literals, with $\theta$ applied. This is refutation-complete for FOL.

  3. List the steps to convert a first-order sentence into Conjunctive Normal Form.

    1) Eliminate $\Leftrightarrow$ and $\Rightarrow$. 2) Move $\lnot$ inward (De Morgan, quantifier duality). 3) Standardize variables apart. 4) Skolemize existentials (replace with Skolem constants/functions of enclosing universals). 5) Drop universal quantifiers. 6) Distribute $\lor$ over $\land$.

  4. What is Skolemization and when is a Skolem function (vs. constant) needed?

    Skolemization removes existential quantifiers by replacing the variable with a new constant or function. Use a Skolem constant if the $\exists$ is not inside any $\forall$; use a Skolem function of the enclosing universally quantified variables if it is, e.g. $\forall x\,\exists y\,P(x,y)$ becomes $\forall x\,P(x, f(x))$.

  5. What is a resolution refutation proof and why must the KB be in CNF?

    To prove $KB \models \alpha$, add $\lnot\alpha$ to the KB, convert everything to CNF, and repeatedly resolve clauses; deriving the empty clause $\{\}$ shows unsatisfiability, hence entailment. CNF is required because resolution operates on clauses (disjunctions of literals).

  6. Define a definite clause in Prolog and describe Prolog's execution model.

    A Prolog clause is Head :- Body, meaning body $\Rightarrow$ head. Prolog uses backward chaining with depth-first, left-to-right search, tries clauses in database order, uses unification without occur check, and applies negation-as-failure (a goal is 'false' if it cannot be proved).

  7. What is negation as failure and how does it differ from logical negation?

    Negation as failure treats $\text{not}(P)$ as true exactly when the system fails to prove $P$ (closed-world assumption). It differs from classical negation, which requires $\lnot P$ to be provably true; NAF makes conclusions defeasible and non-monotonic.

  8. What is ontological engineering and what is an upper ontology?

    Ontological engineering is the design of general-purpose frameworks of categories, objects, and relations for representing broad knowledge (events, time, physical objects, beliefs). An upper ontology is the general top-level structure (very abstract categories) under which domain-specific concepts are organized in a hierarchy.

  9. How are categories represented in FOL, and what is the difference between membership and the subset relation?

    Categories can be reified as objects. Membership: an object belongs to a category, $BB_9 \in Basketballs$ or $Member(BB_9, Basketballs)$. Subset (subcategory): $Basketballs \subseteq Balls$. Categories inherit properties and can be organized into a taxonomy.

  10. Define physical composition ($PartOf$) and the difference between a category and an individual.

    $PartOf(x,y)$ says $x$ is a physical part of $y$; it is transitive and reflexive, so parts form a hierarchy (e.g. $PartOf(Bucharest, Romania)$). A category is a class of objects; an individual is a single object that may be a member of categories.

  11. What is a semantic network and what is its core reasoning mechanism?

    A semantic network is a graph whose nodes are objects/categories and whose labeled edges are binary relations (e.g. $SubsetOf$, $MemberOf$, $HasColor$). Its core mechanism is inheritance: properties asserted of a category are inherited by members and subcategories along the links.

  12. What are Description Logics designed to do, and name their two central inference tasks.

    Description Logics formally define and reason about categories (concepts) and their relationships, emphasizing tractable, decidable inference. Central tasks: subsumption (is concept $C$ necessarily a subcategory of $D$?) and classification (does an object belong to a category?); also consistency checking of a concept.

  13. What is default (non-monotonic) reasoning, and why is classical logic monotonic?

    Default reasoning draws tentative conclusions that may be retracted given new information (e.g. 'birds fly' but not penguins). Classical logic is monotonic: if $KB \models \alpha$ then $KB \land \beta \models \alpha$—adding facts never invalidates conclusions—so it cannot model defaults.

  14. Compare circumscription and default logic as formalisms for default reasoning.

    Circumscription minimizes the extension of certain 'abnormality' predicates, assuming things are as normal as possible unless stated otherwise. Default logic adds default rules of the form 'prerequisite : justification / conclusion' to derive extensions—conclusions that hold when the justification is consistent with what is known.

  15. Define the PDDL representation of a classical planning problem (its main components).

    A planning problem in PDDL specifies: an initial state (conjunction of ground fluents), a goal (a conjunction/partial state), and a set of action schemas, each with a name, parameters, a PRECONDITION, and an EFFECT (added and deleted literals). States use the closed-world assumption.

  16. State the closed-world and STRIPS assumptions used in classical planning, and how an action's effect is applied.

    Closed-world: unmentioned fluents are false. An action is applicable in a state if its precondition holds. Its result is $\text{Result}(s,a) = (s - \text{Del}(a)) \cup \text{Add}(a)$: remove the delete-list literals and add the add-list literals; all other fluents persist (avoiding the frame problem).

  17. Contrast forward (progression) and backward (regression) state-space search for planning.

    Forward/progression search starts at the initial state and applies applicable actions toward the goal (large branching factor, needs good heuristics). Backward/regression search starts from the goal and works backward through actions whose effects are relevant and consistent, keeping only relevant actions (smaller branching).

  18. How are admissible heuristics for planning derived via relaxation (e.g. ignore-delete-lists)?

    Relax the problem to make it easier and use the relaxed optimal cost as a heuristic. The ignore-preconditions relaxation drops preconditions; the ignore-delete-lists relaxation removes all negative effects so progress is monotonic, yielding an admissible, informative heuristic (basis of the $h_{max}$/$h_{add}$ family).

  19. What is a planning graph and what are its two alternating levels?

    A planning graph is a layered, polynomial-size data structure built from the initial state. It alternates state levels $S_i$ (literals possibly true after $i$ steps) and action levels $A_i$ (actions possibly applicable), connected by precondition, add, and delete edges, including 'persistence' (no-op) actions for each literal.

  20. Define the two types of mutex (mutual exclusion) links between actions in a planning graph.

    Two actions at a level are mutex if: (1) inconsistent effects—one deletes a literal the other adds; (2) interference—one's effect deletes a precondition of the other; or (3) competing needs—their preconditions are mutex. Two literals are mutex if one negates the other or all ways of achieving them are pairwise mutex.

  21. How is a planning graph used as an admissible heuristic (max-level, level-cost)?

    The level at which a goal literal first appears is a lower bound on the steps needed to achieve it. The max-level heuristic (largest first-appearance level over goal literals) and the set-level heuristic (first level where all goal literals appear together and non-mutex) are admissible; the sum/level-sum heuristic is efficient but not admissible.

  22. Describe the GRAPHPLAN algorithm.

    GRAPHPLAN alternates two phases: (1) expand the planning graph one level; (2) attempt to extract a valid plan by searching backward from the goal literals at the last level, respecting mutex constraints. If extraction fails, expand another level and retry. It terminates with failure once the graph has 'leveled off' and no plan is found.

  23. What does it mean for a planning graph to 'level off,' and why does GRAPHPLAN terminate?

    A graph levels off when two consecutive levels are identical (same literals and same mutexes). Because the graph is monotonically growing but bounded (finitely many literals/actions and mutexes only decrease), it must level off; if the goal is still unreachable or mutex after leveling off, no plan exists and GRAPHPLAN returns failure.

  24. How can a classical planning problem be solved as a SAT (Boolean satisfiability) problem?

    Encode the planning problem for a fixed horizon $T$ as propositional logic: propositionalize the actions and fluents with time indices, assert the initial state at $t=0$, the goal at $t=T$, successor-state axioms, precondition axioms, and action-exclusion axioms; then use a SAT solver. Increase $T$ until a satisfying assignment (a plan) is found.

What this deck covers

The Knowledge, Reasoning, and Logic deck follows the Artificial Intelligence Knowledge, Reasoning, and Logic syllabus — 5 chapters and 20 topics — so questions land on material that is genuinely examinable rather than trivia around it. That works out to roughly 12.0 cards per chapter.

Answers are written to be recallable, not just readable — averaging about 303 characters, which is long enough to carry the reasoning and short enough to say out loud.

A deck like this earns its keep on the second and third pass. Read the syllabus first so you know the shape of the subject, then use the cards to find the specific facts that have not stuck.

Knowledge, Reasoning, and Logic flashcards FAQ

How many Knowledge, Reasoning, and Logic flashcards are in this Artificial Intelligence deck?

60 cards. This page previews 24 of them, sampled evenly across the deck so you can judge the difficulty before installing anything.

Are these Artificial Intelligence flashcards free?

Yes. The preview here is free to read with no signup, and the full 60-card deck is free inside the Examius app.

What do the Knowledge, Reasoning, and Logic cards cover?

They follow the Artificial Intelligence Knowledge, Reasoning, and Logic syllabus — 5 chapters and 20 topics — so the questions track what is actually examinable.

How should I use these flashcards?

Read the syllabus first so you know the shape of the subject, then drill the deck. Examius schedules each card with spaced repetition, so cards you keep missing come back sooner and ones you know drift further apart.