How does insertion sort deal with multiple copies of an array in a distributed system? I ask because it is easier to read data than to write it. What will be the cost of the algorithm in a distributed system in terms of the number of updates?
It totally depends on your version of distributed insertion sort. One solution can be as follows:
Note: It is not right to measure the effectiveness of a distributed algorithm by counting the number if updates. As far as many updates are performed concurrently, the total time complexity of execution should be taken into consideration.