Disjoint data set

M

MarcoGT

Hi,

i'm new to c++.

I'm writing code to control robot; i need to write code to implement
disjoint set data structure; i need to create the default function
(makeset, union and find).

Can someone help me? Where can i find any example?

Bye, Marco.
 
G

Guest

Hi,

i'm new to c++.

I'm writing code to control robot; i need to write code to implement
disjoint set data structure; i need to create the default function
(makeset, union and find).

Can someone help me? Where can i find any example?

Depending on what you want to do std::set can get you a long way.
 
J

James Kanze

On 2007-10-13 15:30, MarcoGT wrote:
Depending on what you want to do std::set can get you a long way.

There are also a number of functions in the algorithm section
which can use any sorted sequences to represent sets: includes,
set_union, set_intersection, set_difference, and
set_symmetric_difference.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top