簡體   English   中英

不相交集數據結構是否在 Java 中原生實現?

[英]Is the disjoint-set data structure implemented natively in Java?

我在 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM