make sure you know the answers
What is an Expert system? give an example
=symbolic AI
emulates the decision-making ability of a human expert. By applying knowledge and inference rules
symbolic AI –>expert systems–>forward chaining
How would forward chaining solve this classification problem?
Forward chaining starts with the available data and uses inference rules to extract more data (in the form of conclusions or actions) until a goal is reached
symbolic AI –>expert systems–>backward chaining
how does backward chaining work? Give an example
Backward chaining starts with a list of goals and works backwards to determine what data must be true to achieve those goals.
Example
Goal: Determine why the computer won’t start.
Rule 1: If the computer won’t start, then possible causes are power supply failure, corrupted system files, or hardware failure.
The system then works backwards by checking each possibility:
It first asks if the power supply is functional.
If yes, it checks for system file integrity.
If system files are intact, it then considers hardware failure.
The system continues this process until it finds the specific cause.
when would you use backward chaining and when forward chaining?
Backward chaining is well-suited for diagnostic problems where the goal (conclusion) is known, but the path to reach it is not
Forward chaining is ideal in situations where all relevant data is available upfront, and the goal is to deduce all the conclusions that can be derived from that data.
What is backtracking? give an example. What is brute force?
depth-first search that attempts to construct a solution incrementally. When it encounters a step where no progress can be made (a dead end), it backtracks to the previous step and tries another path. This continues until a solution is found or all possibilities are exhausted.example
Imagine you’re trying to solve a maze. You start at the entrance and come to a junction where you must choose which way to go. You pick a direction and continue until you reach a dead end or the exit. If you hit a dead end, you backtrack to the last junction and try a different path. This process repeats until you find the exit or conclude that there’s no exit.
basic search–>depth-first search
what is depth-first search (DFS)?
Purpose: DFS is primarily used for traversal or searching in a graph or tree. It aims to explore all nodes and edges to achieve comprehensive traversal.
Process: DFS starts at a root node and explores as far as possible along each branch before backtracking.
basic search: breadth-first search
what is breadth-first search? when is it used?
BFS is ideal for finding the shortest path on unweighted graphs. Since it explores all neighbors at the current depth before moving to the next level, it guarantees the shortest path when the edges have the same weight or no weight.
when is depth-first search prefered and when is breadth first search prefered?
What is the Hill Climbing algorithm in search?
starts with an arbitrary solution and iteratively makes incremental improvements. It ‘climbs’ towards a better solution by selecting the neighboring state with the highest value and stops when no higher value is found.e.g.
what is a greedy algorithm?
Algorithms that choose the locally optimal choice at each stage are known as greedy algorithms. (eg. hill climbing)
basic search–>beam search
regarding beam search algorithm give:
* approach
* goal
* context
* example system
* greedy or not?
breadth-first search but only the knodes that qualify according the predifined terms are further investigated.optimal search–>branch and bound
describe the branch and bound search.
* how does it work?
* goal
* greedy or not?
branches). (nodes in search tree)bounds (upper or lower limits, depending on whether it’s a maximization or minimization problem) on the objective function. These bounds are used to estimate the best possible solution within that subset.Pruning: If the bound of a subset indicates that it cannot possibly contain a better solution than the best one found so far, that subset (branch) is discarded or “pruned” from the search. This step is crucial as it significantly reduces the number of subsets that need to be examined.optimal search–>heuristic branch-and-bound
what is heuristic branch-and-bound? what is an advantage compared to the traditional one?
branch and bound, but
* Heuristic functions are used to evaluate the potential of each branch. (After step 2 bounds) These functions provide an educated guess or estimation of how close a particular branch or solution is to the optimal solution, based on available information and problem-specific knowledge.
* reducing the search space and computation time compared to traditional Branch and Bound.
what is A* procedure?
what is adversarial search?
adversarial=competitive
a method used in artificial intelligence to solve games or problems where two or more agents are in competition. Its function is to find the best move in a given situation by considering the strategies of opposing agents.
this allows for perfect play: the behavior or strategy of a player that leads to the best possible outcome for that player regardles of the response by the opponent.
adversarial search applies the alpha-beta principle what does this mean?