usecase: Algorithm initialization

public usecase: Algorithm initialization
Author: Petra Vanícková
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 6.12.2005 16:22:38; Modified: 10.12.2005 1:56:29;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {7C2F3A66-FCB2-4ee5-BFA4-DCA9F91194EB}

Goto: Scenarios

See also: Restart algorithm, Run algorithm step

Appears in: UC Main actions

Algorithm initialization Scenarios
Scenario Type Detail
Basic Basic Path This part of algorithm is implemented by InitFrontWithOneMemember() procedure. This procedure erases data from large sets repository called frequentedSets and auxiliary repository called candidateSets. It also deletes data from tree structure at treeForm.treeControl1 by calling roots.Clear() method variable roots represents roots of graph structure and is obtained by calling of treeForm.treeControl1.getRootNodes() .
Also structure which holds information about chart on chartForm screen is cleaned by calling chartForm.myBarChart.Reset().
Then frequentedSets are filled with large single-member sets. Each single-member set represents one column from database table selected by Load data action. Algorithm counts number of occureneces of value 1 in table for each column. This is established by creating an SQL query and hitting it against database. Then divides number of occurence by count of all rows. If result is >= defined minimal support, set which corresponds to this item is said to be large and inserted to the frequentedSets repository. If user checked flag "Show all nodes"(twhich corresponds to variable ShowAllNodes) the sets which are considered small are inserted to the tree structure on treeForm and consequently displayed. All single-member sets are inserted to chartForm.