ASPL Manual v 1.00
© 2024 by SetSphere.COM


11-2

   RANDOM GROUPS WITH ONE BIT

[RANDOM GROUPS WITH ONE BIT]

WORKSPACE RANDONEBITMIX DESCRIPTION:

Creating random groups, subgroups, and elements in ASPL grouping space. This workspace is used to introduce ASPL in the chapter "Getting To Known Your ASPL Interpreter". Make three random groups (gcount), label them starting at index 1, each of the group can have two subgroups (dcount) randomly indexed between [2,3], and two subsubgroups (scount) indexed between [2,3] in which one element (sfcount) is created whose index between [2,3], and one element (fcount) whose index between [2,3] is added to each random group. In particular the named labels are a randomly mix of names, and it is possible to use the same label name for either a subgroup or an element.

aspl> mg123 = ggbitsubgS(gstart,1,gcount,3,dcount,2,dmin,2,dmax,3,scount,2,smin,2,smax,3,sfcount,1,sfmin,2,sfmax,3,fcount,2,fmin,2,fmax,3,mix,1)
    (mg123 is assigned the dataset of three random groups)

aspl> gU mg123
    (display the union between all the groups in mg123 )

aspl> gP mg123
    (display the group partitions in mg123 )

aspl> fP mg123
    (display the elements partitions in mg123 )

aspl> f%U mg123
    (display the alignment of the elements in mg123 )

aspl> g%U mg123
    (display the alignment of the subgroups and elements in mg123 )

aspl> f& mg123
    (display the intersection of the elements in mg123)

aspl> g%& mg123
    (display the intersection of subgroups and elements in mg123)

aspl> split mg123 into g1 g2 g3
    (split mg123 and assign them to groups g1 g2 g3 )

aspl> v
    (print the symbol table )

aspl> f& g1 g2 g3
    (display the intersection of g1 g2 g3 )

aspl> split mg123 into a1 a2 a3
    (split mg123 and assign them to groups a1 a2 a3 )

aspl> v
    (print the symbol table )

aspl> f& a1 a2 a3
    (display the intersection of the elements between a1 a2 a3)

aspl> f%U a1 a2
    (display the alignment of the elements between a1 and a2)

aspl> g%U a1 a2
    (display the alignment of subgroups and elements between a1 and a2)

aspl> d%U a1 a2
    (display the alignment of the subgroups between a1 and a2)

aspl> f%& a1 a2
    (display the alignment of the elements intersection between a1 and a2)

aspl> g%& a1 a2
    (display the alignment of subgroups and elements intersection between a1 and a2)

aspl> d%& a1 a2
    (display the alignment of subgroups intersection between a1 and a2)

aspl> f%& a1 a2 a3
    (display the alignment of the elements intersection between a1^a3 and a2^a3)

aspl> g%& a1 a2 a3
    (display the alignment of subgroups and elements intersection between a1^a3 and a2^a3)

aspl> mg12 = ggbitsubgS(gstart,1,gcount,2,dcount,1,dmin,2,dmax,3,scount,2,smin,2,smax,3,sfcount,1,sfmin,2,sfmax,3,fcount,2,fmin,2,fmax,3,mix,1)
    (mg12 is assigned the dataset of two random groups)

aspl> gU mg123
    (display the groups in mg123 )

aspl> ,gU mg123 mg12
    (labinate and display the union between mg123 and mg12)

aspl> sim mg123 mg12
    (print the similarity between mg123 and mg12)

aspl> sim`ffl mg123 mg12
    (print the similarity of the elements between mg123 and mg12)

aspl> sim`fflz mg123 mg12
    (print the similarity of the elements matching between mg123 and mg12)

aspl> f&`ks= mg123 mg12
    (display the intersection between mg123 and mg12 whose elements attributes are the same)

aspl> f&`ks= mg12 mg123
    (display the intersection between mg12 and mg123 whose elements attributes are the same)

aspl> d&`ks= mg123 mg12
    (display the intersection between mg123 and mg12 whose subgroups attributes are the same)

aspl> d&`ks= mg12 mg123
    (display the intersection between mg12 and mg123 whose subgroups attributes are the same)

aspl> g&`ks= mg123 mg12
    (display the intersection between mg123 and mg12 whose subgroups and elements attributes are the same)

aspl> g&`ks= mg12 mg123
    (display the intersection between mg12 and mg123 whose subgroups and elements attributes are the same)

This example is shown in the following terminal.

       terminal for example: RANDOM GROUPS WITH ONE BIT
viewme

 -E- Display. 11.2.1   [RANDOM GROUPS WITH ONE BIT][RANDOM GROUPS WITH ONE BIT]
Terminal showing RANDOM GROUPS WITH ONE BIT