class PartiallyPersistentUnionFind

Defined in:

datastructure/partially_persistent_union_find.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(size : Int) #

[View source]

Instance Method Detail

def now : Int32 #

[View source]
def root(x : Int, time : Int) : Int32 #

[View source]
def same?(x : Int, y : Int, time : Int) : Bool #

[View source]
def size(x : Int, time : Int) : Int #

[View source]
def size : Int32 #

[View source]
def unite(x : Int, y : Int) : Bool #

[View source]