You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.5 KiB

4 months ago
  1. \item \self Consider the domain $A=\{Asparagus, \;Bell \; Pepper, \;Cabbage, \;Tomato, \\ \; Onion, \;Zucchini, \;Eggplant, \; Mushroom\}$ and
  2. the two different symbolic encodings for $A$ given below.
  3. Which one gives a shorter characteristic function for the following sets?
  4. \begin{enumerate}
  5. \item $B = \{Asparagus, \; Mushroom\}$
  6. \item $C = \{Bell \; Pepper, \; Onion, \; Zucchini, \; Eggplant\}$
  7. \item $D = \{Cabbage, \; Tomato\}$
  8. \end{enumerate}
  9. Illustrate your answer by giving the
  10. characteristic function for $B$, $C$ and $D$ in both encodings.
  11. \vspace{.5cm}
  12. %\begin{minipage}
  13. \begin{tabular}{l|l|l|l}
  14. \hline
  15. \multicolumn{3}{c}{\textbf{Encoding 1}} \\
  16. \hline
  17. Element & x & y & z\\
  18. \hline
  19. Asparagus & $0$ & $0$ & $0$ \\
  20. Bell Pepper & $0$ & $0$ & $1$ \\
  21. Cabbage & $0$ & $1$ & $0$ \\
  22. Tomato & $0$ & $1$ & $1$ \\
  23. Onion & $1$ & $0$ & $0$ \\
  24. Zucchini & $1$ & $0$ & $1$ \\
  25. Eggplant & $1$ & $1$ & $0$ \\
  26. Mushroom & $1$ & $1$ & $1$
  27. \end{tabular}
  28. %\end{minipage}
  29. %\begin{minipage}
  30. \hspace{3cm}
  31. \begin{tabular}{l|l|l|l}
  32. \hline
  33. \multicolumn{3}{c}{\textbf{Encoding 2}} \\
  34. \hline
  35. Element & x & y & z \\
  36. \hline
  37. Asparagus & $1$ & $1$ & $0$ \\
  38. Bell Pepper & $1$ & $0$ & $1$ \\
  39. Cabbage & $0$ & $1$ & $0$ \\
  40. Tomato & $1$ & $1$ & $1$ \\
  41. Onion & $0$ & $0$ & $0$ \\
  42. Zucchini & $0$ & $0$ & $1$ \\
  43. Eggplant & $1$ & $0$ & $0$ \\
  44. Mushroom & $0$ & $1$ & $1$
  45. \end{tabular}
  46. %\end{minipage}