CAP4630 - Exam 2 (PPTs)

5.0(1)
studied byStudied by 13 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/56

flashcard set

Earn XP

Description and Tags

Ch 5&9

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

57 Terms

1
New cards
rules, system
using ____ to tell a _______:

* what to do in certain circumstances
* what conclusion to draw from what inputs
2
New cards
knowledge representation
rules for _________ _________:

usually expressed in the form of

IF A THEN B

A → B
3
New cards
antecedent
In A → B, A is called the:
4
New cards
consequent
* In A → B, B is called the:
* it usually represents an action or conclusion
5
New cards
rule
* can represent a recommendation or casual relationship
* ex: IF temp is below zero THEN weather is cold
6
New cards
rule-based system
* AKA production system
* computer system that uses rules to:
* provide recommendations or diagnoses
* determine a course of action
* solve a problem
* consists of:
* a fact base
* a knowledge base
* an inference base
7
New cards
fact base
database of facts
8
New cards
knowledge base
database of rules
9
New cards
inference engine
* interpreter
* controls process of deriving conclusions by forward or backward chaining
10
New cards
forward chaining
* start from a set of fact/rules
* try to find a way to deduce a conclusion (come up with course of action)
* data-driven → reasoning starts from set of data, ends up at goal
11
New cards
forward chaining steps
* keep checking facts in fact base
* see if any combination of facts matches all the antecents of 1 of the rules in the knowledge base
* if all antecedents of a rule are matched, the rule is triggered and fired → its conclusion is added to the fact database
12
New cards
conflict
a fact has mutliple conclusions and the conclusions are incompatible
13
New cards
conflict resolution methods
1\.) priority levels

2\.) longest-matching strategy

3\.) most recently added
14
New cards
priority levels
* each rule is given a priority level
* rule with highest priority is fired
15
New cards
longest matching strategy
* fire the rule that was derived from the longest antecedents
* if all antecedents of a rule are matched, then it should be fired → more specific match, less chance to go wrong
* ex: IF A AND B AND C THEN X vs. IF A THEN Y
16
New cards
most recently added
* fire the rule that matched the facts most recently added to the database
* recently added facts tend to be closer to possible conclusions
17
New cards
meta rules
* rules that define how conflicts will be solved
* treated as ordinary rules, given higher priority
* override normal rules, can control the conflict resolution process
18
New cards
meta knowledge
* used to resolve different types of conflicts
* built by knowledge engineer into the system
19
New cards
backward chaining
* start from conclusion → the hypothesis to prove
* show how conclusion can be reached from rules and facts
20
New cards
goal
hypothesis to be proven
21
New cards
backward chaining pros
* ensures that each action taken will definitely lead to the goal
* usually makes planning process more efficient
22
New cards
a
when is forward chaining more appropriate?

a.) when a set of facts is available but the conclusion is not already known

b.) when there are few (or just one) possible conclusions and many possible facts
23
New cards
b
when is backward chaining more appropriate?

a.) when a set of facts is available but the conclusion is not already known

b.) when there are few (or just one) possible conclusions and many possible facts
24
New cards
expert system
* designed to model the behavior of an expert in some field
* involves the end user, knowledge engineer, and domain expert
25
New cards
rule-based expert system
designed to use rules that an expert would use to draw conclusion from set of facts
26
New cards
end user
person who has the need for the system
27
New cards
knowledge engineer
* person who designs the rules for the system
* observes expert at work or asks the domain expert questions
28
New cards
domain expert
person who can explain to the knowledge engineer how to draw conclusions
29
New cards
inference engine, explanation system, knowledge base editor, user interface
List the components of the expert system shell
List the components of the expert system shell
30
New cards
fact base
contains specific data in a particular case to derive a conclusion
31
New cards
knowledge base
contains domain knowledge used to derive conclusions
32
New cards
inference engine
uses forward chaining, backward chaining, or combination of both to make inferences
33
New cards
explanation system
explains how inference engine derives its conclusions, based on inference chain
34
New cards
knowledge base editor
allows knowledge engineer or expert to edit info in the knowledge base
35
New cards
user interface
provides access to inference engine, explanation system, and knowledge base editor
36
New cards
expert system shell
* does not contain domain specific or case specific info
* a general toolkit that can be used to build a number of different expert systems
37
New cards
constraint satisfaction problem
* problems limited by constraints
* solution: search
* ex: 8 queens problem
38
New cards
8 queens problem
8 queens must be placed on a chess board so that no 2 queens are on the same diagonal/row/column
39
New cards
8 queens problem search tree
* 8 levels deep
* 1st level has branching factor of 64
* 2nd level has branching factor of 63
* 8th level has branching factor of 57
40
New cards
8 queens problem simplified search tree
* each row and column must have 1 queen
* 1st level has branching factor of 8
* 2nd level has branching factor of 7
* 3rd level has branching factor of 6
* further simplified:
* each queen uses 1-2 diagonals
* branching factor is 5 or 6 after 1st choice
41
New cards
forward checking
* can significantly improve the performance of solutions for CSPs
* used to delete a set of impossible future choices
* if placing a queen results in removing all remaining squares → system can backtrack immediately
42
New cards
chronological backtracking
* problem: error may not be caused by most recently placed queen
* may backtrack moves that aren’t leading to an error
43
New cards
most constraint variable
* heuristic to further improve performance
* at each search stage, work with variable that has the least possible valid choices
44
New cards
heuristic repair
* can be used to improve performance of solutions
* generate an intuitive initial state using a simple heuristic and then try to fix it
* keep making changes to get closer to goal
45
New cards
min-conflicts heuristic
* heuristic repair in 8 queens problem
* moving from 1 state to another → likely to be closer to a solution
* select 1 queen that conflicts with another queen
* move selected queen to a square where it conflicts with as few queens as possible
46
New cards
local search
* starting from some initial configuration using random generating
* making small changes to config until a state is reached where no better successor states can be achieved
* tends to find local optimal solution instead of global optimal solution
* ex: hill climbing, steepest ascent hill climbing, exchanging heuristics
47
New cards
exchanging heuristics
* simplest manner of local search
* move from 1 state to another by changing one or more variables
48
New cards
k-exchange
* method where k variables are changed at each step
* 1-exchange for solving 8 queens problem
* using larger value of k will get a better result but requires more iterations
49
New cards
metaheuristics
* used to guide other heuristics
* get away from a local optimal solution and move towards the global optimal solution
* ex: iterative local search, tabu search, ant colony optimization, simulated annealing
50
New cards
iterative local search
* can overcome problem of local maxima → by running optimization procedure repeatedly from different initial states
* if used with sufficient iterations → will almost always find a global optimal solution
* purpose: provide a very good solution without exhaustively searching the entire problem space
51
New cards
tabu search
* maintain list of states that were already visited → to prevent repeating paths
* used in combination with another heuristic
* operates on principle: it’s worth going down a path that seems poor if it’s not repeating a visited path
* no repetitive path → good way to avoid local optimal solution
52
New cards
ant colony optimization (ACO)
* a metaheuristic
* foraging ants leave trail of pheromones to lead other ants to find food
* trail of pheromones is renewed regularly → if better route is found, old route will gradually fade
* used to find the best way to route cables through communication network
53
New cards
simulated annealing
* strength of a material
* if most of atoms are attracting other atoms → material will be very durable
* if excluding other atoms → material will be crispy
* AKA Monte Carlo simulation
54
New cards
annealing
* process of producing very strong glass or material
* atoms able to be relocated in a way so most of atoms are attracting others → great strength
* optimal arrangement of atoms have:
* greatest strength
* lowest thermodynamic free energy of system
55
New cards
state transitions
* cool down process is a sequence of this
* new state chosen by making small change to current state
* if new state has lower energy than current state → it’s accepted
* if new state has higher energy → Boltzmann acceptance criterion
56
New cards
simulated annealing
* to determine whether to move to higher energy or not:
* probability calculated, random number between 0 and 1 is generated
* if random number is lower than calculated probability, then new state is accepted
* when inc in energy is very high (or temp is very low) → very few states will be accepted as Boltzmann approaches zero
* inc energy → process can escape local minima
* extremely powerful method for solving complex problems
57
New cards
cooling schedule
* determines the way temp is lowered for successive iterations
* 2 popular cooling schedules (formulas)
* algorithm loops around temp until it reaches near zero value
* determines the way temp is lowered for successive iterations 
* 2 popular cooling schedules (formulas) 
* algorithm loops around temp until it reaches near zero value