Discrete Maths Flashcards

(126 cards)

1
Q

Natural numbers

A

Counting numbers
e.g. 0,1,2,3,4,5,…
Denoted by ‘N’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Prime numbers

A

A natural number is prime if it has exactly two distinct factors. Itself, and 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Integers

A

Whole numbers. All natural numbers as well as negatives.
e.g. …,-3,-2,-1,0,1,2,3,…
Denoted by ‘Z’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Rational numbers

A

Numbers which can be expressed as a decimal fraction.
e.g. 1/2, 3/4, 1/4… - Not pi, 2^0.5
Denoted by ‘Q’ (quotient)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Irrational numbers

A

Opposite of rational, can’t be expresseed as decimal fraction.
e.g. pi, 2^0.5 (root 2)…

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Real numbers

A

Numbers which are not imaginary (All numbers we would use to quantify)
Denoted by ‘R’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Set, members and elements

A

A set is defined in terms of its members. It is the result of considering certain elements together (e.g. set of natural numbers). An element can be any entity of any kind

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The set of odd numbers less than 10

A

1,3,5,7,9

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does ‘x ∈ A’ mean?

A

The element x is a member of the set A

∈ with a diagonal line through it means ‘is not a member of’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Equality of sets

A

When 2 sets have the exact same elements.
P: The set of odd numbers between 2 and 8
Q: The set of prime factors of 105
For both, the elements are 3,5,7, hence P=Q.
The exact definition is:
‘X = Y ’ means that, for every x, x ∈ X if and only if x ∈ Y
In other words, two sets are equal so long as every element is either a member of both of them
or a member of neither of them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The null set

A

A set with no members,
e.g. P = The set of unicorns in the London zoo.
Q = The set of prime numbers between 114 and 126.
P=Q so there is only one set with no members, the null set.
Denoted by ‘∅’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Subsets

A

The set of prime numbers between 10 and 100 is part of the set of odd numbers between 10 and 100. A part of a set in this sence is called a ‘subset’.
‘X ⊆ Y ’ means that X is a subset of Y
The exact definition is:
‘X ⊆ Y ’ means that for any element x, if x ∈ X then x ∈ Y .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Proper subsets

A

The subsets of a set include the set itself (X ⊆ X), but if we have a subset not equal to the set itself, it is a proper subset, e.g. X ⊂ Y
‘X ⊂ Y ’ means that X ⊆ Y and X != Y
This means that ‘X ⊆ Y ’ is equivalent to ‘X ⊂ Y or X = Y ’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Defining sets

A

We use the template {x | . . . } to denote the set of all elements x such that . . .
For example, the set of odd numbers between 10 and 20 would be represented as
{x | x is odd and 10 < x < 20}
Alternatively you could just write {11,13,15,17,19}
{x | x ∈ S and x has φ} = {x ∈ S | x has φ}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Intersection

A

X ∩ Y = {x | x ∈ X and x ∈ Y }
Elements which are members of both listed sets are in the intersection (∩) of the 2.
{2, 4, 6, 8, 10} ∩ {2, 3, 4, 5, 6} = {2, 4, 6}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Rules from intersection definition

  1. X ∩ Y ⊆ …
  2. X ⊆ Y if and only if X ∩ Y = …
  3. X ∩ ∅ = …
  4. X ∩ X = …
  5. X ∩ Y = Y ∩ … (i.e., ∩ is a commutative operation)
  6. X ∩ (Y ∩ Z) = (X ∩ Y ) ∩ … (i.e., ∩ is an associative operation)
A
  1. X ∩ Y ⊆ X
  2. X ⊆ Y if and only if X ∩ Y = X.
  3. X ∩ ∅ = ∅.
  4. X ∩ X = X
  5. X ∩ Y = Y ∩ X (i.e., ∩ is a commutative operation)
  6. X ∩ (Y ∩ Z) = (X ∩ Y ) ∩ Z (i.e., ∩ is an associative operation)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Union

A

Any element of either set.
X ∪ Y = {x | x ∈ X or x ∈ Y }
{2, 4, 6, 8, 10} ∪ {2, 3, 4, 5, 6} = {2, 3, 4, 5, 6, 8, 10}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

More the 2 sets - format

A

B = A1 ∩ A2 ∩ A3 ∩ A4 ∩ A5

or B = ^5 ∩ i = 1 Ai

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Disjoint sets

A

Disjoint sets have no intersection (mutually exclusive)

X and Y are disjoint if and only if X ∩ Y = ∅.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Pairwise disjoint

A

Any 2 of 3+ sets are disjoint
X ∩ Y = X ∩ Z = Y ∩ Z = ∅
If 2 of the sets are not disjoint, the sets are not pairwise disjoint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Union and intersection can be used together. Answer card has example

A

‘So long as the next card drawn is either a king or an ace, and also either a club or a diamond,
then I shall win.’ In other words, I shall win if the next card is in the set
(K ∪ A) ∩ (C ∪ D)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Distributive laws

A

Like multiplying out brackets
X ∩ (Y ∪ Z) = (X ∩ Y ) ∪ (X ∩ Z)
X ∪ (Y ∩ Z) = (X ∪ Y ) ∩ (X ∪ Z)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Set difference

A

D = {x | x drives a car}
L = {x | x has a valid licence}
To find law breakers we want members of set D who are not members off set L, and this is denoted D \ L
X \ Y = {x | x ∈ X and x /∈ Y }
{2, 4, 6, 8, 10} \ {2, 3, 4, 5, 6} = {8, 10}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Proofs from definition of difference

A
  1. X \ Y ⊆ X
  2. (X \ Y ) ∩ Y = ∅
  3. X \ Y = ∅ if and only if X ⊆ Y
  4. X \ (Y ∩ Z) = (X \ Y ) ∪ (X \ Z)
  5. X \ (Y ∪ Z) = (X \ Y ) ∩ (X \ Z)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Power set
All the subsets of a set e.g. The power set of {1, 2, 3} is the set {∅, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}} Definition : ℘(X) = {Y | Y ⊆ X} ‘Y ∈ ℘(X)’ = ‘Y ⊆ X’.
26
Cardinality of a set
The cardinality of a set is the number of elements it contains. |{1, 3, 5, 6, 8, 12, 15, 18}| = 8
27
Singleton Set
A set with a cardinality of 1
28
Finite and infinite sets - difference
For any finite set X, if Y ⊂ X, then |Y | < |X|, 'the whole is greater than any of its parts' Not true for infinite sets
29
Power of infinite sets
|℘(X)| > |X|
30
Strings
Given a set X, a string over X is a finite sequence of elements each of which is a member of X. Alph = {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z},
31
Empty string
Unique string of length 0, denoted by 'Λ' | |Λ| = 0
32
String-set
The set of all strings over X is called the string-set of X, and is denoted 'X*'. So long as X contains at least one member, X* will be infinite {a}* = {Λ, a, aa, aaa, aaaa, aaaaa, aaaaaa, aaaaaaa, . . .} a^0 = Λ, a^1 = a, {a}* = {a^n | n ∈ N}.
33
{0, 1}* =
{0, 1}∗ = {Λ, 0, 1, 00, 01, 10, 11, 000, 001, 010, 011, 100, 101, 110, 111, 0000, . . .}
34
X^+ =
X^+ = X* \ {Λ}. (Alph^+) The set without the Λ X∗ = X+ ∪ {Λ}
35
What is a function
Mapping from one set to another. 1 |→ 1 3 |→ 9 6.3 |→ 39.69
36
Function - Domain
Inputs! (set of possible inputs) f : D → C
37
Function - Codomain
Outputs! (set of possible outputs) f : D → C
38
Square function acting on natural number inputs to produce natural number outputs
square : R → R
39
Notation for functions that take 2 inputs such as 'add'
add : R × R → R Combine the two inputs into a single input. The set of ordered pairs of elements from the set S is the Cartesian product S × S. Thus for addition on the real numbers the domain is the Cartesian product R × R
40
Functions can have wider, non arithmetical application, e.g
capital : Countries → Cities France |→ Paris Italy |→ Rome ...
41
f : X → Y vs f : x |→ y
``` f : X → Y means that f is a function mapping elements of X (the domain) to elements of Y (the codomain). f : x |→ y means that the function f maps the element x to the element y. In this case we can write y = f(x). and y is called the image of x under the function f. We also say that f(x) is the value of f for the argument x. ```
42
Linear function f : R → R | - form
f(x) = ax + b
43
Quadratic functions - form
f(x) = ax2 + bx + c
44
Polynomial functions - form
f(x) = a0 + a1x + a2x^2 + a3x^3 + · · · + anx^n
45
Exponential functions - form
f(x) = ab^x
46
Logarithmic functions - form
f(x) = logb x if and only if x = b^f(x)
47
Injection
One to one function. Only one A per B The function f : A → B is an injection if and only if, for all x, y ∈ A, if f(x) = f(y) then x = y: ∀x ∈ A ∀y ∈ A (f(x) = f(y) → x = y)
48
Surjection
Onto function. Range = Codomain No B left out (every output possible). A function f : A → B is a surjection if and only if every element of B is the image under the function of some element of A, i.e., for every y ∈ B there exists an element x ∈ A such that y = f(x): ∀y ∈ B ∃x ∈ A (y = f(x))
49
Bijection
A bijective function is both surjective (onto), and injective (one-to-one). One A per B and no B left out Both sets A and B must have the same cardinality
50
Functional composition
Given functions g : A → B and f : C → D, where B ⊆ C, the composition of f and g is the function f ◦ g : A → D defined by the rule: (f ◦ g)(x) = f(g(x)) for every x ∈ A. If f and g are both injections then so is f ◦ g.
51
Identity function, i
``` Maps each element onto itself ∀x ∈ A i(x) = x. 1x = x = x1 i ◦ f = f = f ◦ i The identity function on a set X is the function iX : X → X ```
52
Inverse function
The inverse of an injective function f : X → Y is the function f^-1 : Y → X
53
5 proofs from an injection f : A → B, with its inverse f^-1 : B → A
1. f^−1 is injective, and (f^−1)^−1 = f. 2. f ◦ f^−1 is the identity function on the range of f. 3. f^−1 ◦ f is the identity function on the domain of definition of f. 4. f is well-defined (has a value for each element in its domain) if and only if f^−1 is surjective. 5. f is surjective if and only if f^ −1 is well-defined.
54
Binary relations
Relations between pairs of elements. e.g. 'brother' and 'sister'. John and Mary have three children, Anne, Barbara, and Charles. , belong to 'brother' relation, while ,, , belong to 'sister' relation.
55
General definition of a relation
If A and B are any sets, a relation between A and B is | any subset of the Cartesian product A × B.
56
Composite relations
BrotherInLaw = (Brother ◦ Husband) ∪ (Brother ◦ Wife) ∪ (Husband ◦ Sister) The composition of two relations R and S is the relation: R ◦ S = {hx, yi | ∃z(xRz ∧ zSy)}
57
Types of relation
The relation R ⊆ A × B is • one-to-one (injective) if for each A there is at most one B and for each y ∈ B there is at most one x ∈ A • one-to-many if for each B there is at most one A, but for at least one A there are two or more y ∈ B • many-to-one if for each A there is at most one B, but for at least one B there are two or more A • many-to-many if for at least one A there are two or more B, and for at least one B there are two or more A
58
Transitivity
A relation R ∈ A2 is transitive if and only if, whenever xRy and yRz, then also xRz: ∀x, y, z ∈ A (xRy ∧ yRz → xRz) > is transitive. 9>5 and 5>3 so 9>3.
59
Intransitive
Not transitive for at least one set of elements
60
Antitransitive
Not transitive for any set of elements
61
Symmetry
A relation R ⊆ A2 is symmetric if whevever xRy then also yRx: ∀x, y ∈ A (xRy → yRx)
62
Asymmetric
Not symmetric for any elements. 'brother' is not symetric, as Jordan's brother is Jack, but Jordan could be Jack's sister. However it is not asymmetric as Jordan could actually be Jack's brother A relation R ⊆ A^2 is asymmetric if whevever xRy then it is not the case that yRx: ∀x, y ∈ A (xRy → ¬yRx).
63
Antisymmetric
A relation is antisymmetric if the only case in which xRy and yRx is when x = y. e,g, factor - If x is a factor of y and y is a factor of x then x and y must be the same number. A relation R ⊆ A2 is antisymmetric if whenever both xRy and yRx then x = y: ∀x, y ∈ A (xRy ∧ yRx → x = y).
64
Reflexivity
A reflexive relation is one in which each element is related to itself: A relation R ⊆ A^2 is reflexive if: ∀x ∈ A (xRx) Factor is reflexive since every number is a factor of itself
65
Irreflexive
An irreflexive relation is one in which no element is related to itself: A relation R ⊆ A^2 is irreflexive if: ∀x ∈ A (¬xRx). > is irreflexive, if x > y then definitely not y > x.
66
Equivalence Relations
An equivalence relation is a relation that is reflexive, symmetric, and transitive, e.g. 1. xRx 2. If xRy then yRx 3. If xRy and yRz then xRz On any set of sets, the relation ‘has the same cardinality as’ is an equivalence relation. If R ⊆ A^2 is an equivalence relation, and a ∈ A, we write [[a]]R = {x ∈ A | aRx}.
67
Equivalence | class
The set [[a]]R | The R is subscript
68
What does x ≺ y mean
‘x comes before y’
69
Order Relations - a strict total/linear order
This is the kind of order defined by a relation which is transitive, irreflexive, and linear 1. If x ≺ y and y ≺ z then x ≺ z. 2. It is not the case that x ≺ x for any element x. 3. For any elements x, y, one of x ≺ y, y ≺ x, and x = y must hold.
70
Order Relations - a strict partial order
Any transitive, asymmetric relation on a set S, including total relations.
71
``` Given a set S with a relation ≺ on S • (S, ≺) is a strict partial order if... • (S, ≺) is a weak partial order if.. • (S, ≺) is a strict total order if... • (S, ≺) is a weak total order if... ```
• (S, ≺) is ≺ is transitive and irreflexive (and therefore also asymmetric); • (S, ≺) is a weak partial order if ≺ is transitive, reflexive, and antisymmetric; • (S, ≺) is a strict total order if ≺ is transitive, irreflexive, and linear, i.e., ∀x, y ∈ S (x ≺ y ∨ y ≺ x ∨ x = y); • (S, ≺) is a weak total order if ≺ is transitive, reflexive, antisymmetric, and linear.
72
Conjunction (Logic)
``` Conjunction means 'and'. Denoted by '∧'. A ∧ B mean A and B. This is only true if A is true and B is true. Is assaciative: (A ∧ B) ∧ C = A ∧ (B ∧ C): ```
73
'~=' symbol (the wiggle is above the lines)
This symbol means 2 formula are logically equivalent. A ∧ B ~= B ∧ A (commutative) (A ∧ B) ∧ C ~= A ∧ (B ∧ C) A ∧ A ~= A (associative)
74
Disjunction
Disjunction means 'or'. Denoted by '∨'. A ∨ B mean A or B. This is true if A is true or if B is true, or both. A ∨ A ~= A
75
1) A ∧ (B ∨ C) ~= | 2) A ∨ (B ∧ C) ~=
1) A ∧ (B ∨ C) ~= (A ∧ B) ∨ (A ∧ C) | 2) A ∨ (B ∧ C) ~= (A ∨ B) ∧ (A ∨ C)
76
Negation
Negation means 'not'. Denoted by '¬'. ¬A is true iff A is false.
77
De Morgans Law
Break the line + change the sign | In this case there is no line, but separate brackets with not symbol and flip the V sign.
78
Tautologies | And the Law of the Excluded middle
A tautology is a logical formula which is true in all circumstances, i.e., a logically true formula. e.g. A ∨ ¬A This is the Law of the Excluded middle
79
Contradictions
A contradiction is a logical formula which can never be true, i.e., a logically false formula. e.g. A ∧ ¬A
80
Condtionals
Conditional means 'if...then...' Only false if A is true and B is false - If it’s snowing then it’s cold. Logical notation: A → B A → B is false iff A is true and B is false In A → B, A is the antecedent and B is the consequent. A → B ~= ¬A ∨ B Prove using proof by contradiction - assume the opposite is true then disprove.
81
Biconditionals
Biconditional means 'if and only if (iff)' Logical notation: A ↔ B A ↔ B is true iff A and B have the same truth value Basically opposite of XOR gate. A ↔ B ~= (A → B) ∧ (B → A) To prove this, we must prove both “If A then B” and “If B then A”.
82
Inference and Validity
``` An inference (or argument) consists of a set of statements called premises together with a statement called the conclusion. If the premises guarantee the conclusion AND the premises are true, then the inference is valid, otherwise it is invalid. ``` Can prove validity with truth tables.
83
If it is sunny we shall go to the seaside. If we go to the seaside we shall swim. Therefore, if it is sunny we shall swim. Valid or invalid?
This is a valid inference
84
If you annoy that wasp, it will sting you. If you keep quite still, you will not annoy that wasp. Therefore, if you keep quite still, that wasp will not sting you. Valid or invalid?
This is an invalid inference
85
∀ symbol
This symbol is for universal statements. It means 'for every'. All cows eat grass For every x, if x is a cow then x eats grass. ∀x(C(x) → G(x)) Can be disproved with a single counterexample
86
∃ symbol
This symbol means 'for some' or 'there exists'. Some mammals fly For some x, x is a mammal and x flies. ∃x(M(x) ∧ F(x)) Can be proved with a single example
87
What is 1,1,2,3,5,8,13,21,34,59,....
The Fibonacci sequence - it appears in many natural contexts e.g. populations and spirals
88
The golden ratio
The ratio of successive terms of a sequence gives a new sequence, e.g. f2/f1, f3/f2, f4/f3, ... Do this for the Fibonacci sequence and eventually the sequence converges to (1 + √5)/2 - the golden ratio
89
Ackermann Numbers - Power Towers
A power tower extends the idea of a power m↑n = m^n = m*m*m...*m (n times) m↑↑n = m↑m↑m...↑m (n times) m↑↑↑n = m↑↑m↑↑m...↑↑m (n times) These numbers give a sequence - 1↑1, 2↑↑2, 3↑↑↑3, ...
90
Approximation Sequences
By Taylor’s theorem, near x = 0, a function can be approximated by polynomials of the form: fn(x) = nΣk=0 Tk(x) T0 = F(0), T1 = F'(0)x, T2 = (F''(0)x^2)/2 (Just binomial expansion formula really) F^k = (d^kF)/(dx^k) (Think double differentiation) This is an exponential function
91
Arithmetic sequence
A sequence with a common difference between each term. 1,4,7,10,13,... d = 3 (any term subtract the term before)
92
Arithmetic series
An arithmetic series, is the sum of an arithmetic progression.
93
Geometric sequence
A sequence with a common ratio between each term. 1,2,4,8,16,32,... r = 2 (any term divided by the term before)
94
Geometric series
A geometric series is the sum of a geometric progression.
95
Sum of a geometric series
``` Sn = (a(1-r^n)) / 1-r S∞ = a / 1-r for |r| < 1 ```
96
Sum of an arithmetic series
Sn = 1/2 n(a + l) | = 1/2 n[2a + (n – 1)d]
97
Experiment in probability
I An experiment is a process where one (and only one) of a number of possible outcomes (elementary events) happens. e.g. cut a pack of cards and note what the suit is, or measure the height of a randomly-selected student We must be able to specify precisely what outcomes can occur.
98
Sample space of an experiment
The sample space of an experiment is the collection of all possible outcomes. e.g. for cards suit noting - {♦, ♥, ♠, ♣}
99
What is an event
An event is a collection of the possible outcomes in the sample space. An event occurs if and only if one of the outcomes which make up the event occurs. e.g. for cards and suit noting - the suit is red (outcomes ‘heart’ or ‘diamond’)
100
Experiments and set theory
Outcome is like element of a set Sample space is like universal set (S) of elements relating to experiment Event is like subset of S Empty/null set (∅) is like no outcomes happening i.e. the ‘impossible event’. ∪ and ∩ can be used
101
The complement A' of an event, A, is the event that...
The complement, A' of an event, A, is the event ‘that A | does not occur’
102
Complementary events
Events that partition the sample space.
103
Compound experiments
Experiments performed in a number of | stages in sequence (e.g. throwing a die three times)
104
Multiplication principle
The multiplication principle states that in an r stage compound experiment, the total number of outcomes is n1 × n2 × . . . × nr e.g. the number of outcomes in throwing a die 3 times is 6^3. The number of ways in which the birthdays of n people could occur is 365^n
105
Sampling
Selecting one set of objects from another. Sampling with replacement - when an object is selected it is then replaced before the next object is selected; Sampling without replacement - when an object is selected it is not replaced before the next object is selected
106
A permutation of r objects from n
- All possible ways of doing something. - a selection of r objects from n without replacement - the sequence of selection is important. - i.e.: an ordered subset of r of the n objects. - Note: An ordered selection of all n objects is called a permutation of n objects.
107
A combination of r objects from n
- a selection of r objects from n without replacement, - the sequence of selection is unimportant. - i.e. an ’unordered subset’ of r of the n objects. - Note: {a, b} and {b, a} are different permutations of the three letters {a, b, c}, but are the same combination.
108
Number of arrangements of {a,b,c,d}
multiplication principle = 4x3x2x1 = 4! = 24
109
Number of arrangements of 2 of the letters from {a,b,c,d}
multiplication principle = | (4x3x2x1)/(2x1) = 4!/2! = 4x3 = 12
110
For any combination of r objects from n there are how many permutations of r objects from n
For any combination of r objects from n there are r! permutations of r objects from n. This is because there are r! permutations of the r objects in the combination
111
The number of different ways of choosing 6 from 49 (national lottery) is...
(49C6) = 49/1 x 48/2 x 47/3 x 46/4 x 45/5 x 44/6 =13, 983, 816
112
Number of ways of getting exactly 3 lottery numbers
(6C3) x (43C3) = 246,820 So odds = 13,983,816/246,820 = 1:56.7
113
Axiomic approach to probability - 3 Axioms
- Axiom 1: P(A) ≥ 0 for all events A ∈ S - Axiom 2: P(S) = 1 - Axiom 3: P(A ∪ B) = P(A) + P(B) if A and B are mutually exclusive. Similarly, if A1, A2, A3, . . . are mutually exclusive (pairwise disjoint) then P(A1 ∪ A2 ∪ A3 ∪ . . .) = P(A1) + P(A2) + P(A3) + . . .
114
Definition of a graph
A graph is a non-empty set V of nodes, and a set E of edges that connect pairs of nodes
115
Simple, undirected graph
Never 2+ edges between each pair of nodes and no edges from a node to itself
116
Directed graph (Digraph) (With loops)
Same as simple undirected graph but each edge has a direction (arrow), and loops (node to itself or 2 nodes 2 connections) are allowed. If simple then no loops/double edges.
117
Degree of a vertex/node
The number of edges attached to the node | deg(v)
118
Neighbourhood (neighbour set) of a vertex/node
Set of nodes attached to it by edges
119
Tree
An undirected graph with no cycles
120
Rooted tree
A tree where all nodes orient away from a single root node
121
m-ary tree
full m-ary tree if every internal node has exactly m children m=2 is binary tree
122
Planar graph
Can be drawn on a plane without any 2 edges crossing
123
Polyhedral graph
Can be drawn as a polyhedron
124
Face
A face of a connected simple graph is where all paths close upon themselves is a region enclosed by edges. The outside region in a planar graph is considered as one face.
125
Euler's Formula
V-E+F=2
126
Maximum number of edges in a planar graph with V vertices
E = 3V-6 F = 2E/3 -> V-E+2E/3 = 2 -> 3V-3E+2E = 6 ->3V = 6+E -> E = 3V-6