WorksheetsFinal Exam - IT 2 Discrete Math
Total questions: 50
Worksheet time: 47mins
______ is a discrete structure that represents hierarchical relationships between individual elements or nodes.
Tree
Root
Graph
Vertices
How many total outcomes are there?
Jason can choose 1 pair of pants and one shirt to wear today. Here are his choices. Which tree diagram shows all of the combinations that Jason can choose from?
Use the tree diagram to find the probability of spinning the same number in succession when the spinner is spun 2 times.
1
1/3
1/4
1/2
A _____________ is a tree the vertices of which are assigned unique numbers from 1 to n.
labeled tree
unlabeled tree
indirect tree
direct tree
An _____________ is a tree the vertices of which are not assigned any numbers.
labeled tree
unlabeled tree
indirect tree
direct tree
A ____________ G is a connected acyclic graph with a special node that is called the root of the tree and every edge directly or indirectly originates from the root.
rooted tree
unlabled tree
label tree
graph
_________ is a binary tree which satisfies the following property −
X in left sub-tree of vertex V,Value(X)≤Value(V)V,Value(X)≤Value(V)
Y in right sub-tree of vertex V,Value(Y)≥Value(V)
Binary Search tree
Linked list
Heap
None of the choices
Contain a Loop or cycle is not a tree?
True
False
A ___________ is a (not necessarily connected) simple un-directed graph with no simple circuits.
forest
tree
node
vertices
An ________________ is graph, i.e., a set of objects (called vertices or nodes) that are connected together, where all the edges are bidirectional.
undirected graph
directed graph
forest
tree
A ___________ is graph, i.e., a set of objects (called vertices or nodes) that are connected together, where all the edges are directed from one vertex to another.
directed graph
undirected graph
tree
forest
A subtree of a tree T is a tree S consisting of a node in T and all of its descendants in T. The subtree corresponding to the root node is the entire tree; the subtreecorresponding to any other node is called a proper subtree.
True
False
the height of the tree is ___________.
3
4
5
2
Depth –The depth of a node is the number of edges from the node to the tree's root node.
True
False
Height of node – The height of a node is the number of edges on the longest downward path between that node and a leaf.
True
False
__________________: Every node has at most 2 children
binary rooted tree
complete binary rooted tree
undefined binary rooted tree
operation tree
_________________: Every node has 0 or 2 children
binary rooted tree
complete binary rooted tree
undefined binary rooted tree
operation tree
What is the cost using Nearest Neighbor Algorithm starting with vertex A?
63
58
55
52
An edge that begins and ends at the same vertex.
Multiple edges
Vertices
Loop
Node
In the graph above, which of the following statements is true?
A is adjacent to E
A is not adjacent to D
C is adjacent to D
C is not adjacent to E
In the graph shown, D is an example of a(n) ________ .
Edge
Vertex
Path
Sling
In the graph shown, (A, F) is an example of a(n) ________ .
Edge
Vertex
Path
Sling
Vertices are considered adjacent if ________ .
An edge connects them
There is a path from one vertex to the other
Both vertices are contained in a cycle
The length of the path between them is less than 5
Which of the following is a cycle shown in the graph?
B, F, A, B
A, B, E
A, E, D, A
A, C, B, D, A
Vertices are considered adjacent if ________ .
An edge connects them
There is a path from one vertex to the other
Both vertices are contained in a cycle
The length of the path between them is less than 5
A complete graph is a graph _________ .
where every vertex has a degree >= 1
that has the maximum number of edges connecting vertices
that for any two vertices, the graph has a path
that has at least one edge to every vertex
The number of edges needed in a complete graph with 5 vertices is ________ .
10
15
5
25
What is the length of the path F, A, C, B, D?
3
4
5
6
After completing Dijkstras algorithm to find the shortest path from A to G, we discover the cost of this path is ______ .
4
5
6
7
Is the following graph connected?
Yes
No
State whether you can find a Hamiltonian path, circuit or neither.
Path
Circuit
Neither
Using the following tournament information, construct a directed graph and find a ranking of the participants:
Between A and B, A wins
Between A and C, C wins
Between A and D, D wins
Between B and C, C wins
Between B and D, D wins
Between C and D, C wins
1st place: A, 2nd place: B, 3rd place: C, 4th place: D
1st place: B, 2nd place: A, 3rd place: D, 4th place: C
1st place: C, 2nd place: D, 3rd place: A, 4th place: B
1st place: D, 2nd place: C, 3rd place: B, 4th place: A
