Module logicng

Class TermTable


  • public class TermTable
    extends Object
    A term table in the Quine–McCluskey algorithm. The term table is used for the line and column dominance checks.
    Since:
    1.4.0
    Version:
    2.0.0
    • Method Detail

      • initializeColumnHeaders

        protected Vector<Formula> initializeColumnHeaders​(LinkedHashSet<Term> terms)
        Initialize the column headers with the minterms
        Parameters:
        terms - the terms
        Returns:
        the column headers
      • eliminateColumnDominance

        protected boolean eliminateColumnDominance()
        Performs elimination of columns by dominance.
        Returns:
        true if an elimination was performed, false otherwise
      • eliminateLineDominance

        protected boolean eliminateLineDominance()
        Performs elimination of lines by dominance.
        Returns:
        true if an elimination was performed, false otherwise
      • deleteColumn

        protected void deleteColumn​(int colIndex)
        Deletes a column at a given index.
        Parameters:
        colIndex - the index
      • deleteLine

        protected void deleteLine​(int lineIndex)
        Deletes a line at a given index.
        Parameters:
        lineIndex - the index
      • formatMatrixLine

        protected String formatMatrixLine​(Vector<Boolean> booleans,
                                          int size)