1/37
Practice flashcards covering Discrete Structures lecture topics including trees, tree traversals, spanning trees, set theory, functions and compositions, number theory and numeral bases, and graph theory definitions and matrix representations.
How is a tree formally defined in graph theory?
A tree is a connected acyclic graph with no cycles, where any two vertices are connected by exactly one path, and a graph with n vertices has exactly n−1 edges.
In tree terminology, what is the distinction between depth and height?
Depth is the length of the path from the root to a specific node, whereas height is the maximum depth of any node in the tree.
What is a directed tree?
A connected, acyclic, directed graph.
What are the visit orders for Preorder, Inorder, and Postorder tree traversals in binary trees?
Preorder visits Root → Left → Right; Inorder visits Left → Root → Right; Postorder visits Left → Right → Root.
How does Breadth-First Traversal (BFT) explore a tree?
Also known as Level-Order Traversal, it visits all nodes level by level from the top down.

How many spanning trees can be formed from the graph G shown in Fig. 8.99?
There are exactly 8 distinct spanning trees, as shown in Fig. 8.100.
What is a Minimum Spanning Tree (MST)?
A spanning tree of a weighted graph where the sum of the edge weights ∑(u,v)∈MSTw(u,v) is minimal among all possible spanning trees.
How does Kruskal's algorithm find a Minimum Spanning Tree?
It sorts all edges in ascending order of weight, greedily picks the smallest edge that does not form a cycle, and repeats until ∣V∣−1 edges are selected.
How does Prim's algorithm construct a Minimum Spanning Tree?
It starts from an initial vertex and greedily selects the minimum-weight edge connecting a vertex in the growing tree to a vertex outside the tree until all vertices are included.
Who is credited as the creator of set theory?
George Ferdinand Ludwig Philip Cantor, a German mathematician born in Russia.
What is the difference between the Roster Method and Set-builder notation?
The Roster Method lists the elements enclosed in braces separated by commas (e.g., A={1,2,3}), while Set-builder notation characterizes elements by stating their qualifying properties (e.g., {x∣P(x)}).
What is a singleton set, and how does ∅ differ from {∅}?
A singleton set contains exactly one element; ∅ is the empty set containing 0 elements, whereas {∅} is a singleton set containing one element (the empty set itself).
What does it mean for two sets to be equal versus equivalent?
Two sets are equal (A=B) if and only if they contain the exact same elements regardless of order or repetition; they are equivalent if they contain the same number of distinct elements, such that n(A)=n(B).
What are the formulas for the number of subsets and proper subsets of a set with n elements?
The total number of distinct subsets is 2n, and the number of distinct proper subsets is 2n−1.
Who introduced the set symbols ∈, ∪, and ∩, and in what year?
Italian mathematician Giuseppe Peano in the year 1889.
What is the symmetric difference of two sets A and B?
Denoted by A⊕B, it is the set of elements belonging to A or B but not both, defined as A⊕B=(A∪B)−(A∩B).
What is the power set of a set A?
The set of all subsets of A, denoted P(A), which includes both the empty set ∅ and the set A itself.

Why does the grade assignment shown in the diagram constitute a valid function?
Every student in the domain is mapped to exactly one letter grade in the codomain.
What is the formal definition of an injective (one-to-one) function?
A function f is one-to-one if and only if for all a and b in the domain, f(a)=f(b) implies a=b.
What condition must be satisfied for a function to be surjective (onto)?
Every element b in the codomain Y must have at least one element a in the domain X such that f(a)=b, meaning the range equals the codomain.
When is a function classified as bijective (one-to-one correspondence)?
When it is both injective (one-to-one) and surjective (onto).
What is an into function?
A function in which at least one element of the codomain Y does not have a preimage in the domain X, meaning the range is a proper subset of the codomain.
What is a many-one function?
A function where two or more distinct elements in domain X have the same image in codomain Y.
Under what condition is a function f:X→Y invertible?
A function is invertible if and only if it is bijective.
Given f(x)=3x−4 and g(x)=x+5, what is (f∘g)(x)?
(f∘g)(x)=3(x+5)−4=3x+15−4=3x+11.
Which historical mathematician famously cited number theory as pure and impractical before its modern applications?
English mathematician G. H. Hardy (1877–1947).
What are the digits and base values of the four common numeral systems in computing?
Decimal (base 10, digits 0−9), Binary (base 2, digits 0,1), Octal (base 8, digits 0−7), and Hexadecimal (base 16, digits 0−9 and A−F).
How is decimal 4510 expressed in binary, octal, and hexadecimal?
4510=1011012=558=2D16.
How many binary bits correspond to one octal digit and one hexadecimal digit?
One octal digit corresponds to 3 binary bits (23=8), and one hexadecimal digit corresponds to 4 binary bits (24=16), also known as a nibble.
Which historical event and mathematician marked the birth of graph theory?
Leonhard Euler's solution to the Königsberg bridge problem in the year 1736.
In graph theory, what was the subject historically called in its early stages?
Slum Topology.
What is the difference between the order and the size of a graph G=(V,E)?
The order is the number of vertices, denoted ∣V∣, while the size is the number of edges, denoted ∣E∣.
What defines a multigraph?
A graph that allows more than one edge (multiple edges) to connect the same pair of vertices.
What is a pseudograph?
A graph having self-loops but no multiple edges.
How are self-loops counted when calculating the degree of a vertex in an undirected graph?
Each self-loop incident on a vertex is counted twice, while every other incident edge is counted once.

What is the outdegree of vertex v1 in the directed graph shown in Fig. 8.12?
The outdegree of v1 is 2, because exactly two directed edges originate from v1 (edges (v1,v2) and (v1,v4)).

What relationship is represented by the graph G and matrix A(G) in Fig. 8.35?
An adjacency matrix representation of an undirected graph, where entry aij=1 if an edge connects vertex i and vertex j, and 0 otherwise, resulting in a symmetric matrix.
How are matrix entries defined in an incidence matrix for a directed graph?
Entry mij=+1 if edge ej leaves vertex vi (outgoing), mij=−1 if edge ej enters vertex vi (incoming), and 0 otherwise.