Class Combinatorics


  • public class Combinatorics
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean[][] getTruthTable​(int n)
      Returns a complete truth table for n variables.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTruthTable

        public static boolean[][] getTruthTable​(int n)
        Returns a complete truth table for n variables. Meaning, a matrix of all possible true false combinations of n variables is generated.
        Parameters:
        n - The number of variables for the truth table.
        Returns:
        The truth table for the specified n variables.