Note 1: ETH::A&D
Note Type: Horvath Cloze
GUID:
H0^#YREe-o
Before
Front
Back
After
Front
Back
Field-by-field Comparison
| Field | Before | After |
|---|---|---|
| Text | A <b>2-3 Tree</b> is |
A <b>2-3 Tree</b> is {{c1::an external}} search-tree. |
Note 2: ETH::A&D
Note Type: Horvath Cloze
GUID:
Pf|C9|^n[w
Before
Front
- Insert is \(\Theta(1)\) as we know the memory address of the final element in the list and just have to set the null pointer to the new keys address. Without this pointer it's \(\Theta(l)\).
- Get is \(\Theta(i)\) very slow as we need to traverse the entire list up to i
- insertAfter is \(O(1)\) if we get the memory address of the element to insert after.
- delete is:
SLL: {{c4::\(\Theta(l)\) as we need to find the previous element and change it's pointer.}
DLL: \(O(1)\) we know the address of the previous element and then just edit it's pointer.
Back
- Insert is \(\Theta(1)\) as we know the memory address of the final element in the list and just have to set the null pointer to the new keys address. Without this pointer it's \(\Theta(l)\).
- Get is \(\Theta(i)\) very slow as we need to traverse the entire list up to i
- insertAfter is \(O(1)\) if we get the memory address of the element to insert after.
- delete is:
SLL: {{c4::\(\Theta(l)\) as we need to find the previous element and change it's pointer.}
DLL: \(O(1)\) we know the address of the previous element and then just edit it's pointer.
After
Front
- Insert is \(\Theta(1)\) as we know the memory address of the final element in the list and just have to set the null pointer to the new keys address. Without this pointer it's \(\Theta(l)\).
- Get is \(\Theta(i)\) very slow as we need to traverse the entire list up to i
- insertAfter is \(O(1)\) if we get the memory address of the element to insert after.
- delete is:
SLL: {{c4::\(\Theta(l)\) as we need to find the previous element and change it's pointer}.}
DLL: \(O(1)\) we know the address of the previous element and then just edit it's pointer.
Back
- Insert is \(\Theta(1)\) as we know the memory address of the final element in the list and just have to set the null pointer to the new keys address. Without this pointer it's \(\Theta(l)\).
- Get is \(\Theta(i)\) very slow as we need to traverse the entire list up to i
- insertAfter is \(O(1)\) if we get the memory address of the element to insert after.
- delete is:
SLL: {{c4::\(\Theta(l)\) as we need to find the previous element and change it's pointer}.}
DLL: \(O(1)\) we know the address of the previous element and then just edit it's pointer.
Field-by-field Comparison
| Field | Before | After |
|---|---|---|
| Text | In a <b>singly</b> and <b>doubly linked list</b>, the operation:<br><ul><li><b>Insert</b> is {{c1::\(\Theta(1)\) as we know the memory address of the final element in the list and just have to set the null pointer to the new keys address. Without this pointer it's \(\Theta(l)\). }}<br></li><li><b>Get</b> is {{c2::\(\Theta(i)\) very slow as we need to traverse the entire list up to <b>i</b>}}<br></li><li><b>insertAfter</b> is {{c3:: \(O(1)\) if we get the memory address of the element to insert after.}}<br></li><li><b>delete</b> is:<br> SLL: {{c4::\(\Theta(l)\) as we need to find the previous element and change it's pointer.}<br> DLL: {{c5:: \(O(1)\) we know the address of the previous element and then just edit it's pointer.}}</li></ul> | In a <b>singly</b> and <b>doubly linked list</b>, the operation:<br><ul><li><b>Insert</b> is {{c1::\(\Theta(1)\) as we know the memory address of the final element in the list and just have to set the null pointer to the new keys address. Without this pointer it's \(\Theta(l)\). }}<br></li><li><b>Get</b> is {{c2::\(\Theta(i)\) very slow as we need to traverse the entire list up to <b>i</b>}}<br></li><li><b>insertAfter</b> is {{c3:: \(O(1)\) if we get the memory address of the element to insert after.}}<br></li><li><b>delete</b> is:<br> SLL: {{c4::\(\Theta(l)\) as we need to find the previous element and change it's pointer}.}<br> DLL: {{c5:: \(O(1)\) we know the address of the previous element and then just edit it's pointer.}}</li></ul> |
Note 3: ETH::DiskMat
Note Type: Horvath Classic
GUID:
M035/^ZEJ$
Before
Front
Back
if \(n\) is written \(n = p_1^{e_1} \times p_2^{e_2} \times ... \times p_k^{e_k}\) then it is \(\prod_{i=1}^k (e_i+1)\)
After
Front
Back
if \(n\) is written \(n = p_1^{e_1} \times p_2^{e_2} \times ... \times p_k^{e_k}\) then it is \(\prod_{i=1}^k (e_i+1)\)
Field-by-field Comparison
| Field | Before | After |
|---|---|---|
| Back | it is the number of divisors of \(n\)<br>if \(n\) is written \(n = p_1^{e_1} \times p_2^{e_2} \times ... \times p_k^{e_k}\) then it is \(\prod_{i=1}^k (e_i+1)\) | it is the number of divisors of \(n\) (as the order of each subgroup divides the group order (which is n here) by Lagrange). <br>if \(n\) is written \(n = p_1^{e_1} \times p_2^{e_2} \times ... \times p_k^{e_k}\) then it is \(\prod_{i=1}^k (e_i+1)\) |
Note 4: ETH::DiskMat
Note Type: Horvath Cloze
GUID:
kC`G6X,/]b
Previous
Note did not exist
New Note
Front
Back
Field-by-field Comparison
| Field | Before | After |
|---|---|---|
| Text | \(\gcd(a, 0) = \) {{c1::\(|a|\)}} | |
| Extra | This is why \(0\) not in \(Z_m^* \) and \(F[x]^*_{m(x)}\) |
Note 5: ETH::DiskMat
Note Type: Horvath Classic
GUID:
lq:b}[Y<9t
Before
Front
Lagrange Interpolation for polynomials in a Field
Back
Lagrange Interpolation for polynomials in a Field
Let \(\beta_i = a(\alpha_i)\) for \(i = 1, \dots, d+1\).
Then \(a(x)\) is given by Lagrange's Interpolation formula: \[a(x) = \sum_{i=1}^{d+1} \beta_i u_i(x)\] where the polynomial \(u_i(x)\) is: \[u_i(x) = \frac{{{c2::(x - \alpha_1) \cdots (x - \alpha_{i-1})(x - \alpha_{i+1}) \cdots (x - \alpha_{d+1})}}}{{{c3::(\alpha_i - \alpha_1) \cdots (\alpha_i - \alpha_{i-1})(\alpha_i - \alpha_{i+1}) \cdots (\alpha_i - \alpha_{d+1})}}}\]
Note that for \(u_i(x)\) to be well-defined, all constant terms \(\alpha_i - \alpha_j\) in the denominator must be invertible. This is guaranteed in a field since \(a_i - a_j \neq 0\) for \(i \neq j\) (as they are all distinct).
After
Front
Lagrange Interpolation for polynomials in a Field
Back
Lagrange Interpolation for polynomials in a Field
Let \(\beta_i = a(\alpha_i)\) for \(i = 1, \dots, d+1\) where Then \(\alpha_i\) distinct for all \(i.\)
\(a(x)\) is given by Lagrange's Interpolation formula: \[a(x) = \sum_{i=1}^{d+1} \beta_i u_i(x)\] where the polynomial \(u_i(x)\) is: \[u_i(x) = \frac{(x - \alpha_1) \cdots (x - \alpha_{i-1})(x - \alpha_{i+1}) \cdots (x - \alpha_{d+1})}{(\alpha_i - \alpha_1) \cdots (\alpha_i - \alpha_{i-1})(\alpha_i - \alpha_{i+1}) \cdots (\alpha_i - \alpha_{d+1})}\]
Note that for \(u_i(x)\) to be well-defined, all constant terms \(\alpha_i - \alpha_j\) in the denominator must be invertible. This is guaranteed in a field since \(\alpha_i - \alpha_j \neq 0\) for \(i \neq j\) (as they are all distinct).
Field-by-field Comparison
| Field | Before | After |
|---|---|---|
| Back | <p>Let \(\beta_i = a(\alpha_i)\) for \(i = 1, \dots, d+1\) |
<p>Let \(\beta_i = a(\alpha_i)\) for \(i = 1, \dots, d+1\) where Then \(\alpha_i\) distinct for all \(i.\)</p><p><br>\(a(x)\) is given by Lagrange's Interpolation formula: \[a(x) = \sum_{i=1}^{d+1} \beta_i u_i(x)\] where the polynomial \(u_i(x)\) is: \[u_i(x) = \frac{(x - \alpha_1) \cdots (x - \alpha_{i-1})(x - \alpha_{i+1}) \cdots (x - \alpha_{d+1})}{(\alpha_i - \alpha_1) \cdots (\alpha_i - \alpha_{i-1})(\alpha_i - \alpha_{i+1}) \cdots (\alpha_i - \alpha_{d+1})}\]</p> <p>Note that for \(u_i(x)\) to be well-defined, all constant terms \(\alpha_i - \alpha_j\) in the denominator must be invertible. This is guaranteed in a field since \(\alpha_i - \alpha_j \neq 0\) for \(i \neq j\) (as they are all distinct).</p> |
Note 6: ETH::DiskMat
Note Type: Horvath Cloze
GUID:
oPaK;$.R2B
Before
Front
An irreducible polynomial has no roots in the field. It has to have degree \(\geq 2\).
Back
An irreducible polynomial has no roots in the field. It has to have degree \(\geq 2\).
After
Front
An irreducible polynomial has no roots in the field. It has to have degree \(\geq 2\).
Back
An irreducible polynomial has no roots in the field. It has to have degree \(\geq 2\).
Proof: If it had a root \(\alpha\), then \((x - \alpha)\) would divide it by Lemma 5.29, contradicting irreducibility.
Field-by-field Comparison
| Field | Before | After |
|---|---|---|
| Extra | <strong>Proof</strong>: If it had a root \(\alpha\), then \((x - \alpha)\) would divide it by Lemma 5.29, contradicting irreducibility. | <strong>Note that this is not a sufficient condition (no roots does not imply irreducible)!<br><br>Proof</strong>: If it had a root \(\alpha\), then \((x - \alpha)\) would divide it by Lemma 5.29, contradicting irreducibility. |
Note 7: ETH::DiskMat
Note Type: Horvath Classic
GUID:
r3)589~fN6
Before
Front
What is the cardinality of \(F[x]_{m(x)}\)?
Back
What is the cardinality of \(F[x]_{m(x)}\)?
Lemma 5.34: Let \(F\) be a finite field with \(q\) elements and let \(m(x)\) be a polynomial of degree \(d\) over \(F\). Then: \[|F[x]_{m(x)}| = q^d\]
Explanation: Each polynomial has \(d\) coefficients, and each coefficient can be any of \(q\) elements from \(F\).
After
Front
What is the cardinality of \(F[x]_{m(x)}\)?
Back
What is the cardinality of \(F[x]_{m(x)}\)?
Lemma 5.34: Let \(F\) be a finite field with \(q\) elements and let \(m(x)\) be a polynomial of degree \(d\) over \(F\). Then: \[|F[x]_{m(x)}| = q^d\]
Explanation: Each polynomial has \(d\) coefficients (from \(0, \dots, d - 1\)), and each coefficient can be any of \(q\) elements from \(F\).
Field-by-field Comparison
| Field | Before | After |
|---|---|---|
| Back | <p><strong>Lemma 5.34</strong>: Let \(F\) be a finite field with \(q\) elements and let \(m(x)\) be a polynomial of degree \(d\) over \(F\). Then: \[|F[x]_{m(x)}| = q^d\]</p>
<p><strong>Explanation</strong>: Each polynomial has \(d\) coefficients, and each coefficient can be any of \(q\) elements from |
<p><strong>Lemma 5.34</strong>: Let \(F\) be a finite field with \(q\) elements and let \(m(x)\) be a polynomial of degree \(d\) over \(F\). Then: \[|F[x]_{m(x)}| = q^d\]</p> <p><strong>Explanation</strong>: Each polynomial has \(d\) coefficients (from \(0, \dots, d - 1\)), and each coefficient can be any of \(q\) elements from \(F\).</p> |
Note 8: ETH::DiskMat
Note Type: Horvath Classic
GUID:
tXnVRUZ1r.
Before
Front
Back
For example NOT, AND, OR can be expressed in NAND form, thus we can rewritten in CNF (or DNF) then NANDs (by simply replacing).
After
Front
Back
For example NOT, AND, OR can be expressed in NAND form, thus we can rewritten in CNF (or DNF) then NANDs (by simply replacing). As we can write every formula in CNF (or DNF) this prooves it.
Field-by-field Comparison
| Field | Before | After |
|---|---|---|
| Back | \(\lnot F\), \(F \lor G\) and \(F \land G\) can be rewritten <b>only</b> in terms of it.<br><br>For example NOT, AND, OR can be expressed in NAND form, thus we can rewritten in |
\(\lnot F\), \(F \lor G\) and \(F \land G\) can be rewritten <b>only</b> in terms of it.<br><br>For example NOT, AND, OR can be expressed in NAND form, thus we can rewritten in <b>CNF</b> (or DNF) then NANDs (by simply replacing). As we can write every formula in CNF (or DNF) this prooves it. |
Note 9: ETH::DiskMat
Note Type: Horvath Classic
GUID:
wV8=4Xrwg1
Previous
Note did not exist
New Note
Front
Back
Field-by-field Comparison
| Field | Before | After |
|---|---|---|
| Front | \(F[x]_{m(x)}^*\) is defined as: | |
| Back | \[\{ a(x) \in F[x]_{m(x)} \ | \ \gcd(a(x), m(x)) = 1 \}\] |