[英]Is the disjoint-set data structure implemented natively in Java?
如果存在不相交集數據結構的實現,它可能位於 java.util package 中。 包含集合,但不包含不相交集合: https://docs.oracle.com/javase/8/docs/api/java/util/package-summary.ZFC35FDC70D5FC69D7698Z83A822C
The closest I found was the disjoint method in the java.util.collections class: https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/util/Collections.html #disjoint%28java.util.Collection,java.util.Collection%29
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.