Search Trees And Blind Searches Flashcards

(25 cards)

1
Q

What is the travelling salesman problem

A

A salesperson must visit n cities
Start at any city but must finish at the same city, must visit each city only once

Solving TSP - to find the minimum distance/cost solution

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

Combinatorial Explosion Problem - travelling salesman

A

10 city TSP has 181,000 possible solutions
20 city TSP has 10,000,000 billion possible solutions
Combinational Explosion Problem is one of the major unsolved theoretical problems in computer science

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

Combinatorial Explosion definition

A

The feature where the number of solutions for a problem grows exponentially with problem size

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

Problem search space

A

The concept of search is important in science and engineering
A lot of problems can be seen as a search for the right answer

The concept of search space, the set of all possible solutions to a problem

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

What do search algorithms do

A

Input - a problem
Return - a solution to the problem

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

Defining a problem using a search tree

A

States - nodes
Search Space - all nodes in the tree
Operator - branches

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

What are states/nodes when defining a problem

A

The possible states of the problem

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

What is the search space when defining a problem

A

All the nodes in the tree
The set of states reachable from the initial state

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

What are the operator/branches when defining a problem

A

A set of actions that move one state to another

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

Search tree - neighbourhood

A

All possible states reachable from a given state

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

Search tree - goal test

A

A test state to tell of the search reached a state that solves the problem

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

Search trees - path cost

A

How much it costs to take a particular path

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

What are the issues with search trees

A

Tree size
Branching factor - average number of branches of all nodes in a tree

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

What is the depth of a node

A

How many steps away it is from the starting node

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

what is the depth of a tree

A

How many steps from starting node to furthest finishing node

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

What does the general search algorithm return

A

Solution or failure

17
Q

General search algorithm (general template - p and queuing)

A

P - problem/input
QUEUING-FN - different queuing functions define different types of search techniques

18
Q

General search algorithm (loop)

A

First we take the initial state of problem p and create a data structure called node
Then make a data structure called queue and add the node to the queue

Once in the loop, explore the tree
Check that nodes actually have stuff in, if empty we have exhausted all nodes in the tree and not found a solution
Take the first node in nodes (queue called nodes) r
Test to see if this is the goal, if its solved then we return that node and its path as a solution
If not then we add the next node to the queue and remove the first node and then restart the loop

19
Q

Breadth first search (BFS) - method

A

Expands root node first
Expands all the node at level 1 before expanding level 2

20
Q

What are fringe nodes (open nodes)

A

Nodes in the queue
Have been discovered but not processed
Not yet tested if they are the goal

21
Q

What are visited nodes (closed nodes)

A

Have been processed
Tested if they match the goal

22
Q

What are undiscovered nodes

A

Nodes that have not yet been discovered

23
Q

Search techniques evaluation 4 criteria

A

Completeness - guaranteed to find a solution if one exists
Time complexity - how long does it take to find a solution
Space complexity - how much memory is required to perform the search
Optimality - does it find the optimal solution (one or all)

24
Q

Depth first search - method

A

Expand root node first
Explore one branch before exploring another branch
Queuing function - adds nodes at the front of the queue

25
Uniform Cost Search - implementation
Total cost of the path from the root to node Always remove the smallest node first Finds the cheapest solution