Discrete Math Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/34

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards for review.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

35 Terms

1
New cards

Recursive Algorithm

An algorithm that reduces a problem to an instance of the same problem with smaller input.

2
New cards

Euclidean Algorithm

A method for computing the greatest common divisor of two nonnegative integers a and b with a < b using reduction: gcd(a,b) = gcd(b mod a, a) and the condition gcd(0,b) = b when b > 0.

3
New cards

Merge Sort

Works by iteratively splitting a list into two sublists of equal length until each sublist has one element and each sublist is represented by a balanced binary tree. At each step a pair of sublists is successively merged into a list with the elements in increasing order.

4
New cards

The Product Rule

A procedure that can be broken down into a sequence of two tasks. There are n1 ways to do the first task and n2 ways to do the second task. Then there are n1∙n2 ways to do the procedure.

5
New cards

The Sum Rule

If a task can be done either in one of n1 ways or in one of n2 ways, where none of the set of n1 ways is the same as any of the n2 ways, then there are n1 + n2 ways to do the task.

6
New cards

Subtraction Rule

If a task can be done either in one of n1 ways or in one of n2 ways, then the total number of ways to do the task is n1 + n2 minus the number of ways to do the task that are common to the two different ways.

7
New cards

Division Rule

There are n/d ways to do a task if it can be done using a procedure that can be carried out in n ways, and for every way w, exactly d of the n ways correspond to way w.

8
New cards

Tree Diagrams

A method to solve counting problem, where a branch represents a possible choice and the leaves represent possible outcomes.

9
New cards

The Pigeonhole Principle

If k is a positive integer and k + 1 objects are placed into k boxes, then at least one box contains two or more objects.

10
New cards

The Generalized Pigeonhole Principle

If N objects are placed into k boxes, then there is at least one box containing at least ⌈N/k⌉ objects.

11
New cards

Permutation

An ordered arrangement of a set of distinct objects.

12
New cards

Cartesian product

In set theory, it is the set of all ordered pairs (a, b) where a is in A and b is in B.

13
New cards

Binary Relations

A binary relation R from a set A to a set B is a subset R ⊆ A × B.

14
New cards

Reflexive Relations

R is reflexive if (a,a) ∊ R for every element a ∊ A.

15
New cards

Symmetric Relations

R is symmetric if (b,a) ∊ R whenever (a,b) ∊ R for all a,b ∊ A.

16
New cards

Antisymmetric Relations

A relation R on a set A such that for all a,b ∊ A if (a,b) ∊ R and (b,a) ∊ R, then a = b is called antisymmetric.

17
New cards

Transitive Relations

A relation R on a set A is called transitive if whenever (a,b) ∊ R and (b,c) ∊ R, then (a,c) ∊ R, for all a,b,c ∊ A.

18
New cards

Composition

Suppose R1 is a relation from a set A to a set B and R2 is a relation from B to a set C. Then the composition (or composite) of R2 with R1, is a relation from A to C. if (x,y) is a member of R1 and (y,z) is a member of R2, then (x,z) is a member of R2∘ R1.

19
New cards
<p>Directed graph</p>

Directed graph

A directed graph, or digraph, consists of a set V of vertices (or nodes) together with a set E of ordered pairs of elements of V called edges (or arcs). The vertex a is called the initial vertex of the edge (a,b), and the vertex b is called the terminal vertex of this edge.

20
New cards

Equivalence Relations

A relation on a set A is called an equivalence relation if it is reflexive, symmetric, and transitive.

21
New cards

Equivalence Class

Let R be an equivalence relation on a set A. The set of all elements that are related to an element a of A is called the equivalence class of a.

22
New cards
<p>Partition of Set</p>

Partition of Set

A partition of a set S is a collection of disjoint nonempty subsets of S that have S as their union.

23
New cards
<p>Planar Graph</p>

Planar Graph

A graph that can be drawn on the plane without edge crossings.

24
New cards

Graph Traversal

The process of visiting each vertex in a graph.

25
New cards
<p>Breadth First Search</p>

Breadth First Search

Visit vertices one edge from a given source, two edges from source, etc.

26
New cards
<p>Depth First Search</p>

Depth First Search

As we visit a vertex we try to move to a new adjacent vertex that hasn’t yet been visited, until nowhere else to go, then backtrack.

27
New cards
<p>Topological Sort</p>

Topological Sort

A linear ordering of all its vertices such that if G contains an edge (u, v), then u appears before v in the ordering.

28
New cards

Tree

A connected undirected graph with no simple circuits.

29
New cards

Rooted Tree

A tree in which one vertex has been designated as the root and every edge is directed away from the root.

30
New cards

Forest

A forest is a graph that has no simple circuit, but is not connected. Each of the connected components in a forest is a tree.

31
New cards

Ordered Rooted Tree

Rooted tree where the children of each internal vertex are ordered.

32
New cards

Binary Tree

Rooted tree where each internal vertex has at most two children.

33
New cards

m-ary Tree

A rooted tree is called an m-ary tree if every internal vertex has no more than m children. The tree is called a full m-ary tree if every internal vertex has exactly m children.

34
New cards

Combination

An unordered arrangement of a set of distinct objects.

35
New cards
<p>Graph Coloring</p>

Graph Coloring

An assignment of colors to the vertices of a graph such that no two adjacent vertices share the same color.