Explore tens of thousands of sets crafted by our community.
Discrete Structures
12
Flashcards
0/12
Lattices
A lattice is a partially ordered set (poset) in which any two elements have a unique supremum (the elements' least upper bound; called their join) and an infimum (greatest lower bound; called their meet).
Combinations
A combination is a selection of items from a collection, such that the order of selection does not matter. Given elements and selecting at a time, the number of combinations is .
Algorithms
An algorithm is a finite sequence of well-defined instructions, typically used to solve a class of problems or perform a computation. Properties include runtime complexity and space complexity.
Graphs
A graph is an ordered pair where is a set of vertices and is a set of edges, which are 2-element subsets of . Properties include connectivity, cycles, and possibly directed or weighted edges.
Binary Trees
A binary tree is a tree in which each node has at most two children, which are referred to as the left child and the right child. Properties include height, balance, and it is the basis for binary search trees.
Matrices
A matrix is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns. Properties include determinant, rank, and can represent systems of linear equations.
Sets
A set is a well-defined collection of distinct objects. Set properties include cardinality, subsets, intersections, unions, and complements.
Permutations
A permutation is an arrangement of all or part of a set of objects, with regard to the order of the arrangement. For set size , there are possible permutations.
Recursion
Recursion is a method where the solution to a problem depends on solutions to smaller instances of the same problem. A recursive function calls itself with a smaller input.
Trees
A tree is a connected graph with no cycles. Properties include having exactly edges for vertices, and any two vertices are connected by exactly one path.
Functions
A function from a set to a set assigns each element of to exactly one element of . Properties include being one-to-one (injective), onto (surjective), or both (bijective).
Relations
A relation between two sets is a collection of ordered pairs containing one object from each set. Properties include reflexive, symmetric, transitive, and equivalence relations.
© Hypatia.Tech. 2024 All rights reserved.