The stupid question is the question not asked PerlMonks

### Re: Create hierarchies from list of keywords -- well known algorithm?

 on Feb 24, 2005 at 01:19 UTC ( #433921=note: print w/replies, xml ) Need Help??

This is a bit like decision tree learning from AI theory. In learning theory, you would like the computer to be able to classify a large set of data. Each data point has some (known) attributes that you can test. You give the computer a small set of example items (a training set), for which you know their attributes and their final classification. In decision tree learning, you want to use this training set to build a "good" decision tree (which you can think of as a flow-chart) for classifying all the data.

One good way to build decision trees is by applying information theory. Each test of an attribute (i.e, decision point in a flowchart) partitions the dataset in such a way that the uncertainty ("entropy," in information theory terms) is reduced. So when deciding which attribute to test first, you simply pick the test which decreases the entropy the most. Then repeat this process for the two branches of the decision point. All that's left is to work out the pesky math details (which aren't all that bad). If this made no sense, a very nice demo of building a decision tree is at this site.

So while this isn't *exactly* what you're doing here, I think it's related. It's a more general way to find a good hierarchical decomposition of a dataset's attributes. In the case of decision trees, the goal is to have a concise flowchart to categorize data, but I'm not sure what the goal is in your case. You seem to be analyzing more of an interrelation between the attributes. But perhaps one could apply concepts from decision trees to your situation.

• Comment on Re: Create hierarchies from list of keywords -- well known algorithm?

Create A New User
Node Status?
node history
Node Type: note [id://433921]
help
Chatterbox?
 [ambrus]: ad code examples. [ambrus]: I'm not trying to recommend PHP, but I think it has way too bad a name because of its past. [ambrus]: This is different from MS Word, which was already a good editor in the pre-unicode days (in word for windows versions 2 and 6, which ran on windows 3 but also on windows 95), only it wasn't trying to solve the task of writing maths papers back then. [Discipulus]: ah ok, sounds reasonable; with no fear: Perl all life long [ambrus]: Mind you, LaTeX is currently still useful for writing math paper or snippet content without styling in such a way that the [ambrus]: formatting conventions of a journal or website can be quickly applied to it, and MS Office and LibreOffice has not quite solved this (although it's better for this than it used to be), [ambrus]: which is sort of a drawback compared to the ages of typewritten manuscripts representing content only to which the typesetter applies formatting, but that process required much more manual labor. [ambrus]: If you want to typeset a manuscript, you can still do much less work then in the manual typesetting ages and get good formatting. [ambrus]: All with only cheap modern computers and software. [ambrus]: Something you can have at home and your corner print shop, without a whole printing press's worth of equipment.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2017-09-26 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
During the recent solar eclipse, I:

Results (293 votes). Check out past polls.

Notices?