Font size
Worksheets2.3.1 Graph Traversal & Path Finding Algorithms
Total questions: 20
Worksheet time: 14mins
What supporting data structure is used for traversing a graph based on the depth-first traversal technique?
Stack
Queue
Circular Queue
2D Array
What supporting data structure is used for traversing a graph based on the breadth-first traversal technique?
Stack
Queue
Circular Queue
2D Array
Depth-first traversal is equivalent to which of the following traversal of trees?
Pre-order
Post-order
In-order
An approach to problem-solving in which different sequences are considered until the best suitable solution is found is called
Traversal
Heuristics
Backtracking
Data Mining
If visitedNodes = [A], what is the value of visitedNodes in the next step?
visitedNodes = [B]
visitedNodes = [B, C]
visitedNodes = [B, C, D]
visitedNodes = [A, B]
If node C has been visited in the current step, what is the value of visitedNodes?
Select All That Apply.
visitedNodes = [A, B, E, I, C]
visitedNodes = [A, B, E, I, F, C]
visitedNodes = [A, B, E, I, F, J, G, C]
visitedNodes = [A, B, E, I, F, J, D, C]
If node D is visited in the current step, what is the value of the supporting data structure?
[A]
[A, B, C]
[A, B, C, D]
[D, B, C, A]
Node A is visited in the current step and nodelist = [A]. What is the value of supporting data structure in the next step?
[B, D]
[B]
[D]
[B, C, D]
Node D is added to the list of nodelist in the current step. Assuming that D’s neighbours are also added, what is the value of supporting data structure?
[B, C]
[E, F, G]
[G, F, E]
[A, B, C, D]
What is the order of nodes visited for depth-first traversal of this tree?
ABCDEFG
ABECFDG
ABCEFDG
ABECFGC
When a program theoretically can be solved, but if they take potentially millions of years to physically solve, they are classed as _______.
Insoluble
Computable
Tractable
Incomputable
When a problem can be solved with an algorithm which has a polynomial time complexity or better (eg, O(n), O(n^2), O(n^k) ).
Insoluble
Computable
Tractable
Intractable
When a problem does not have a polynomial time solution – may have a theoretical solution but would be impossible to solve the problem within a reasonable time frame (eg, O(2^n), O(n!) ).
Incomputable
Computable
Tractable
Intractable
A problem is defined as being ________ if there is an algorithm that can solve every instance of it in a finite number of steps.
Insoluble
Computable
Tractable
Intractable
What is the order of nodes visited for breadth-first traversal of this tree?
ABCDEFG
ABECFDG
ABCEFDG
ABECFGC
Optimisation algorithms are designed to find the (a) path from a start node to any other node
Select all correct applications of a shortest-path algorithm
Navigation
NPC control in gaming
Sending data packets
Financial investment choices
AI neural network training
Which type of queue is used in Dijkstra's Algorithm?
Priority
Circular
Linear
In Dijkstra's algorithm, before looping through the nodes, the value for the starting node is set to 0
True
False
In Dijkstra's algorithm, before looping through the nodes, the value for every node other than the starting node is set to 0
True
False
