分布式系统中的插入排序
插入排序如何处理分布式系统中数组的多个副本? 我问这个问题是因为读取数据比写入数据更容易。 就更新次数而言,分布式系统中算法的成本是多少?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这完全取决于您的分布式插入排序版本。一种解决方案如下:
注意:通过计算更新次数来衡量分布式算法的有效性是不正确的。只要同时执行许多更新,就应考虑执行的总时间复杂度。
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.