Compare commits
1 Commits
735681d0ee
...
main
Author | SHA1 | Date | |
---|---|---|---|
0b7acaf5ae |
@ -46,10 +46,10 @@ Use two half adders to construct a full adder.
|
|||||||
|
|
||||||
#solution([
|
#solution([
|
||||||
$
|
$
|
||||||
s_1, c_1 &= "HA"(a, b) \
|
s_1, c_1 & = "HA"(a, b) \
|
||||||
s_2, c_2 &= "HA"(s_1, c_"in") \
|
s_2, c_2 & = "HA"(s_1, c_"in") \
|
||||||
s_"out" &= s_2 \
|
s_"out" & = s_2 \
|
||||||
c_"out" &= "OR"(c_1, c_2)
|
c_"out" & = "OR"(c_1, c_2)
|
||||||
$
|
$
|
||||||
|
|
||||||
#v(2mm)
|
#v(2mm)
|
||||||
|
@ -17,7 +17,9 @@ Maximize the product $a_1 #sym.times a_2 #sym.times ... #sym.times a_k$
|
|||||||
Of course, all $a_i$ should be greater than $1$. \
|
Of course, all $a_i$ should be greater than $1$. \
|
||||||
Also, all $a_i$ should be smaller than four, since $x <= x(x-2)$ if $x >= 4$. \
|
Also, all $a_i$ should be smaller than four, since $x <= x(x-2)$ if $x >= 4$. \
|
||||||
Thus, we're left with sequences that only contain 2 and 3. \
|
Thus, we're left with sequences that only contain 2 and 3. \
|
||||||
#note([Note that two twos are the same as one four, but we exclude fours for simplicity.])
|
#note(
|
||||||
|
[Note that two twos are the same as one four, but we exclude fours for simplicity.],
|
||||||
|
)
|
||||||
|
|
||||||
#v(2mm)
|
#v(2mm)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user