Answer:
b. P2 requests drive 2 and gets it.
Explanation:
Two users from the local board of education are each running a program (P1 and P2), and both programs will eventually need two DVD drives to copy files from one disc to another. Only two DVD-R drives are available and they’re allocated on an "as requested" basis. Soon the following sequence transpires: P2 requests drive 2 and gets it.
Answer:
Each time you insert a new node, call the function to adjust the sum.
This method has to be called each time we insert new node to the tree since the sum at all the
parent nodes from the newly inserted node changes when we insert the node.
// toSumTree method will convert the tree into sum tree.
int toSumTree(struct node *node)
{
if(node == NULL)
return 0;
// Store the old value
int old_val = node->data;
// Recursively call for left and right subtrees and store the sum as new value of this node
node->data = toSumTree(node->left) + toSumTree(node->right);
// Return the sum of values of nodes in left and right subtrees and
// old_value of this node
return node->data + old_val;
}
This has the complexity of O(n).
Explanation:
It stands for Electronic Business, a typical example of this is a online store.
Answer:
still need help with this if so lmk so o can help ya asap:)9
Answer:
All of them apply
Explanation:
Green computing is the process of using environmental friendly computers and its associated components, accessories and other supporting devices.
Virtualization helps us to reduce the number of hardware that we are using.
Grid computers helps us to reduce the use of number of machines and thus supporting the environment in a right way.
Recycling process. Any material that we use needs to be recycled effectively and also in an environmental friendly way.
Autonomic computing uses eco-friendly system which in turn hugely support green computing.