Search AI Flashcards

1
Q

What are AI search Algorithms useful for?

A

Search Algorithms help machines to navigate through complex search spaces to find optimal solutions to a wide range of problems.

  1. Problem-solving
    • Route planning
  2. Efficiency
  3. Automation
  4. Decision-making
  5. Innovation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Vad är en “Fringe”?

A

En lista av noder som väntas på att bli checked

  • inom tree search
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Vad är att “expandera en nod”?

A

Att generera alla dess barn

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Vad krävs för att kunna bygga ett system för att lösa ett specifikt problem?

A
  1. Define the problem
    • Needs precise specifications of INITAL SOLUTION & FINAL SOLUTION
  2. Analyze the problem
    • Select important features
  3. Isolate and represent
    • convert the features into knowledge representation
  4. Problem solving techniques
    • Choose technique and apply
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a search space? and a search tree?

A

The search space is all the possible conditions and solutions. A search tree is a tree representaiton of search space, showing possible solutions from initial state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the basic idea of tree search algorithms?

A

A simulated exploration of state space by generating successors of already explored states

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Search Strategy?

A

A strategy to contain the search, it is defined by picking the order of node expansion.

Strategies are evaluated along the following dimensions

Completeness
Time complexity
Space complexity
Optimality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are uninformed search strategies?

A

They use only the information available in the problem definition

  1. Breadth-first search
  2. Uniform-cost search
  3. Depth-first
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does Breadth-Frist Search work?

A

Expand the shallowest unexpanded node

The fringe is a FIFO queue, new successors go at the end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the properties of Breadth-First Search?

A

Complete? Yes if the tree is finite
Space? Keeps every node in memory

Optimal? Yes if the cost =1 per step

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does a Depth-First Search Work?

A

Expand the deepest unexpanded node

The Fringe is a LIFO queue, the successors are put at front

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the properties of depth-first search

A

Complete? No: Fails in infinite-depth spaces, or spacies with loops

Optimal? No, or at least not guaranteed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When is Breadth-First or Depth-First best suited?

A

BFS is best suited for finding the shortest path or all possible solutions.

DSF is better for problems where any solution is acceptable or where the solution is likely to be found closer to the starting point.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does Uniform-Cost Search Work?

A

Chooses the option with the lowest Cost.

  • Priority Queue
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is informed search?

A

Informed search uses additional information such as heuristic functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are Heuristic Functions?

A

Heuristic Functions is a function estimating the cost of reaching a goal state from a given state

17
Q

What is the A* Algorithm?

A

The A* Algorithm uses Heuristic functions to estimate the promise of a child with. an Evaluation function

18
Q

What is the A* evalution function?

A

f(n) = g(n) + h(n)

f(n) = cost(start, n) + straight-line-distance(n, goal)
- The estimated cost for the rest

g(n) = Cost so far to reach n
h(h) = estimated cost from n to goal
f(n) = estimated total cost of path through n to goal

19
Q

What are the properties of A* algorithm?

A

A* always find the shortest path
- Type of Best-First-Search Algorithm

Combines the advantages of Breadth First and Depth first

A* is more efficient than breadth-first

A* GUARANTEES TO FIND THE SHORTEST PATH between the start node and the goal node

20
Q

What are Local search Algorithms?

A

In many optimization problems, the path to the goal is irrelevant; the goal state itself is the solution

Hill-climbing search

21
Q
A