Skip to content

Instantly share code, notes, and snippets.

@nhooyr
Created April 27, 2017 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhooyr/8c5fd0ac67ea1e0ff4185aa93b096f2d to your computer and use it in GitHub Desktop.
Save nhooyr/8c5fd0ac67ea1e0ff4185aa93b096f2d to your computer and use it in GitHub Desktop.
\begin{table}[h]
\begin{minipage}[t]{0.5\linewidth}
\begin{tabular}{c c c c | c}
A & B & C & D & Y \\
\hline
0 & 0 & 0 & 0 & 1 \\
0 & 0 & 0 & 1 & 1 \\
0 & 0 & 1 & 0 & 1 \\
0 & 0 & 1 & 1 & 0 \\
0 & 1 & 0 & 0 & 0 \\
0 & 1 & 0 & 1 & 1 \\
0 & 1 & 1 & 0 & 0 \\
0 & 1 & 1 & 1 & 0 \\
1 & 0 & 0 & 0 & 0 \\
1 & 0 & 0 & 1 & 1 \\
1 & 0 & 1 & 0 & 1 \\
1 & 0 & 1 & 1 & 0 \\
1 & 1 & 0 & 0 & 0 \\
1 & 1 & 0 & 1 & 1 \\
1 & 1 & 1 & 0 & 1 \\
1 & 1 & 1 & 1 & 0 \\
\end{tabular}
\end{minipage}
\begin{minipage}[t]{0.5\linewidth}
\begin{karnaugh-map}*[4][4][1][$CD$][$AB$]
\manualterms{1,1,1,0,0,1,0,0,0,1,1,0,0,1,1,0}
\implicant{1}{9}
\implicant{14}{10}
\implicantedge{0}{0}{2}{2}
\end{karnaugh-map}
\end{minipage}
\end{table}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment