Reference library
Foundations
Explore concepts, laws, equations and methods, with clear explanations of their use and sources. Choose an area of study or find a specific entry.
More filters
Reference entries
Showing 61–90 of 204 reference entries
For Y=X+Z with iid real Gaussian noise Z∼N(0,N), N>0, independent of input, and average input power E[X²]≤P, capacity is C=(1/2)log₂(1+P/N) bits per channel use.
Mathematical statementInformationBinary search and its invariantOn a sorted random-access array, compare the target with the middle key and discard the half that cannot contain it; repeat until a matching key is found or the remaining interval is empty.
MethodInformationMerge sort and divide-and-conquer recurrenceSplit an array into two nearly equal halves, sort each recursively, and merge sorted halves by repeatedly choosing the next ordered key.
MethodInformationGreedy interval scheduling and exchange proofTo maximize the number of compatible intervals, repeatedly take the available interval finishing earliest and discard overlapping intervals.
MethodInformationMinimum-spanning-tree cut propertyIn a connected undirected weighted graph, if a set of chosen edges lies within some minimum spanning tree and a cut crosses none of them, a lightest edge crossing that cut can be added while preserving this invariant.
Mathematical statementInformationKruskal minimum spanning treeProcess edges in nondecreasing weight order, adding an edge exactly when its endpoints belong to different current components, then merge those components.
MethodInformationTheta and lower asymptotic boundsFor eventually nonnegative costs f,g, f=Θ(g) means c₁g(n)≤f(n)≤c₂g(n) for all sufficiently large n and constants c₁,c₂>0.
DefinitionInformationPotential-method amortized costIf operation i changes state Dᵢ₋₁ to Dᵢ, define ĉᵢ=cᵢ+Φ(Dᵢ)−Φ(Dᵢ₋₁).
MethodInformationDynamic-array doublingAppend to an array with spare capacity; when full, allocate twice the capacity and copy existing entries.
MethodInformation3SAT to CLIQUE reductionFor a 3CNF formula with m clauses, make a vertex for each literal occurrence.
MethodInformationSystematic binary linear code constructionOver F₂ take H=[A|Iₘ] and G=[Iₙ₋ₘ;A].
MethodInformationSingle-bit syndrome decodingFor received r=c+e with Hc=0, syndrome Hr=He.
MethodInformationMultitape simulation and model equivalenceA fixed finite-tape deterministic Turing machine running in time t(n)≥n can be simulated by a single-tape machine in O(t(n)²) time by storing tape contents and head markers and scanning them for each simulated step.
Mathematical statementInformationTime, space and encoded input sizeA deterministic decider's time cost counts steps and its space cost counts used storage cells; worst-case bounds maximize over inputs of the same encoded length.
DefinitionInformationFlow feasibility and max-flow/min-cut certificateA directed network flow respects nonnegative capacities and conserves flow at vertices other than source s and sink t.
Mathematical statementInformationEdmonds–Karp augmenting-path algorithmStarting with zero flow, find a shortest residual s–t path by breadth-first search and augment by its minimum residual capacity, updating forward and reverse capacities.
MethodInformationDiscrete Fourier transform and inverseFor N complex coefficients aⱼ define yₖ=Σ_(j=0)^(N−1)aⱼωᴶᴷ, with ω=e²πⁱ⁄ᴺ.
Mathematical statementInformationRadix-two fast Fourier transformFor N a power of two, split polynomial coefficients into even and odd indices, recursively transform each half, and combine values using p(z)=p_even(z²)+zp_odd(z²).
MethodInformationRegular-language pumping lemmaIf a language is regular, some p≥1 ensures every accepted word x with |x|≥p decomposes as uvw with |uv|≤p, |v|≥1 and uvᵐw accepted for all m≥0.
Mathematical statementInformationNonregular equal-block languageThe language {0ⁿ1ⁿ:n≥0} is not regular.
MethodInformationFinite-automaton decision proceduresA DFA's language is empty iff no accepting state is reachable from its start.
MethodInformationContext-free membership and emptinessA finite context-free grammar has decidable membership: convert to Chomsky normal form and enumerate bounded derivations for a nonempty input word.
MethodInformationEarley chart parsingFor a finite CFG, chart Iⱼ stores dotted productions [A→β·γ,k], where k is the starting position.
MethodInformationStable integer counting sortFor n records with integer keys 0≤k<U, append records to U insertion-ordered buckets by key, then concatenate buckets in increasing key order.
MethodInformationLeast-significant-digit radix sortRepresent nonnegative integer keys with d base-B digits and stably sort each digit from least to most significant.
MethodInformationTopological order and directed cycle detectionA finite directed graph admits an order placing u before v for every edge u→v exactly when it is acyclic.
MethodInformationShortest paths by DAG relaxationIn a finite integer-weighted DAG set d(s)=0 and other d(v)=∞, process vertices in topological order, and relax each outgoing u→v by d(v)←min(d(v),d(u)+w(u,v)).
MethodInformationLongest common subsequence by dynamic programmingFor string suffixes A[i:],B[j:], let L(i,j) be their longest common subsequence length.
MethodInformationMaster theorem for divide-and-conquer recurrencesFor T(n)=aT(n/b)+f(n), T(1)=Θ(1), let q=log_b a.
Mathematical statementInformationLogarithmic and polynomial space classesDSPACE(s(n)) and NSPACE(s(n)) contain decision languages solvable with O(s(n)) workspace by deterministic and nondeterministic Turing machines.
Definition