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 31–60 of 204 reference entries
Distinct-key comparisons need enough branches to distinguish orders.
Mathematical statementInformationBreadth-first and depth-first traversalGraph searches visit reachable vertices using different orders.
MethodInformationShortest-path algorithm conditionsEdge weights determine which shortest-path method applies.
MethodInformationTuring machines and effective computationFinite instructions can act on an unbounded writable tape.
DefinitionInformationRelations and tabular dataA relation is a set of tuples from declared domains.
DefinitionPhysics · InformationGibbs entropyMicrostate probabilities quantify statistical entropy.
DefinitionPhysics · InformationPure and mixed density operatorsA density operator represents quantum statistical states.
DefinitionPhysics · InformationComposite states and entanglementA joint pure state can fail to factor into subsystem states.
DefinitionMeasurement · InformationMonte Carlo uncertainty propagationSample the joint input model to approximate the output distribution.
MethodInformationHash tables with chainingA hash table maps keys to buckets and stores colliding keys in a chain.
MethodInformationAVL search trees and rotationsAn AVL binary search tree maintains subtree heights differing by at most one at every node.
MethodInformationBinary heaps and priority queuesA binary max heap stores a complete binary tree in an array with every parent key at least its children's keys.
MethodInformationHeapsortBuild a max heap, exchange its root with the last active element, shrink the active heap and restore heap order; repeat.
MethodInformationDynamic programming and subproblem reuseDynamic programming states subproblems and recurrences, checks an acyclic dependency order and base cases, and evaluates each needed subproblem once by memoization or bottom-up order.
MethodInformationSubset-sum dynamic programming and input lengthFor positive integers a₁,…,aₙ and target T≥0, D(i,t)=D(i−1,t) or [t≥aᵢ and D(i−1,t−aᵢ)], with D(0,0)=true and other initial states false.
MethodInformationBellman–Ford and negative cyclesInitialize d(s)=0 and other distances to infinity, then relax every directed edge for |V|−1 rounds.
MethodInformationDeterministic finite automataA DFA consists of finite states Q, finite alphabet Σ, total transition δ:Q×Σ→Q, start q₀ and accepting states F.
DefinitionInformationRegular expressions and NFA equivalenceRegular expressions built from letters, the empty word and empty language using union, concatenation and star describe exactly the DFA/NFA-recognizable languages.
Mathematical statementInformationContext-free grammarsA context-free grammar has finite variables, terminal alphabet, rules A→w with one variable on the left, and a start variable.
DefinitionInformationPushdown automata and context-free languagesA nondeterministic pushdown automaton augments finite control with one unbounded last-in-first-out stack.
Mathematical statementInformationRecognizability versus decidabilityA recognizer accepts every member of its language but may run forever on a nonmember.
DefinitionInformationRice's theorem for language propertiesEvery nontrivial property of the language recognized by a Turing machine is undecidable from its machine description.
Mathematical statementInformationConditional entropy and entropy chain ruleFor finite X,Y, H(X|Y)=Σy p(y)H(X|Y=y) and H(X,Y)=H(Y)+H(X|Y).
Mathematical statementInformationRelative entropyFor finite distributions p,q, D(p‖q)=Σx p(x)log₂[p(x)/q(x)]≥0, with equality exactly when p=q.
DefinitionInformationData-processing inequalityIf finite X→Y→Z form a Markov chain, meaning Z is conditionally independent of X given Y, then I(X;Z)≤I(X;Y).
Mathematical statementInformationPrefix codes and Kraft–McMillan inequalityA binary prefix code has no whole codeword as another's initial segment, permitting immediate sequential decoding.
Mathematical statementInformationHuffman code constructionRepeatedly merge the two least-probable source symbols or accumulated nodes, then label the two branches 0 and 1; root-to-leaf labels are codewords.
MethodInformationAsymptotic equipartition for iid symbolsFor iid finite-alphabet X₁,…,Xₙ, −n⁻¹log₂p(X₁,…,Xₙ) converges in probability to H(X₁).
Mathematical statementInformationEntropy rate of a stationary sourceThe entropy rate is limₙ H(X₁,…,Xₙ)/n when the limit exists.
DefinitionInformationDifferential entropy and scaleFor a real density f with defined integral, h(X)=−∫f(x)log₂f(x)dx.
Definition