Discrete Structures Test 3

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/96

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

97 Terms

1
New cards
<p>Select the set that corresponds to the relation given in the matrix&nbsp; below. Rows of the matrix are numbered 1 through 4 from top to bottom and columns are numbered 1 through 4 from left to right.</p>

Select the set that corresponds to the relation given in the matrix  below. Rows of the matrix are numbered 1 through 4 from top to bottom and columns are numbered 1 through 4 from left to right.

{ (1, 2), (2, 2), (2, 4), (3, 3) }

2
New cards
<p>A relation R is given in the matrix below. Rows of the matrix are numbered 1 through 4 from top to bottom and columns are numbered 1 through 4 from left to right. Select the expression that is false.</p>

A relation R is given in the matrix below. Rows of the matrix are numbered 1 through 4 from top to bottom and columns are numbered 1 through 4 from left to right. Select the expression that is false.

4R3

3
New cards

The domain of a relation R is the set of real numbers. x is related to under relation R if x² = y. Select the description that accurately describes relation R.

Anti-symmetric

4
New cards

A is a finite non-empty set. The domain for relation R is the power set of A. (Recall that the power set of A is the set of all subsets of A.) For X ⊆ A and Y ⊆ A, X is related to Y if X and Y have the same cardinality (i.e.,|X|=|Y|). Select the description that accurately describes relation R.

Symmetric and Reflexive

5
New cards
<p>Graph G is defined by the arrow diagram below.</p><p></p><p style="text-align: left">Select the statement about G that is false.</p>

Graph G is defined by the arrow diagram below.

Select the statement about G that is false.

G has a circuit length of 5

6
New cards
<p>Graph G is defined by the arrow diagram below.</p><p></p><p style="text-align: left">What is the out-degree of vertex 2?</p>

Graph G is defined by the arrow diagram below.

What is the out-degree of vertex 2?

3

7
New cards
<p>S and T are binary relations on the set {a, b, c, d} and are defined by the arrow diagrams below:</p><p>Select the pair that is in S * T.</p>

S and T are binary relations on the set {a, b, c, d} and are defined by the arrow diagrams below:

Select the pair that is in S * T.

(2,4)

8
New cards

2) S and T are binary relations on the set {a, b, c, d} and are defined as follows:

S = { (a, b), (a, c), (b, d), (d, c) }

T = { (b, b), (c, a), (c, d), (a, d) }

Select the set corresponding to T * S.

{ (a, a), (a, b), (a, d), (d, a), (d, d) }

9
New cards
<p><span>The figure below shows a directed graph G:</span></p><p></p><p><span>Which edge is not in G<sup>3</sup>?</span></p>

The figure below shows a directed graph G:

Which edge is not in G3?

(3,4)

10
New cards
<p><span><strong>The figure below shows a directed graph G:</strong></span></p><p></p><p><span><strong>Which edge is not in G<sup>+</sup>?</strong></span></p><p></p>

The figure below shows a directed graph G:

Which edge is not in G+?

(1,4)

11
New cards
<p>What is the third row of  A * B</p>

What is the third row of A * B

[0 1 1]

12
New cards
<p>A directed graph G has 5&nbsp;vertices, numbered 1 through 5.&nbsp; The 5x5 matrix A is the adjacency matrix for G.&nbsp; The matrices A<sup>2</sup> and A<sup>3&nbsp;</sup>are given below.</p><p></p><p>Which three vertices&nbsp;are part of a circuit of length 3?</p>

A directed graph G has 5 vertices, numbered 1 through 5.  The 5x5 matrix A is the adjacency matrix for G.  The matrices A2 and Aare given below.

Which three vertices are part of a circuit of length 3?

3,4,5

13
New cards
<p>Select the words that correctly completes the following sentence:</p><p> In the graph below vertices A and C _____ .</p>

Select the words that correctly completes the following sentence:

In the graph below vertices A and C _____ .

are adjacent

14
New cards
<p>What is the total degree of the graph below?</p>

What is the total degree of the graph below?

8

15
New cards
<p>Select the correct adjacency representation for the graph given below.</p>

Select the correct adjacency representation for the graph given below.

picture

<p>picture</p>
16
New cards

Suppose that G is a graph with n vertices such that every vertex has degree n/2. If the graph is represented using the adjacency list representation, then what is the worst-case complexity to determine whether two particular vertices are adjacent?

O(n)

17
New cards

Select the statement that is false.

If two graphs G and H have the same degree sequence, then G and H are isomorphic.

18
New cards

Select the graph property that is not preserved under isomorphism. The vertices of the graph are numbered 1 through n, where n is the number of vertices.

Every even numbered vertex has degree 3.

19
New cards
<p>Pick the correct description of the sequence (F,A,G,F,E,D,B,F)</p><p>with respect to the graph pictured below.</p>

Pick the correct description of the sequence (F,A,G,F,E,D,B,F)

with respect to the graph pictured below.

A circuit but not a cycle

20
New cards

The sequence (B,C,D,A,C,E,A)  is a walk in a graph. Select the correct description for the walk.

A trail but not a path

21
New cards
<p>Whic&nbsp;set is a connected component of the graph below?</p>

Whic set is a connected component of the graph below?

{A,H}

22
New cards
<p>What is the vertex connectivity of the graph pictured below?</p>

What is the vertex connectivity of the graph pictured below?

2

23
New cards

Select the graph that does not have an Euler trail.

picture

<p>picture</p>
24
New cards

Select the graph that has an Euler circuit.

picture

<p>picture</p>
25
New cards

Select the graph that does not have a Hamiltonian cycle.

K3,4

26
New cards
<p><span>Select the sequence that is a Hamiltonian cycle for the graph shown below:</span></p>

Select the sequence that is a Hamiltonian cycle for the graph shown below:

⟨d,f,e,c,a,b,d⟩

27
New cards

Select the graph that is not planar.

picture

<p>picture</p>
28
New cards

Select the true statement.

C20 is a planar graph.

29
New cards
<p><span>What is the clique number of the graph shown below?</span></p>

What is the clique number of the graph shown below?

4

30
New cards
<p><span>The greedy algorithm is used to color the graph shown below. The vertices are colored in order: A through G. The colors are ordered as:</span></p><ul><li><p><span>1 - Red</span></p></li><li><p><span>2 - Blue</span></p></li><li><p><span>3 - Green</span></p></li><li><p><span>4 - Yellow</span></p></li><li><p><span>5 - Purple</span></p></li></ul><p><span>What is the coloring assigned to each vertex?</span></p>

The greedy algorithm is used to color the graph shown below. The vertices are colored in order: A through G. The colors are ordered as:

  • 1 - Red

  • 2 - Blue

  • 3 - Green

  • 4 - Yellow

  • 5 - Purple

What is the coloring assigned to each vertex?

A-red, B-red, C-blue, D-green, E-green, F-yellow, G-yellow

31
New cards
<p>Which choice corresponds to the leaves of the tree?</p>

Which choice corresponds to the leaves of the tree?

e, g, b, h, f, m, a, and l

32
New cards
<p>What is the height of the tree shown below?</p>

What is the height of the tree shown below?

4

33
New cards

Which of the following tic-tac-toe configurations has a child that is a winning leaf if X plays next?

picture

<p>picture</p>
34
New cards
<p>Use the prefix tree below to encode the word "piece".</p>

Use the prefix tree below to encode the word "piece".

1110100011110

35
New cards

An acyclic graph has 10 vertices and 8 edges. How many connected components does the graph have? Acyclic is an adjective used to describe a graph in which there is no cycle, or closed path.

2

36
New cards

Select the set of properties such that it is impossible to have a graph that satisfies all the properties in the set. Acyclic is an adjective used to describe a graph in which there is no cycle, or closed path.

Acyclic, 7 vertices, 7 edges

37
New cards
<p>Select the order in which the vertices are visited in a pre-order traversal of the tree shown below.</p>

Select the order in which the vertices are visited in a pre-order traversal of the tree shown below.

e, i, b, h, f, a, c, d, g

38
New cards
<p>Select the order in which the vertices are visited in a post-order traversal of the tree shown below.</p>

Select the order in which the vertices are visited in a post-order traversal of the tree shown below.

b, i, f, h, d, g, c, a, e

39
New cards
<p>The graph below is traversed using depth first search. The search starts at vertex A and vertices are considered in alphabetical order. What are the edges in the depth first search tree?</p>

The graph below is traversed using depth first search. The search starts at vertex A and vertices are considered in alphabetical order. What are the edges in the depth first search tree?

{A, B}, {B, D}, {B, E}, {E, C}, {E, F}

40
New cards
<p>The graph below is traversed using breadth first search. The search starts at vertex A and vertices are considered in alphabetical order. What are the edges in the breadth first search tree?</p>

The graph below is traversed using breadth first search. The search starts at vertex A and vertices are considered in alphabetical order. What are the edges in the breadth first search tree?

{A, B}, {A, C}, {A, E}, {B, F}, {C, D}

41
New cards

Select the expression that is equivalent to x̄

xbar * ybar + xbar

<p>xbar * ybar + xbar</p>
42
New cards

The values for variables x, y, and z are:

x = 1, y = 0, z = 1

Select the Boolean expression that evaluates to 0.

x + y + z all with bar on top

<p>x + y + z all with bar on top</p>
43
New cards
<p>Select the Boolean expression that is equivalent to the function defined in the table blow:</p>

Select the Boolean expression that is equivalent to the function defined in the table blow:

xbar ybar zbar + xbar y zbar + x y z

<p>xbar ybar zbar + xbar y zbar + x y z</p>
44
New cards
<p><span style="font-size: medium">Select the Boolean expression that is equivalent to the function defined in the table below:</span></p>

Select the Boolean expression that is equivalent to the function defined in the table below:

xbar y zbar + xbar y z + x ybar z

<p>xbar y zbar + xbar y z + x ybar z</p>
45
New cards
<p>Select the description that characterizes the Boolean expression:</p><p>x(ybar + z)</p>

Select the description that characterizes the Boolean expression:

x(ybar + z)

CNF, but not DNF

46
New cards
<p>Select the description that characterizes the Boolean expression:</p><p>x ybar z</p>

Select the description that characterizes the Boolean expression:

x ybar z

CNF and DNF

47
New cards
<p>Select the expession&nbsp;that is equivalent to (x + ybar) z</p>

Select the expession that is equivalent to (x + ybar) z

image

<p>image</p>
48
New cards
<p>Select the expression that is equivalent to&nbsp;xy + zbar + ubar</p>

Select the expression that is equivalent to xy + zbar + ubar

picture

<p>picture</p>
49
New cards

Select the Boolean expression that is not satisfiable.

picture

<p>picture</p>
50
New cards

Select the Boolean expression that is not satisfiable.Select the Boolean expression that corresponds to the output of the Boolean circuit below:

picture

<p>picture</p>
51
New cards
<p><span style="font-size: medium">Select the Boolean expression that corresponds to the output of the Boolean circuit below:</span></p>

Select the Boolean expression that corresponds to the output of the Boolean circuit below:

x+ybar + yz

<p>x+ybar + yz</p>
52
New cards
<p>Select the circuit whose output is xy + zbar all under bar</p>

Select the circuit whose output is xy + zbar all under bar

picture

<p>picture</p>
53
New cards
<p>Select the set that corresponds to the relation given in the arrow diagram below:</p>

Select the set that corresponds to the relation given in the arrow diagram below:

{ (1, 3), (1, 4), (2, 3), (2, 2) }

54
New cards
<p>Select the set that corresponds to the relation given in the arrow diagram below:</p>

Select the set that corresponds to the relation given in the arrow diagram below:

{ (A, 3), (B, 1), (B, 4), (D, 3), (D, 4) }

55
New cards
<p><span style="font-size: medium">The domain of a relation&nbsp;</span><span><em>R</em></span><span style="font-size: medium">&nbsp;is the set of real numbers.&nbsp;</span><span><em>x</em></span><span style="font-size: medium">&nbsp;is related&nbsp;to&nbsp;</span><span><em>y&nbsp;</em></span><span style="font-size: medium">under relation&nbsp;</span><span><em>R if&nbsp;|x| &lt;= |y|</em></span><span style="font-size: medium">. Select the description that accurately describes relation&nbsp;</span><span><em>R</em></span><span style="font-size: medium">.</span></p>

The domain of a relation R is the set of real numbers. x is related to under relation R if |x| <= |y|. Select the description that accurately describes relation R.

Neither symmetric nor anti=symmetric

56
New cards

A is a finite non-empty set. The domain for relation R is the power set of A. (Recall that the power set of A is the set of all subsets of A.) For X ⊆ A and Y ⊆ AX is related to Y if is a proper subsets of (i.e., X ⊂ Y). Select the description that accurately describes relation R.

 

Anti-symmetric and Anti-reflexive

57
New cards
<p>Graph G is defined by the arrow diagram below.</p><p>Select the properties that accurately describe the following  </p><p>sequence with respect to graph G:  (2,3,1,3,4)</p>

Graph G is defined by the arrow diagram below.

Select the properties that accurately describe the following

sequence with respect to graph G: (2,3,1,3,4)

 

A trail but not a path

58
New cards
<p>S and T are binary relations on the set {a, b, c, d} and are defined by the arrow diagrams below:</p><p>Select the pair that is not in T * S.</p>

S and T are binary relations on the set {a, b, c, d} and are defined by the arrow diagrams below:

Select the pair that is not in T * S.

(2,4)

59
New cards
<p><span>The figure below shows a directed graph G:</span></p><p></p><p>What is the out-degree of vertex 3&nbsp;in G<sup>+</sup>?</p>

The figure below shows a directed graph G:

What is the out-degree of vertex 3 in G+?

1

60
New cards
<p>A directed graph G has 5&nbsp;vertices, numbered 1 through 5.&nbsp; The 5x5 matrix A is the adjacency matrix for G.&nbsp; The matrix A<sup>2</sup> is given below.</p><p></p><p>Which vertex can be reached by a walk of length 4 that starts at vertex 1?</p>

A directed graph G has 5 vertices, numbered 1 through 5.  The 5x5 matrix A is the adjacency matrix for G.  The matrix A2 is given below.

Which vertex can be reached by a walk of length 4 that starts at vertex 1?

5

61
New cards
<p>A directed graph G has 5&nbsp;vertices, numbered 1 through 5.&nbsp; The 5x5 matrix A is the adjacency matrix for G.&nbsp; The matrices A<sup>2</sup> and A<sup>3&nbsp;</sup>are given below.</p><p></p><p>Which edge is not in the transitive closure of G?</p>

A directed graph G has 5 vertices, numbered 1 through 5.  The 5x5 matrix A is the adjacency matrix for G.  The matrices A2 and Aare given below.

Which edge is not in the transitive closure of G?

(4,5)

62
New cards

Select the correct matrix representation for the undirected graph given below. The rows and columns of the matrix are numbered 1 through 5.

V = {1, 2, 3, 4, 5}

E = { {1, 3}, {2, 3}, {4, 5}, {5, 1}, {5, 2}, {3, 4} }

picture

<p>picture</p>
63
New cards

Suppose that G is a graph with n vertices such that every vertex has degree 4. If the graph is represented using the matrix representation, then what is the worst-case complexity to find all the neighbors of a particular vertex?

O(n)Select the graph that is isomorphic to the graph pictured below.

64
New cards
<p>Select the graph that is isomorphic to the graph pictured below.</p>

Select the graph that is isomorphic to the graph pictured below.

V = {1, 2, 3, 4, 5}

E = { {2, 4}, {2, 3}, {2, 5}, {1, 5}, {1, 3}, {3, 5} }

65
New cards
<p>What is the length of the walk (B,D,G,E,D,B)&nbsp;in the graph below?</p>

What is the length of the walk (B,D,G,E,D,B) in the graph below?

5

66
New cards

The degree sequence of a graph is a list of the degrees of all of the v vertices in non-increasing order. The degree sequence for four different graphs are given below. Each graph is guaranteed to be connected. Select The degree sequence corresponding to the graph that has an Euler circuit.

2, 2, 2, 4, 4, 4, 4

67
New cards

Select the graph that has an Euler trail.

K2,3

68
New cards

Which graph does not have a Hamiltonian path?

image

<p>image</p>
69
New cards

A planar graph G has 7 vertices. One of the vertices has degree 4, two vertices have degree 3, and four vertices have degree 2. How many regions does G have?

4

70
New cards
<p><span>What is the chromatic number of the graph shown below?</span></p>

What is the chromatic number of the graph shown below?

3

71
New cards
<p>Which choice corresponds to the level 2 vertices</p>

Which choice corresponds to the level 2 vertices

e, d, m, a, and l

72
New cards

What is the height of a full game tree for tic-tac-toe in which the root is an empty tic-tac-toe board?

9

73
New cards

A complete graph with 6 vertices is traversed using breadth first search. The vertices are labeled A through F. The search starts at vertex A and vertices are considered in alphabetical order. What is the resulting BFS tree?

picture

<p>picture</p>
74
New cards

Select the expression that is equivalient to x+y.

y + x ybar

<p>y + x ybar</p>
75
New cards
<p>Select the Boolean expression that is equivalent to the function defined in the table blow:</p>

Select the Boolean expression that is equivalent to the function defined in the table blow:

x ybar zbar + xyz

<p>x ybar zbar + xyz</p>
76
New cards
<p>Select the description that characterizes the Boolean expression: x + ybar + z</p>

Select the description that characterizes the Boolean expression: x + ybar + z

CNF and DNF

77
New cards
<p>Select the description that characterizes the Boolean expression:</p>

Select the description that characterizes the Boolean expression:

Neither CNF nor DNF

78
New cards
<p>Select the expression that is equivalent to&nbsp;xy + z’ + u’</p>

Select the expression that is equivalent to xy + z’ + u’

picture

<p>picture</p>
79
New cards
<p>Select the Boolean expression that corresponds to the output of the Boolean circuit below:</p>

Select the Boolean expression that corresponds to the output of the Boolean circuit below:

x’y’ + y’z

<p>x’y’ + y’z</p>
80
New cards

S and T are relations on the real numbers R and are defined as follows:

S={(x,y)|x<y}

T={(x,y)|x>y}

What is T * S?

RxR (all pairs of real numbers

81
New cards

What is the total degree of the graph K5?

20

82
New cards
<p>Select the function f that is an isomorphism from G to G'.</p>

Select the function f that is an isomorphism from G to G'.

f(a) = 3, f(b) = 5, f(c) = 2, f(d) = 4, f(e) = 1

83
New cards
<p>Select the sequence that is a cycle in the graph below.</p>

Select the sequence that is a cycle in the graph below.

(B,D,G,E,F,B)

84
New cards

What is the vertex connectivity of K3,5 ?

3

85
New cards

Select the correct statement

If an undirected graph G is 4-regular, then G must have an Euler circuit.

86
New cards

Select the true statement.

If every vertex in the graph has d or fewer neighbors, then the chromatic number must be less than or equal to d+1.

87
New cards
<p>Use the prefix tree below to decode 10110011110.</p>

Use the prefix tree below to decode 10110011110.

rice

88
New cards

A complete graph with 6 vertices is traversed using depth first search. The vertices are labeled A through F. The search starts at vertex A and vertices are considered in alphabetical order. What is the resulting DFS tree?

picture

<p>picture</p>
89
New cards

Select the expression that is equivalient to x+y.

y + x y’

<p>y + x y’</p>
90
New cards

The values for variables x, y, and z are:

x = 0, y = 1, z = 1

Select the Boolean expression that evaluates to 1.

(z + x)’ + yx’

<p>(z + x)’ + yx’</p>
91
New cards
<p>Select the description that characterizes the Boolean expression:<br>xy’ + z</p>

Select the description that characterizes the Boolean expression:
xy’ + z

DNF, but not CNF

92
New cards
<p>Select the description that characterizes the Boolean expression:</p><p>(x + y + z’) (zy)’</p>

Select the description that characterizes the Boolean expression:

(x + y + z’) (zy)’

Neither CNF nor DNF

93
New cards
<p><span>The figure below shows a directed graph G:</span></p><p><span>What is the out-degree of vertex 2 in G<sup>2</sup>?</span></p>

The figure below shows a directed graph G:

What is the out-degree of vertex 2 in G2?

3

94
New cards

Select the graph that is not regular.

picture

<p>picture</p>
95
New cards
<p><span>What is the chromatic number of the graph shown below?</span></p>

What is the chromatic number of the graph shown below?

3

96
New cards
<p>Which choice corresponds to the descendants of vertex d?</p>

Which choice corresponds to the descendants of vertex d?

g,b,c, and h

97
New cards

Select the expression that is equivalient to x+y.

y + x y’

<p>y + x y’</p>