III Data Structures. Introduction. Flashcards

1
Q

Dynamic

A

Sets are as fundamental to computer science as they are to mathematics. Whereas
mathematical sets are unchanging, the sets manipulated by algorithms can grow,
shrink, or otherwise change over time. We call such sets dynamic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DICTIONARY

A

Algorithms may require several different types of operations to be performed on
sets. For example, many algorithms need only the ability to insert elements into,
delete elements from, and test membership in a set. We call a dynamic set that
supports these operations a dictionary. Other algorithms require more complicated
operations. For example, min-priority queues,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Elements of dynamic set

A

Typically, each element is represented by an
object whose attributes can be examined and manipulated if we have a pointer to
the object.
Some
kinds of dynamic sets assume that one of the object’s attributes is an identifying
key. If the keys are all different, we can think of the dynamic set as being a set
of key values.
The object may contain satellite data, which are carried around in
other object attributes but are otherwise unused by the set implementation.
It may have attributes that are manipulated by the set operations; these attributes may
contain data or pointers to other objects in the set.
Some dynamic sets presuppose that the keys are drawn from a totally ordered
set, such as the real numbers, or the set of all words under the usual alphabetic
ordering. A total ordering allows us to define the minimum element of the set, for
example, or to speak of the next element larger than a given element in a set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Operations on dynamic sets

A
  1. Queries

2. Modifying operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly