Skip to content

nicolasjosino/Cobweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

The Project

Example of a basic cobweb clustering algorithm made in Java, with the objective of clustering a given object in a node with multiple children.

The Clustered Structure

Cell: an object used as a case study for the clustering algorithm. It's composed of the following attributes: cell color, number of cores and tails.

How it's done

The algorithm receives an Node (namely a root), an object that stores a list of Cells and other Nodes linked to it, referred to as Children, and also a new Cell to be added to the root, called record. Firstly, the root is checked for having any nodes in its Children list. If so, it receives two sub-nodes, the fist one containing the root original Cell, and the other receiving the record argument of the algorithm.

The other scenario:

If the root cell already has children, some calculations are needed. There will be simulations for the insertion of record in each children of root, as well as a simulation for a new children altogether. For each scenario, the Category Utility is defined, which envolves calculations using each Node's Cells' attribute incidence. A HashMap is instantiated for storing the category utility value to each node, which will all be compared later for deciding which one's most eligible for receiving the new Cell record. These category utility values are also compared to the situation of inserting a new node containing solely the record Cell within it. Lastly, if the course of action to take is inserting record in a pre-existing node, the cobweb function is called recursively, in order to either divide the chosen node into two children of its own, or to validate which of its existing children shall receive the record cell, continuing the clustering process.

About

Example of a basic "Cobweb" clustering algorithm made in Java, with the objective of clustering a given object of the Cell class in a node with multiple children.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages