Exemplo n.º 1
0
        private void setEscenario4()
        {
            Dictionary <List <string>, int> transacc = new Dictionary <List <string>, int>();
            List <string> tranUniq = new List <string> {
                "a", "c", "b"
            };

            transacc.Add(tranUniq, 2);
            List <string> tranUniq2 = new List <string> {
                "d", "e"
            };

            transacc.Add(tranUniq2, 3);
            List <string> tranUniq3 = new List <string> {
                "b", "c"
            };

            transacc.Add(tranUniq3, 2);
            List <string> tranUniq4 = new List <string> {
                "b", "d"
            };

            transacc.Add(tranUniq4, 3);
            prueba = new FPTree();
            prueba.ConstructFPTree(transacc, 4);
        }
Exemplo n.º 2
0
        private void setEscenario2()
        {
            Dictionary <List <string>, int> transacc = new Dictionary <List <string>, int>();
            List <string> tranUniq = new List <string> {
                "b", "a", "c"
            };

            transacc.Add(tranUniq, 1);
            List <string> tranUniq2 = new List <string> {
                "c", "a", "d"
            };

            transacc.Add(tranUniq2, 1);
            List <string> tranUniq3 = new List <string> {
                "a", "d"
            };

            transacc.Add(tranUniq3, 1);
            List <string> tranUniq4 = new List <string> {
                "c", "e"
            };

            transacc.Add(tranUniq4, 1);
            List <string> tranUniq5 = new List <string> {
                "b", "f"
            };

            transacc.Add(tranUniq5, 1);
            List <string> tranUniq6 = new List <string> {
                "d", "c"
            };

            transacc.Add(tranUniq6, 1);

            prueba = new FPTree();
            prueba.ConstructFPTree(transacc, 3);
        }