Skip to content

Instantly share code, notes, and snippets.

@kuenishi
Last active August 23, 2019 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuenishi/7d77f32041a121ffddf4cf47c54fa724 to your computer and use it in GitHub Desktop.
Save kuenishi/7d77f32041a121ffddf4cf47c54fa724 to your computer and use it in GitHub Desktop.

More example tuples of replica set representation follow

code comm.size actual sets
[0] 4 [{0}, {1, 2, 3}]
[0, 1] 4 [{0}, {1}, {2, 3}]
[0, 1], [2, 3]] 4 [{0, 1}, {2, 3}]
[] 4 [{0, 1, 2, 3}]
[range(0, 16, 2)] 16 [set(range(0, 16, 2)), set(range(1, 16, 2))

これでおう?

code comm sets
False False False
True False True
False True True
True True True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment