Answer:
Chord is a set of rules for a peer-to-peer distributed hash table it collects key-value sets by allotting keys to several computers (known as "nodes"); a node will collect the values for all the keys for which that is reliable. Chord defines how keys are allocated to the nodes, and how a node can determine the value for a distributed key by first locating the node liable for such key.
Explanation:
A chord is a peer-to-peer lookup service. It Resolves the difficulty of establishing a data item in a combination of shared nodes, considering various node arrivals and removals The most crucial operation in most peer-to-peer method is the efficient position of data objects.
It is able of supporting only one operation i.e. given a key, it maps the key on a link.
Algorithm:
Algorithm shows working of the chord:
// x is a node used to find successor of id
x.find_successor(id)
if (id (x; successor])
return successor;
else
// query is being delivered around the circle
entrance successor.find_successor(id);
Answer:
def SwapMinMax ( myList ):
myList.sort()
myList[0], myList[len(myList)-1] = myList[len(myList)-1], myList[0]
return myList
Explanation:
By sorting the list, you ensure the smallest element will be in the initial position in the list and the largest element will be in the final position of the list.
Using the len method on the list, we can get the length of the list, and we need to subtract 1 to get the maximum element index of the list. Then we simply swap index 0 and the maximum index of the list.
Finally, we return the new sorted list that has swapped the positions of the lowest and highest element values.
Cheers.
Answer:
b. The Upcoming Lunch & Learn Program Is in March.
Explanation:
A subject line identifies the e-mail intent. The subject line displayed the user or recipient when they look at the list of messages.
For informational e-mail, some points take into consideration.
- Write a subject line
- keep it short
- place important words
- eliminate filler words
- clear and specify the topic
- keep the subject line simple
- Set a deadline in the subject line
- Highlight the value that offered
I think option b is suitable for the informational subject line in an e-mail.
A company could benefit from data mining finding valuables in said data. They could use it to earn bitcoin which can be cashed out. Also they can find hidden items unreleased in files.