encyclopegia.org

Dynamic problem (algorithms)

In computer science, dynamic problems are problems stated in terms of changing input data. In its most general form, a problem in this category is usually stated as follows: * Given a structure composed of objects, find efficient algorithms and data structures to answer certain queries about the structure, while also efficiently supporting update operations such as insertion, deletion or modification of objects in the structure. Problems in this class have the following measures of complexity: * Space the amount of memory space required to store the data structure; * Initialization time time required for the initial construction of the data structure; * Insertion time time required for the update of the data structure when one more input element is added; * Deletion time time required for the update of the data structure when an input element is deleted; * Query time time required to answer a query; * Other operations specific to the problem in question The overall set of computations for a dynamic problem is called a dynamic algorithm. Many algorithmic problems stated in terms of fixed input data (called static problems in this context and solved by static algorithms) have meaningful dynamic versions.

In computer science, dynamic problems are problems stated in terms of changing input data. In its most general form, a problem in this category is usually stated as follows: Given a structure composed of objects, find efficient algorithms and data structures to answer certain queries about the structure, while also efficiently supporting update operations such as insertion, deletion or modification of objects in the structure. Problems in this class have the following measures of complexity: Space the amount of memory space required to store the data structure; Initialization time time required for the initial construction of the data structure; Insertion time time required for the update of the data structure when one more input element is added; Deletion time time required for the update of the data structure when an input element is deleted; Query time time required to answer a query; Other operations specific to the problem in question The overall set of computations for a dynamic problem is called a dynamic algorithm. Many algorithmic problems stated in terms of fixed input data (called static problems in this context and solved by static algorithms) have meaningful dynamic versions. ==Special cases== Incremental algorithms, or online algorithms, are algorithms in which only additions of elements are allowed, possibly starting from empty/trivial input data. Decremental algorithms are algorithms in which only deletions of elements are allowed, starting with the initialization of a full data structure. If both additions and deletions are allowed, the algorithm is sometimes called fully dynamic. ==Examples== ===Maximal element=== Static problem : For a set of N numbers find the maximal one. The problem may be solved in O(N) time. Dynamic problem : For an initial set of N numbers, dynamically maintain the maximal one when insertions and deletions are allowed. This is just the priority queue maintenance problem allowing for insertions and deletions; it can be solved, for example, using a binary heap in O(\log N) time for an update and O(1) time for a query, with O(N) setup time (i.e., the initial processing of the data). Note that the value of N may change during the life of the structure. ===Graphs=== Given a graph, maintain its parameters, such as connectivity, maximal degree, shortest paths, etc., when insertion and deletion of its edges are allowed. Examples: There is an algorithm that maintains the minimum spanning forest of a weighted, undirected graph, subject to edge deletions and insertions, in O(n^{1/2}) time per update. There is an algorithm that maintains the minimum spanning forest of a weighted, undirected graph, subject to edge deletions and insertions, in O(n^{1/3}\log n) amortized time per update. ==See also== Dynamization Dynamic connectivity Kinetic data structure ==References==

References

  1. Dynamic graph algorithms · retrieved 2026-11-18 · rev 1351343971
    Cite this reference

    MLA "Dynamic graph algorithms." D. 2026-11-18. https://en.wikipedia.org/wiki/D._Eppstein. Accessed 24 November 2026.

    Chicago "Dynamic graph algorithms." D. 2026-11-18. https://en.wikipedia.org/wiki/D._Eppstein.

    APA D. (2026). Dynamic graph algorithms. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/D._Eppstein

  2. Maintaining minimum spanning forests in dynamic graphs · retrieved 2026-11-18 · rev 1351343971
    Cite this reference

    MLA "Maintaining minimum spanning forests in dynamic graphs." Henzinger, Monika; King, Valerie (2001). 2026-11-18. http://infoscience.epfl.ch/record/99364. Accessed 24 November 2026.

    Chicago "Maintaining minimum spanning forests in dynamic graphs." Henzinger, Monika; King, Valerie (2001). 2026-11-18. http://infoscience.epfl.ch/record/99364.

    APA Henzinger, Monika; King, Valerie (2001). (2026). Maintaining minimum spanning forests in dynamic graphs. Retrieved November 24, 2026, from http://infoscience.epfl.ch/record/99364

  3. Sparsification—a technique for speeding up dynamic graph algorithms · retrieved 2026-11-18 · rev 1351343971
    Cite this reference

    MLA "Sparsification—a technique for speeding up dynamic graph algorithms." Eppstein, David; Italiano, Giuseppe; Nissenzweig, Amnon (1997). 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Sparsification—a technique for speeding up dynamic graph algorithms." Eppstein, David; Italiano, Giuseppe; Nissenzweig, Amnon (1997). 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Eppstein, David; Italiano, Giuseppe; Nissenzweig, Amnon (1997). (2026). Sparsification—a technique for speeding up dynamic graph algorithms. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

Cite this article

MLA

"Dynamic problem (algorithms)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/dynamic-problem-algorithms. Accessed 24 November 2026.

Chicago

"Dynamic problem (algorithms)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/dynamic-problem-algorithms.

APA

encyclopegia.org. (2026). Dynamic problem (algorithms). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/dynamic-problem-algorithms

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Behavioral modeling in computer-aided design

enwiki · references available

Multilevel queue

enwiki · references available

Expression language

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1351343971 · 0.5 · snapshot enwiki-001351343971

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.