Question

Can some body please clearly describe how a disjoint–set ADT can be used to solve equidivisions problem and as well as how dfs can be used to solve it?

Can some body please clearly describe how a disjoint–set ADT can be used to solve equidivisions problem and as well as how dfs can be used to solve it?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

A disjoint set data structure keeps track of elements partitioned into a number of disjoint subsets. In computer science, two sets are said to be disjoint if they have no element in common.The disjoint sets problem is a problem of efficiently mantaining a collection C of disjoint subsets of some set S, That is , each element of the set S is contained in a singleton subset. With this as the initial state of the collections we wish to efficiently support two of the following operations in the disjoint set problem:The configuration of the disjoint sets is that of an equivalence relation with each collection representing an equivalence class . In this problem we would be assigning a representative for each equivalence class / disjoint subset . Depth first search (DFS) algorithm starts with the initial node of the graph G, and then goes to deeper and deeper until we find the goal node or the node which has no children. The algorithm, then backtracks from the dead end towards the most recent node that is yet to be completely unexplored.

Add a comment
Know the answer?
Add Answer to:
Can some body please clearly describe how a disjoint–set ADT can be used to solve equidivisions problem and as well as how dfs can be used to solve it?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT