Discrete Structures: Sets, Functions, Number Theory, Graphs, and Trees

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/37

flashcard set

Earn XP

Description and Tags

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.

38 Terms

1
New cards

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 nn vertices has exactly n−1n - 1 edges.

2
New cards

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.

3
New cards

What is a directed tree?

A connected, acyclic, directed graph.

4
New cards

What are the visit orders for Preorder, Inorder, and Postorder tree traversals in binary trees?

Preorder visits Root →\rightarrow Left →\rightarrow Right; Inorder visits Left →\rightarrow Root →\rightarrow Right; Postorder visits Left →\rightarrow Right →\rightarrow Root.

5
New cards

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.

6
New cards
<p>How many spanning trees can be formed from the graph $$G$$ shown in Fig. 8.99?</p>

How many spanning trees can be formed from the graph GG shown in Fig. 8.99?

There are exactly 88 distinct spanning trees, as shown in Fig. 8.100.

7
New cards

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)\sum_{(u,v) \in MST} w(u,v) is minimal among all possible spanning trees.

8
New cards

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|V| - 1 edges are selected.

9
New cards

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.

10
New cards

Who is credited as the creator of set theory?

George Ferdinand Ludwig Philip Cantor, a German mathematician born in Russia.

11
New cards

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}A = \{1, 2, 3\}), while Set-builder notation characterizes elements by stating their qualifying properties (e.g., {x∣P(x)}\{x \mid P(x)\}).

12
New cards

What is a singleton set, and how does ∅\emptyset differ from {∅}\{\emptyset\}?

A singleton set contains exactly one element; ∅\emptyset is the empty set containing 00 elements, whereas {∅}\{\emptyset\} is a singleton set containing one element (the empty set itself).

13
New cards

What does it mean for two sets to be equal versus equivalent?

Two sets are equal (A=BA = 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)n(A) = n(B).

14
New cards

What are the formulas for the number of subsets and proper subsets of a set with nn elements?

The total number of distinct subsets is 2n2^n, and the number of distinct proper subsets is 2n−12^n - 1.

15
New cards

Who introduced the set symbols ∈\in, ∪\cup, and ∩\cap, and in what year?

Italian mathematician Giuseppe Peano in the year 18891889.

16
New cards

What is the symmetric difference of two sets AA and BB?

Denoted by A⊕BA \oplus B, it is the set of elements belonging to AA or BB but not both, defined as A⊕B=(A∪B)−(A∩B)A \oplus B = (A \cup B) - (A \cap B).

17
New cards

What is the power set of a set AA?

The set of all subsets of AA, denoted P(A)\mathcal{P}(A), which includes both the empty set ∅\emptyset and the set AA itself.

18
New cards
<p>Why does the grade assignment shown in the diagram constitute a valid function?</p>

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.

19
New cards

What is the formal definition of an injective (one-to-one) function?

A function ff is one-to-one if and only if for all aa and bb in the domain, f(a)=f(b)f(a) = f(b) implies a=ba = b.

20
New cards

What condition must be satisfied for a function to be surjective (onto)?

Every element bb in the codomain YY must have at least one element aa in the domain XX such that f(a)=bf(a) = b, meaning the range equals the codomain.

21
New cards

When is a function classified as bijective (one-to-one correspondence)?

When it is both injective (one-to-one) and surjective (onto).

22
New cards

What is an into function?

A function in which at least one element of the codomain YY does not have a preimage in the domain XX, meaning the range is a proper subset of the codomain.

23
New cards

What is a many-one function?

A function where two or more distinct elements in domain XX have the same image in codomain YY.

24
New cards

Under what condition is a function f:X→Yf: X \rightarrow Y invertible?

A function is invertible if and only if it is bijective.

25
New cards

Given f(x)=3x−4f(x) = 3x - 4 and g(x)=x+5g(x) = x + 5, what is (f∘g)(x)(f \circ g)(x)?

(f∘g)(x)=3(x+5)−4=3x+15−4=3x+11(f \circ g)(x) = 3(x + 5) - 4 = 3x + 15 - 4 = 3x + 11.

26
New cards

Which historical mathematician famously cited number theory as pure and impractical before its modern applications?

English mathematician G. H. Hardy (1877–1947).

27
New cards

What are the digits and base values of the four common numeral systems in computing?

Decimal (base 1010, digits 0−90-9), Binary (base 22, digits 0,10, 1), Octal (base 88, digits 0−70-7), and Hexadecimal (base 1616, digits 0−90-9 and A−FA-F).

28
New cards

How is decimal 451045_{10} expressed in binary, octal, and hexadecimal?

4510=1011012=558=2D1645_{10} = 101101_2 = 55_8 = 2D_{16}.

29
New cards

How many binary bits correspond to one octal digit and one hexadecimal digit?

One octal digit corresponds to 33 binary bits (23=82^3 = 8), and one hexadecimal digit corresponds to 44 binary bits (24=162^4 = 16), also known as a nibble.

30
New cards

Which historical event and mathematician marked the birth of graph theory?

Leonhard Euler's solution to the Königsberg bridge problem in the year 17361736.

31
New cards

In graph theory, what was the subject historically called in its early stages?

Slum Topology.

32
New cards

What is the difference between the order and the size of a graph G=(V,E)G = (V, E)?

The order is the number of vertices, denoted ∣V∣|V|, while the size is the number of edges, denoted ∣E∣|E|.

33
New cards

What defines a multigraph?

A graph that allows more than one edge (multiple edges) to connect the same pair of vertices.

34
New cards

What is a pseudograph?

A graph having self-loops but no multiple edges.

35
New cards

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.

36
New cards
<p>What is the outdegree of vertex $$v_1$$ in the directed graph shown in Fig. 8.12?</p>

What is the outdegree of vertex v1v_1 in the directed graph shown in Fig. 8.12?

The outdegree of v1v_1 is 22, because exactly two directed edges originate from v1v_1 (edges (v1,v2)(v_1, v_2) and (v1,v4)(v_1, v_4)).

37
New cards
<p>What relationship is represented by the graph $$G$$ and matrix $$A(G)$$ in Fig. 8.35?</p>

What relationship is represented by the graph GG and matrix A(G)A(G) in Fig. 8.35?

An adjacency matrix representation of an undirected graph, where entry aij=1a_{ij} = 1 if an edge connects vertex ii and vertex jj, and 00 otherwise, resulting in a symmetric matrix.

38
New cards

How are matrix entries defined in an incidence matrix for a directed graph?

Entry mij=+1m_{ij} = +1 if edge eje_j leaves vertex viv_i (outgoing), mij=−1m_{ij} = -1 if edge eje_j enters vertex viv_i (incoming), and 00 otherwise.