Difference between revisions of "Aufgaben:Exercise 1.2: Decimal/Binary Converter"

From LNTwww
m (Text replacement - "Category:Aufgaben zu Stochastische Signaltheorie" to "Category:Theory of Stochastic Signals: Exercises")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
{{quiz-Header|Buchseite=Stochastische Signaltheorie/Mengentheoretische Grundlagen}}
+
{{quiz-Header|Buchseite=Theory_of_Stochastic_Signals/Set_Theory_Basics}}
==A1.2 Schaltlogik (D/B-Wandler)==
+
 
[[File:EN_Sto_A_1_2.png|right|frame|Logisches Schaltwerk]]
+
[[File:EN_Sto_A_1_2.png|right|frame|Logical circuit for D/B converting]]
Ein Zahlengenerator  $Z$  liefert Dezimalwerte im Bereich von  $1$  bis  $15$.  
+
A number generator  $Z$  supplies decimal values in the range  $1$  to  $15$.  
*Diese werden in Binärzahlen umgewandelt  (rot umrandeter Block).  
+
*These are converted into binary numbers  (block outlined in red).  
*Der Ausgang besteht aus den vier Binärwerten  $A$,  $B$,  $C$  und  $D$  mit abnehmender Wertigkeit.  
+
*The output consists of the four binary values  $A$,  $B$,  $C$  and  $D$  with decreasing significance.
*Beispielsweise liefert  $Z = 11$  die Binärwerte
+
*For example  $Z = 11$  delivers the binary values
 
:$$ A = 1, \ B = 0, \ C = 1, \ D = 1. $$
 
:$$ A = 1, \ B = 0, \ C = 1, \ D = 1. $$
Mengentheoretisch lässt sich dies wie folgt darstellen:
+
Set-theoretically,  this can be represented as follows:
 
:$$ Z = 11\qquad\widehat{=}\qquad A \cap\overline{ B} \cap C \cap D.$$
 
:$$ Z = 11\qquad\widehat{=}\qquad A \cap\overline{ B} \cap C \cap D.$$
  
Aus den binären Größen  $A$,  $B$,  $C$  und  $D$  werden drei weitere Boolsche Ausdrücke gebildet, deren Vereinigungsmenge mit  $X$  bezeichnet wird:
+
Three more Boolean expressions are formed from the binary quantities  $A$,  $B$,  $C$  and  $D$  and their union set is denoted  $X$ :
 
::<math> U = A \cap \overline{D} </math>
 
::<math> U = A \cap \overline{D} </math>
 
::<math> V = \overline{A} \cap B \cap \overline{D} </math>
 
::<math> V = \overline{A} \cap B \cap \overline{D} </math>
:$$W,\;  {\rm wobei} \; \, \overline{W} = \overline{A} \cup \overline{D} \cup (\overline{B} \cap C) \cup (B \cap \overline{C}). $$
+
:$$W,\;  {\rm where} \; \, \overline{W} = \overline{A} \cup \overline{D} \cup (\overline{B} \cap C) \cup (B \cap \overline{C}). $$
*Es ist zu berücksichtigen, dass&nbsp; $Z = 0 \ ⇒ \ A = B = C = D = 0$&nbsp; bereits durch den Zahlengenerator ausgeschlossen ist.  
+
*Note that&nbsp; $Z = 0 \ ⇒ \ A = B = C = D = 0$&nbsp; is already excluded by the number generator.  
*Beachten Sie ferner, dass nicht alle Eingangsgrößen&nbsp; $A$,&nbsp; $B$,&nbsp; $C$&nbsp; und&nbsp; $D$&nbsp; zur Berechnung aller Zwischengrößen&nbsp; $U$,&nbsp; $V$&nbsp; und&nbsp; $W$&nbsp; herangezogen werden.
+
*Note also that not all input quantities&nbsp; $A$,&nbsp; $B$,&nbsp; $C$&nbsp; and&nbsp; $D$&nbsp; are used to calculate all intermediate quantities&nbsp; $U$,&nbsp; $V$&nbsp; and&nbsp; $W$,&nbsp; resp.
  
  
Line 22: Line 22:
  
  
 +
Hints:
 +
*The exercise belongs to the chapter&nbsp; [[Theory_of_Stochastic_Signals/Mengentheoretische_Grundlagen|Set theory basic]].
 +
*The topic of this chapter is illustrated with examples in the (German language) learning video:&nbsp;
  
 +
:[[Mengentheoretische_Begriffe_und_Gesetzmäßigkeiten_(Lernvideo)|"Mengentheoretische Begriffe und Gesetzmäßigkeiten"]] &nbsp; &rArr; &nbsp; "Set-theoretical terms and laws".
  
''Hinweise:''
 
*Die Aufgabe gehört zum  Kapitel&nbsp; [[Theory_of_Stochastic_Signals/Mengentheoretische_Grundlagen|Mengentheoretische Grundlagen]].
 
 
*Eine Zusammenfassung der theoretischen Grundlagen mit Beispielen bringt das Lernvideo&nbsp; [[Mengentheoretische_Begriffe_und_Gesetzmäßigkeiten_(Lernvideo)|Mengentheoretische Begriffe und Gesetzmäßigkeiten]].
 
  
  
  
 
+
===Questions===
===Fragebogen zu "A1.2 Schaltlogik (D/B-Wandler)"===
 
  
 
<quiz display=simple>
 
<quiz display=simple>
{Welche Aussagen sind bezüglich der Zufallsgröße&nbsp; $U$&nbsp; zutreffend?
+
{Which statements are true regarding the random variable&nbsp; $U$?
 
|type="[]"}
 
|type="[]"}
- $U$&nbsp; beinhaltet zwei Elemente.
+
- $U$&nbsp; contains two elements.
+ $U$&nbsp; beinhaltet vier Elemente.
+
+ $U$&nbsp; contains four elements.
- Das kleinste Element von&nbsp; $U$&nbsp; ist&nbsp; $4$.
+
- The smallest element of&nbsp; $U$&nbsp; is&nbsp; $4$.
+ Das größte Element von&nbsp; $U$&nbsp; ist&nbsp; $14$.
+
+ The largest element of&nbsp; $U$&nbsp; is&nbsp; $14$.
  
{Welche Aussagen sind bezüglich der Zufallsgröße&nbsp; $V$&nbsp; zutreffend?
+
{Which statements are true regarding the random variable&nbsp; $V$?
 
|type="[]"}
 
|type="[]"}
+ $V$&nbsp; beinhaltet zwei Elemente.
+
+ $V$&nbsp; contains two elements.
- $V$&nbsp; beinhaltet vier Elemente.
+
- $V$&nbsp; contains four elements.
+ Das kleinste Element von&nbsp; $V$&nbsp; ist&nbsp; $4$.
+
+ The smallest element of&nbsp; $V$&nbsp; is&nbsp; $4$.
- Das größte Element von&nbsp; $V$&nbsp; ist&nbsp; $14$.
+
- The largest element of&nbsp; $V$&nbsp; is&nbsp; $14$.
 
 
{Welche Aussagen sind bezüglich der Zufallsgröße&nbsp; $W$&nbsp; zutreffend?  
+
{Which statements are true regarding the random variable&nbsp; $W$?
 
|type="[]"}
 
|type="[]"}
+ $W$&nbsp; beinhaltet zwei Elemente.
+
+ $W$&nbsp; contains two elements.
- $W$&nbsp; beinhaltet vier Elemente.
+
- $W$&nbsp; contains four elements.
- Das kleinste Element von&nbsp; $W$&nbsp; ist&nbsp; $4$.
+
- The smallest element of&nbsp; $W$&nbsp; is&nbsp; $4$.
- Das größte Element von&nbsp; $W$&nbsp; ist&nbsp; $14$.
+
- The largest element of&nbsp; $W$&nbsp; is&nbsp; $14$.
  
{Welche Aussagen sind bezüglich der Zufallsgröße&nbsp; $P$&nbsp; zutreffend?
+
{Which statements are true regarding the random quantity&nbsp; $P$&nbsp;?
 
|type="()"}
 
|type="()"}
- $P$&nbsp; beinhaltet alle Zweierpotenzen.
+
- $P$&nbsp; contains all powers of two.
+ $P$&nbsp; beinhaltet alle Primzahlen.
+
+ $P$&nbsp; contains all prime numbers.
- $P$&nbsp; beschreibt die leere Menge <math>\phi</math> .
+
- $P$&nbsp; describes the empty set&nbsp; $\phi$.
- $P$&nbsp; ist identisch mit der Grundmenge&nbsp; $G = {1,2, \ \text{...} \ , 15}$.
+
- $P$&nbsp; is identical with the universal set&nbsp; $G = {1,2, \ \text{...} \ , 15}$.
  
 
</quiz>
 
</quiz>
  
  
===Musterlösung===
+
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
'''(1)'''&nbsp; Das Ereignis&nbsp; $U$&nbsp; beinhaltet
+
'''(1)'''&nbsp; The event&nbsp; $U$&nbsp; contains
*diejenigen Zahlen größer/gleich acht&nbsp; $(A = 1)$,&nbsp;  
+
*those numbers greater/equal to eight&nbsp; $(A = 1)$,&nbsp;  
*die gerade sind&nbsp; $(D = 0)$:&nbsp; $8, 10, 12, 14$ &nbsp;  
+
*which are even&nbsp; $(D = 0)$:&nbsp; $8, 10, 12, 14$ &nbsp;  
  
  
⇒  &nbsp; Richtig sind die <u>Lösungsvorschläge 2 und 4</u>.
+
⇒  &nbsp;<u>Proposed solutions 2 and 4</u>&nbsp; are correct.
  
  
'''(2)'''&nbsp; Das Ereignis&nbsp; $V$&nbsp; besteht aus den beiden Zahlen&nbsp; $4$&nbsp; (binär 0100) und&nbsp; $6$&nbsp; (binär 0110)  &nbsp;
+
'''(2)'''&nbsp; The event&nbsp; $V$&nbsp; consists of the two numbers&nbsp; $4$&nbsp; (binary 0100) and&nbsp; $6$&nbsp; (binary 0110)  &nbsp; ⇒  &nbsp;  The correct <u>solutions are 1 and 3</u>.
 
⇒  &nbsp;  Richtig sind hier die <u>Lösungsvorschläge 1 und 3</u>.
 
  
  
[[File:P_ID2848__Sto_A_1_2c.png|right|frame|Hilfs–Venndiagramm]]
+
[[File:P_ID2848__Sto_A_1_2c.png|right|frame|Auxiliary Venn diagram]]
'''(3)'''&nbsp; Für das Ereignis&nbsp; $W$&nbsp; gilt mit dem Theorem von de Morgan:
+
'''(3)'''&nbsp; For the event&nbsp; $W$,&nbsp; de Morgan's theorem holds:
  
 
:$$\overline W = \overline A \cup \overline D \cup (\overline B \cap C) \cup (B \cap \overline C)
 
:$$\overline W = \overline A \cup \overline D \cup (\overline B \cap C) \cup (B \cap \overline C)
 
\hspace{0.3cm} \Rightarrow \hspace{0.3cm} W = \overline{\overline W} = A \cap D \cap (\overline{\overline B \cap C}) \cap (\overline{B \cap \overline C}).$$
 
\hspace{0.3cm} \Rightarrow \hspace{0.3cm} W = \overline{\overline W} = A \cap D \cap (\overline{\overline B \cap C}) \cap (\overline{B \cap \overline C}).$$
  
*Mit den Sätzen von de Morgan folgt daraus weiter:
+
*Using de Morgan's theorems,&nbsp; it further follows:
  
 
:$$ W = A \cap D \cap (B \cup \overline C) \cap (\overline B \cup C).$$
 
:$$ W = A \cap D \cap (B \cup \overline C) \cap (\overline B \cup C).$$
  
*Mit der Boolschen Beziehung&nbsp; $(B \cup \overline C) \cap (\overline B \cup C) = (B \cap C) \cup (\overline B \cap \overline C)$&nbsp; erhält man schließlich (siehe Skizze):
+
*Finally,&nbsp; using the Boolean relation&nbsp; $(B \cup \overline C) \cap (\overline B \cup C) = (B \cap C) \cup (\overline B \cap \overline C)$&nbsp; we obtain&nbsp; (see sketch):
  
 
:$$W = (A \cap B \cap C \cap D) \cup (A \cap \overline B \cap \overline C \cap D).$$
 
:$$W = (A \cap B \cap C \cap D) \cup (A \cap \overline B \cap \overline C \cap D).$$
  
*Somit beinhaltet&nbsp; $W$&nbsp; die Zahlen&nbsp; $15$&nbsp; und&nbsp; $9$&nbsp;  &nbsp;  
+
*Thus,&nbsp; $W$&nbsp; contains the numbers&nbsp; $15$&nbsp; and&nbsp; $9$&nbsp;  &nbsp; ⇒  &nbsp;  only the&nbsp; <u>proposed solution 1</u>&nbsp; is correct.
 
 
  
⇒  &nbsp;  nur der <u>Lösungsvorschlag 1</u> ist richtig.
 
  
  
'''(4)'''&nbsp; Die Vereinigungsmenge von&nbsp; $U$,&nbsp; $V$&nbsp; und&nbsp; $W$&nbsp; beinhaltet folgende Zahlen: &nbsp; $4, 6, 8, 9, 10, 12, 14, 15$.
+
'''(4)'''&nbsp; The union of&nbsp; $U$,&nbsp; $V$&nbsp; and&nbsp; $W$&nbsp; contains the following numbers: &nbsp; $4, 6, 8, 9, 10, 12, 14, 15$.
  
*Dementsprechend gilt für die Menge&nbsp; $P$&nbsp; als das Komplement dieser Vereinigungsmenge: &nbsp; $P \in {\{1, 2, 3, 5, 7, 11, 13\}}$.
+
*Accordingly, the set&nbsp; $P$&nbsp; as the complement of this union is: &nbsp;  
 +
:$$P = {\{1, 2, 3, 5, 7, 11, 13\}}.$$
  
*Dies sind genau die mit vier Bit darstellbaren Primzahlen &nbsp; ⇒  &nbsp;  <u>Lösungsvorschlag 2</u>.
+
*These are exactly the prime numbers which can be represented with four bits &nbsp; ⇒  &nbsp;  <u>Proposed solution 2</u>.
 
{{ML-Fuß}}
 
{{ML-Fuß}}
  
  
  
[[Category:Theory of Stochastic Signals: Exercises|^1.2 Mengentheoretische Grundlagen^]]
+
[[Category:Theory of Stochastic Signals: Exercises|^1.2 Set Theory Basics^]]

Latest revision as of 21:33, 28 November 2021

Logical circuit for D/B converting

A number generator  $Z$  supplies decimal values in the range  $1$  to  $15$.

  • These are converted into binary numbers  (block outlined in red).
  • The output consists of the four binary values  $A$,  $B$,  $C$  and  $D$  with decreasing significance.
  • For example  $Z = 11$  delivers the binary values
$$ A = 1, \ B = 0, \ C = 1, \ D = 1. $$

Set-theoretically,  this can be represented as follows:

$$ Z = 11\qquad\widehat{=}\qquad A \cap\overline{ B} \cap C \cap D.$$

Three more Boolean expressions are formed from the binary quantities  $A$,  $B$,  $C$  and  $D$  and their union set is denoted  $X$ :

\[ U = A \cap \overline{D} \]
\[ V = \overline{A} \cap B \cap \overline{D} \]
$$W,\; {\rm where} \; \, \overline{W} = \overline{A} \cup \overline{D} \cup (\overline{B} \cap C) \cup (B \cap \overline{C}). $$
  • Note that  $Z = 0 \ ⇒ \ A = B = C = D = 0$  is already excluded by the number generator.
  • Note also that not all input quantities  $A$,  $B$,  $C$  and  $D$  are used to calculate all intermediate quantities  $U$,  $V$  and  $W$,  resp.



Hints:

  • The exercise belongs to the chapter  Set theory basic.
  • The topic of this chapter is illustrated with examples in the (German language) learning video: 
"Mengentheoretische Begriffe und Gesetzmäßigkeiten"   ⇒   "Set-theoretical terms and laws".



Questions

1

Which statements are true regarding the random variable  $U$?

$U$  contains two elements.
$U$  contains four elements.
The smallest element of  $U$  is  $4$.
The largest element of  $U$  is  $14$.

2

Which statements are true regarding the random variable  $V$?

$V$  contains two elements.
$V$  contains four elements.
The smallest element of  $V$  is  $4$.
The largest element of  $V$  is  $14$.

3

Which statements are true regarding the random variable  $W$?

$W$  contains two elements.
$W$  contains four elements.
The smallest element of  $W$  is  $4$.
The largest element of  $W$  is  $14$.

4

Which statements are true regarding the random quantity  $P$ ?

$P$  contains all powers of two.
$P$  contains all prime numbers.
$P$  describes the empty set  $\phi$.
$P$  is identical with the universal set  $G = {1,2, \ \text{...} \ , 15}$.


Solution

(1)  The event  $U$  contains

  • those numbers greater/equal to eight  $(A = 1)$, 
  • which are even  $(D = 0)$:  $8, 10, 12, 14$  


⇒  Proposed solutions 2 and 4  are correct.


(2)  The event  $V$  consists of the two numbers  $4$  (binary 0100) and  $6$  (binary 0110)   ⇒   The correct solutions are 1 and 3.


Auxiliary Venn diagram

(3)  For the event  $W$,  de Morgan's theorem holds:

$$\overline W = \overline A \cup \overline D \cup (\overline B \cap C) \cup (B \cap \overline C) \hspace{0.3cm} \Rightarrow \hspace{0.3cm} W = \overline{\overline W} = A \cap D \cap (\overline{\overline B \cap C}) \cap (\overline{B \cap \overline C}).$$
  • Using de Morgan's theorems,  it further follows:
$$ W = A \cap D \cap (B \cup \overline C) \cap (\overline B \cup C).$$
  • Finally,  using the Boolean relation  $(B \cup \overline C) \cap (\overline B \cup C) = (B \cap C) \cup (\overline B \cap \overline C)$  we obtain  (see sketch):
$$W = (A \cap B \cap C \cap D) \cup (A \cap \overline B \cap \overline C \cap D).$$
  • Thus,  $W$  contains the numbers  $15$  and  $9$    ⇒   only the  proposed solution 1  is correct.


(4)  The union of  $U$,  $V$  and  $W$  contains the following numbers:   $4, 6, 8, 9, 10, 12, 14, 15$.

  • Accordingly, the set  $P$  as the complement of this union is:  
$$P = {\{1, 2, 3, 5, 7, 11, 13\}}.$$
  • These are exactly the prime numbers which can be represented with four bits   ⇒   Proposed solution 2.