java - An unbounded set of hashes based on bounded sets of hashes based on paths -
Suppose that there is a tree, XML tree for logic and if you want to have a complete set of root paths for the node, Although you want to split that group into a group of i, where I specify the user.
For example an HTML document:
/ html / html / head / html / head / title / html / head / title / [text] / html / body For example, when I'm 3: {{1, 11, 111}, {/ 1}, 11, 111}, / html / body / [text]
1111, 12, 121}}
then becomes for example:
{3, 4}
< P> Using simplified tree classes which can only get node names; Get an array list of sub-streams; And check that this is a leaf node; What is the best way to make this set of hash? Edit: See your sample solution answer below, it is far from optimal because it is very slow and probably not even the best approach.