Static void DashedLine(int n){ if (n>1) Console.WriteLine(new String('-', n));}
Sure, how would you like me to send you the code?
Answer:
Connecting a mobile device as a peripheral to an infected computer could allow malware to be sent to that device.
Explanation:
Since in the question it is mentioned that Paavo reviewed a request by an executive for subnotebook computer i.e new. but he needs to USB OTG support so it is a USB i.e on the go that links the devices from one device to another
Therefore by links the mobile device to the computer i.e infected that allows malware we called virus so that we are able to send it to that device. By this, he wants to tell about the USB OTG security
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);