Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

Discrete Structures

12

Flashcards

0/12

Still learning
StarStarStarStar

Lattices

StarStarStarStar

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).

StarStarStarStar

Combinations

StarStarStarStar

A combination is a selection of items from a collection, such that the order of selection does not matter. Given nn elements and selecting rr at a time, the number of combinations is C(n,r)=n!r!(nr)!C(n, r) = \frac{n!}{r!(n-r)!}.

StarStarStarStar

Algorithms

StarStarStarStar

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.

StarStarStarStar

Graphs

StarStarStarStar

A graph is an ordered pair G=(V,E)G = (V, E) where VV is a set of vertices and EE is a set of edges, which are 2-element subsets of VV. Properties include connectivity, cycles, and possibly directed or weighted edges.

StarStarStarStar

Binary Trees

StarStarStarStar

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.

StarStarStarStar

Matrices

StarStarStarStar

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.

StarStarStarStar

Sets

StarStarStarStar

A set is a well-defined collection of distinct objects. Set properties include cardinality, subsets, intersections, unions, and complements.

StarStarStarStar

Permutations

StarStarStarStar

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 nn, there are n!n! possible permutations.

StarStarStarStar

Recursion

StarStarStarStar

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.

StarStarStarStar

Trees

StarStarStarStar

A tree is a connected graph with no cycles. Properties include having exactly n1n-1 edges for nn vertices, and any two vertices are connected by exactly one path.

StarStarStarStar

Functions

StarStarStarStar

A function ff from a set XX to a set YY assigns each element of XX to exactly one element of YY. Properties include being one-to-one (injective), onto (surjective), or both (bijective).

StarStarStarStar

Relations

StarStarStarStar

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.

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.