6.1. Concept
This section describes disjoint sets
0: {0}
1: {1}
2: {2}
3: {3}
4: {4}inSameSet(1, 3) -> false0: {0}
1: {1, 3}
2: {2}
3: {1, 3}
4: {4}inSameSet(1, 3) -> true
inSameSet(1, 4) -> falseLast updated
Was this helpful?
This section describes disjoint sets
0: {0}
1: {1}
2: {2}
3: {3}
4: {4}inSameSet(1, 3) -> false0: {0}
1: {1, 3}
2: {2}
3: {1, 3}
4: {4}inSameSet(1, 3) -> true
inSameSet(1, 4) -> falseLast updated
Was this helpful?
Was this helpful?
0: {0}
1: {1, 3, 4}
2: {2}
3: {1, 3, 4}
4: {1, 3, 4}`inSameSet(1, 4)` -> true
`inSameSet(3, 4)` -> true