• retagged by
1,922 views
0 0 votes
What exactly is Satellite Data in Data structures?

struct BST {

int key;

char name[20];

struct BST* left;

struct BST* right;

struct BST* parent;

};

 What will be satellite data in above node considering BST in made with 'int key' as key?Is structure essential data like left,right,parent pointer for tree implementation a part of satellite data?

1 Answer

0 0 votes

Satellite data in a data structure is a data which is really used to store a value (or values). For example, consider a node of a linked list

struct Node {
   int value;
   struct Node *next;
}

Here, the really data is stored in value, while the next stores the pointer to the next node. Such things are overheads from the user point of view as they are merely used to traverse (in this case) something and not for storing real data.

Coming to the question, key and name[20] are used being use to store the real data while other are merely pointers. So key and name are considered to be satellite data.

Position:
Show:

Related questions

4 4 votes
1 1 answer
196
196 views
GO Classes asked Jul 22
196 views
Consider the following min-heap where each node is written as $\texttt{(value, priority)}$:Now perform these operations in order:$\texttt{updatePriority(A, 8)}$ $\texttt{...
5 5 votes
2 2 answers
211
211 views
GO Classes asked Jul 21
211 views
The following max-heap is stored using $1$-based indexing:$[57, 53, 42, 48, 25, 34, 29, 18, 30, 25]$Insert $55$ into this max-heap. What is the final heap array?$[57, 55,...
4 4 votes
3 3 answers
240
240 views
GO Classes asked Jul 18
240 views
Which of the following factors affect the average search length in hashing?Load factor Hash function Collision resolution method Only I and II Only I and III Only II and ...
3 3 votes
1 1 answer
183
183 views
GO Classes asked Jul 17
183 views
A hash table uses open addressing with linear probing. Suppose a key is deleted from the table.Why should we not simply replace the deleted key’s slot by $\text{NULL}$?Be...