Package ai.libs.jaicore.basic
Class Combinatorics
- java.lang.Object
-
- ai.libs.jaicore.basic.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.
-
-
-
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.
-
-