Click or drag to resize
QuickFindUF Methods

The QuickFindUF type exposes the following members.

Methods
  NameDescription
Public methodConnected
Returns true if the the two sites are in the same component.
Public methodFind
Returns the component identifier for the component containing site p.
Public methodStatic memberMainTest
Reads in a sequence of pairs of integers (between 0 and N-1) from standard input, where each integer represents some site; if the sites are in different components, merge the two components and print the pair to standard output.
Public methodUnion
Merges the component containing site p with the the component containing site q.
Top
See Also