1. Home
  2. Explore
  3. Computer Science
  4. Temporal Data Structures

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Temporal Data Structures

  • 74Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Pointer Machines
A pointer machine node contains a constant number of
.

74 questions

  1. 1
    A pointer machine node contains a constant number of
    _____
    .
    Hint

    Think of the components stored inside each node.

    Answer

    fields

  2. 2
    In the pointer machine model, a field may contain a pointer, a null pointer, or
    _____
    .
    Hint

    It may store information directly rather than a reference to another node.

    Answer

    data

  3. 3
    The pointer machine model allows nodes to be created and fields to be read or
    _____
    .
    Hint

    This operation changes the value stored in a field.

    Answer

    set

  4. 4
    In the lecture’s pointer machine model, data items are assumed to be
    _____
    .
    Hint

    They are a simple numeric kind of data.

    Answer

    integers

  5. 5
    The special node that anchors access to the rest of a pointer machine is the
    _____
    node.
    Hint

    It is the node from which navigation through the structure begins.

    Answer

    root

  6. 6
    A pointer machine node’s maximum number of outgoing pointers is its
    _____
    degree.
    Hint

    This degree counts pointers that leave a node.

    Answer

    out

  7. 7
    A node’s number of incoming pointers is its
    _____
    degree.
    Hint

    This degree counts pointers that arrive at a node.

    Answer

    in

  8. 8
    The general persistence transformation discussed in the lecture assumes a constant number of pointers both into and
    _____
    of each node.
    Hint

    The second direction is the one counted by out degree.

    Answer

    out

  9. 9
    A common classic data structure that can be represented using the pointer machine model is a balanced binary search
    _____
    .
    Hint

    It organizes keys by comparisons in a branching structure.

    Answer

    tree

  10. 10
    In the lecture’s persistence transformation, operations on the actual data items are largely irrelevant because the items are mainly
    _____
    around.
    Hint

    The method focuses on preserving node and field histories rather than computing on the data.

    Answer

    copied

  11. 11
    In partial persistence, updates are allowed only on the
    _____
    version.
    Hint

    It is the newest point on the version timeline.

    Answer

    latest

  12. 12
    Partial persistence allows users to query
    _____
    versions of the data structure.
    Hint

    These versions are retained from before the current one.

    Answer

    old

  13. 13
    In full persistence, an update can be applied to
    _____
    version.
    Hint

    The update restriction of partial persistence is removed.

    Answer

    any

  14. 14
    Because full persistence allows updates to any version, its versions form a
    _____
    .
    Hint

    Updating an old version can create a new branch.

    Answer

    tree

  15. 15
    The branching-universe interpretation of time travel is an analogy for
    _____
    persistence.
    Hint

    Each update to an old version creates a separate future.

    Answer

    full

  16. 16
    Confluent persistence permits two versions to be combined to create a
    _____
    version.
    Hint

    The combined result is another version, not a replacement of the inputs.

    Answer

    new

  17. 17
    In confluent persistence, the version relationships form a directed acyclic
    _____
    .
    Hint

    The abbreviated term is DAG.

    Answer

    graph

  18. 18
    The strongest persistence level discussed requires that nodes are never
    _____
    ; new nodes must be created instead.
    Hint

    This restriction applies to nodes themselves, not just to versions.

    Answer

    modified

  19. 19
    A functional data structure automatically preserves old versions because it cannot destroy
    _____
    .
    Hint

    The restriction applies broadly to the contents of the structure.

    Answer

    anything

  20. 20
    Unlike functional data structures, persistence implementations may reorganize nodes as long as old versions still answer
    _____
    .
    Hint

    The representation may change, but the result of a query must not.

    Answer

    correctly

  21. 21
    To support partial persistence, the technique stores
    _____
    pointers that identify where incoming pointers originate.
    Hint

    These pointers lead in the reverse direction of ordinary pointers.

    Answer

    back

  22. 22
    In partial persistence, back pointers are maintained only for the
    _____
    version.
    Hint

    Older versions keep their historical representation.

    Answer

    latest

  23. 23
    Instead of overwriting a field, partial persistence records a
    _____
    containing the version, field, and new value.
    Hint

    The lecture also uses the shortened name “mod.”

    Answer

    modification

  24. 24
    To read a field in a specified version, the method checks the node’s original value and applicable
    _____
    .
    Hint

    These records describe later changes to the field.

    Answer

    modifications

  25. 25
    When a node has an unused modification slot, a field update can be recorded by adding a
    _____
    .
    Hint

    This is the inexpensive case when the record has room.

    Answer

    modification

  26. 26
    When a node’s modification area is full in partial persistence, the method creates a
    _____
    node for the latest state.
    Hint

    The old node remains to represent earlier versions.

    Answer

    new

  27. 27
    After copying a node in partial persistence, incoming pointers in the latest version must be redirected to the
    _____
    node.
    Hint

    The latest representation has moved to the copy.

    Answer

    new

  28. 28
    Back pointers make it possible to find and update incoming pointers to a copied node in
    _____
    time under the degree bound.
    Hint

    The number of such pointers is bounded by a fixed amount.

    Answer

    constant

  29. 29
    The partial persistence analysis uses amortization because copying a full node may trigger
    _____
    updates.
    Hint

    Redirecting incoming pointers can cause further field updates.

    Answer

    recursive

  30. 30
    A potential function for partial persistence can count the modifications stored in nodes of the
    _____
    version.
    Hint

    These are the nodes that can still be modified.

    Answer

    latest

  31. 31
    The partial persistence transformation achieves constant
    _____
    overhead for its operations.
    Hint

    The guarantee is averaged over a sequence of operations, not made separately for each one.

    Answer

    amortized

  32. 32
    A deamortized partial persistence result provides a constant worst-case slowdown rather than only a constant
    _____
    slowdown.
    Hint

    Worst-case performance is guaranteed for each operation.

    Answer

    amortized

  33. 33
    In full persistence, a version is represented by a node in the version
    _____
    .
    Hint

    This structure records which versions branch from which earlier versions.

    Answer

    tree

  34. 34
    To make version relationships usable like a linear order, the full persistence method traverses the version
    _____
    .
    Hint

    The traversal visits the branching history in sequence.

    Answer

    tree

  35. 35
    The linearization records a beginning and an
    _____
    position for each version’s subtree.
    Hint

    Together, these positions mark the interval occupied by the subtree.

    Answer

    ending

  36. 36
    A version’s beginning and ending markers enclose the markers of all versions in its
    _____
    .
    Hint

    These versions descend from the given version.

    Answer

    subtree

  37. 37
    The data structure used to maintain the traversal order supports insertion before or after an item and relative-order
    _____
    .
    Hint

    These operations ask which of two items comes first.

    Answer

    queries

  38. 38
    When a full-persistence update creates a version, its beginning and ending markers are inserted as adjacent
    _____
    .
    Hint

    They are elements of the maintained order.

    Answer

    items

  39. 39
    A version vvv is an ancestor of version www when the markers for vvv enclose those for
    _____
    .
    Hint

    The descendant’s markers lie inside the ancestor’s interval.

    Answer

    www

  40. 40
    In full persistence, a modification applies to a queried version when the modification’s version is an
    _____
    of it.
    Hint

    The queried version descends from the version where the change occurred.

    Answer

    ancestor

  41. 41
    To avoid repeated expensive copying in full persistence, a full node’s modification history is divided into roughly balanced
    _____
    .
    Hint

    The node’s history is split into two portions of comparable size.

    Answer

    halves

  42. 42
    After splitting a full node’s modification history, one part can be applied to the fields of a
    _____
    node.
    Hint

    The copied representation stores the corresponding later state.

    Answer

    new

  43. 43
    In the full-persistence split, pointers are redirected to the new node only for versions in the corresponding
    _____
    .
    Hint

    Those versions are the branch represented by the copied modifications.

    Answer

    subtree

  44. 44
    The full-persistence amortized analysis can use a potential based on empty modification
    _____
    .
    Hint

    A split creates additional room for future changes.

    Answer

    slots

  45. 45
    In the full persistence construction, the maximum number of fields in a node is denoted by
    _____
    .
    Hint

    This parameter is the maximum out degree.

    Answer

    ddd

  46. 46
    The effective depth of a version is based on the logarithm of the number of paths to it in an expanded
    _____
    .
    Hint

    The DAG can be unfolded by duplicating shared nodes.

    Answer

    tree

  47. 47
    Fiat and Kaplan’s general confluent persistence transformation incurs overhead depending on the number of
    _____
    .
    Hint

    This quantity appears inside a logarithmic factor.

    Answer

    updates

  48. 48
    The general confluent persistence overhead also depends on the maximum
    _____
    depth among versions.
    Hint

    It measures path multiplicity after expanding the version DAG into a tree.

    Answer

    effective

  49. 49
    Combining a data structure version with itself can double its size in a constant number of
    _____
    .
    Hint

    The example uses repeated concatenation.

    Answer

    operations

  50. 50
    Repeated self-combination can produce a structure of size 2u2^u2u after uuu
    _____
    .
    Hint

    Each step doubles the size.

    Answer

    updates

  51. 51
    The general confluent persistence lower bound relates required space to the effective depth when
    _____
    are treated as free.
    Hint

    The lower-bound setup charges updates rather than these information-access operations.

    Answer

    queries

  52. 52
    Whether confluent persistence can achieve constant time and space overhead per operation, including queries, remains an open
    _____
    .
    Hint

    It is an unresolved research question.

    Answer

    problem

  53. 53
    In disjoint confluent persistence, the two versions used in a confluent operation must share no
    _____
    .
    Hint

    The restriction concerns overlap in the represented structures.

    Answer

    nodes

  54. 54
    Under the disjointness assumption, the lecture gives an overhead of order
    _____
    in the number of operations.
    Hint

    The bound grows like a logarithm rather than a constant.

    Answer

    logarithmic

  55. 55
    Under disjoint confluent operations, the versions containing a particular node form a
    _____
    .
    Hint

    The disjointness restriction prevents merging versions that share that node.

    Answer

    tree

  56. 56
    To find the preceding version in which a node changed, one technique mentioned is
    _____
    trees.
    Hint

    This is a dynamic tree data structure also referenced for later study.

    Answer

    link-cut

  57. 57
    A technique mentioned for handling a more difficult case in the disjoint analysis is fractional
    _____
    .
    Hint

    It is a technique for linking searches across related structures.

    Answer

    cascading

  58. 58
    Functional balanced binary search trees can be built using
    _____
    copying along the modified path.
    Hint

    The method copies changed nodes and their ancestors.

    Answer

    path

  59. 59
    Path copying in a balanced search tree takes logarithmic time because only the changed nodes and their
    _____
    need to be copied.
    Hint

    These nodes lie between the changed node and the root.

    Answer

    ancestors

  60. 60
    A functional balanced search tree can provide logarithmic time for all its operations when it uses a balanced tree such as a
    _____
    tree.
    Hint

    This is a common self-balancing binary search tree.

    Answer

    red black

  61. 61
    Functional implementation of a balanced search tree is easier when changes proceed top down without following
    _____
    pointers.
    Hint

    These pointers would lead from a node back toward the root.

    Answer

    parent

  62. 62
    A deque supports insertion and deletion at both the beginning and the
    _____
    .
    Hint

    It is a double-ended queue.

    Answer

    end

  63. 63
    The lecture describes constant-time
    _____
    as an operation available for deques.
    Hint

    It joins two sequences end to end.

    Answer

    concatenation

  64. 64
    The lecture identifies constant-time split and concatenation for lists as an open
    _____
    .
    Hint

    It is posed as an unresolved challenge.

    Answer

    problem

  65. 65
    A trie is described as a tree with a fixed
    _____
    .
    Hint

    This refers to the tree’s underlying arrangement.

    Answer

    topology

  66. 66
    In the course overview, data with more than one dimension motivates the study of
    _____
    .
    Hint

    This topic concerns higher-dimensional data.

    Answer

    geometry

  67. 67
    The question of whether one binary search tree is best for all access patterns is called dynamic
    _____
    .
    Hint

    The term asks whether there is a single best tree.

    Answer

    optimality

  68. 68
    A model that accounts for cache, main memory, and other storage levels is called the memory
    _____
    .
    Hint

    It describes memory arranged in levels.

    Answer

    hierarchy

  69. 69
    A dynamic graph data structure must maintain information as edges are added and possibly
    _____
    .
    Hint

    This is the reverse of adding an edge.

    Answer

    deleted

  70. 70
    Searching for a pattern within a larger piece of text is a central problem for
    _____
    data structures.
    Hint

    The data may be text or DNA sequences.

    Answer

    strings

  71. 71
    Succinct data structures aim to reduce storage toward the minimum number of
    _____
    needed to represent the possibilities.
    Hint

    This is the basic unit of information storage.

    Answer

    bits

  72. 72
    When a key universe has 2n2^n2n possibilities, its information-theoretic storage minimum is
    _____
    bits.
    Hint

    The number of bits is the exponent in the count of possibilities.

    Answer

    nnn

  73. 73
    When data items are known to be integers rather than arbitrary comparable objects, data structures can sometimes achieve
    _____
    time.
    Hint

    This can be faster than logarithmic time.

    Answer

    constant

  74. 74
    The lecture gives square root of log log nnn time as the best known randomized bound for integer priority
    _____
    .
    Hint

    They support operations such as extracting an extreme-priority item.

    Answer

    queues

1 of 74
Question 1 of 74

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent