예제 #1
0
        public static void quineTest()
        {
            int[] minterms1 = new int[10] {
                0, 1, 2, 5, 6, 7, 8, 9, 10, 14
            };
            Quine quine1 = new Quine(minterms1, 4);

            System.Console.WriteLine(quine1.ToString());
            quine1.simplify();
        }
예제 #2
0
        public void quineTest()
        {
            //int[] minterms1 = new int[10] {0, 1, 2, 5, 6, 7, 8, 9, 10, 14};
            int[] minterms1                = new int[] { 0, 1, 2, 5, 6, 7 };
            BooleanAlgebra.Quine quine1    = new BooleanAlgebra.Quine(minterms1, 3);
            List <Implicant>     essential = quine1.simplify();

            System.Console.WriteLine(quine1.ToString());

            Console.WriteLine("The Expression is");
            Console.WriteLine(Implicant.ConvertToExpression(essential));
        }