Anki Deck Changes

Commit: 5e1c08cd - housekeeping

Author: lhorva <lhorva@student.ethz.ch>

Date: 2026-01-05T02:48:49+01:00

Changes: 34 note(s) changed (0 added, 33 modified, 1 deleted)

ℹ️ Cosmetic Changes Hidden: 4 note(s) had formatting-only changes and are not shown below • 1 HTML formatting changes • 2 mixed cosmetic changes

Note 1: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Cloze
GUID: Bz)mOB:[n-
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Runtime of: Search, Inserting, Deleting:  \(O(\log n)\) 

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Runtime of: Search, Inserting, Deleting:  \(O(\log n)\) 

This is because the tree is now forced to be balanced and \(h \leq \log_2 n\).

After

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: The runtime of search, insertion and deletion is \(O(\log n)\).

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: The runtime of search, insertion and deletion is \(O(\log n)\).

This is because the tree is now forced to be balanced and \(h \leq \log_2 n\).
Field-by-field Comparison
Field Before After
Text <b>2-3 Tree</b>: Runtime of: Search, Inserting, Deleting: {{c1::&nbsp;\(O(\log n)\)}}&nbsp; <b>2-3 Tree</b>: The runtime of search, insertion and deletion is{{c1::&nbsp;\(O(\log n)\)}}.
Tags: ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees

Note 2: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Cloze
GUID: F^&OZQURkx
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::5._Queue
The ADT queue can be efficiently implemented using a  singly linked list with a pointer to the end:
  • push:   \(O(1)\) insert at the end, with pointer to the end
  • pop:   \(O(1)\) remove the first element like in a stack

Back

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::5._Queue
The ADT queue can be efficiently implemented using a  singly linked list with a pointer to the end:
  • push:   \(O(1)\) insert at the end, with pointer to the end
  • pop:   \(O(1)\) remove the first element like in a stack

After

Front

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::5._Queue
The ADT queue can be efficiently implemented using a singly linked list with a pointer to the end:
  • push:   \(O(1)\) insert at the end, with pointer to the end
  • pop:   \(O(1)\) remove the first element like in a stack

Back

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::5._Queue
The ADT queue can be efficiently implemented using a singly linked list with a pointer to the end:
  • push:   \(O(1)\) insert at the end, with pointer to the end
  • pop:   \(O(1)\) remove the first element like in a stack
Field-by-field Comparison
Field Before After
Text The ADT&nbsp;<b>queue</b>&nbsp;can be efficiently implemented using a {{c1::&nbsp;<b>singly linked list with a pointer to the end</b>}}:<br><ul><li><b>push</b>: {{c2::&nbsp; \(O(1)\)&nbsp;insert at the end, with pointer to the end}}<br></li><li><b>pop</b>: {{c3::&nbsp; \(O(1)\)&nbsp;remove the first element like in a stack}}</li></ul> The ADT&nbsp;<b>queue</b>&nbsp;can be efficiently implemented using a {{c1::<b>singly linked list with a pointer to the end</b>}}:<br><ul><li><b>push</b>: {{c2::&nbsp; \(O(1)\)&nbsp;insert at the end, with pointer to the end}}<br></li><li><b>pop</b>: {{c3::&nbsp; \(O(1)\)&nbsp;remove the first element like in a stack}}</li></ul>
Tags: ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::5._Queue

Note 3: ETH::A&D

Deck: ETH::A&D
Note Type: Image Occlusion-73a2c
GUID: GKG~Tp?e4l
modified

Before

Front

Note that the key parameter of insertAfter and delete in lists refers to the actual node, not it's value.
image-occlusion:rect:left=.4376:top=.3086:width=.0897:height=.1152:oi=1
image-occlusion:rect:left=.5886:top=.3086:width=.0831:height=.1029:oi=1
image-occlusion:rect:left=.7921:top=.3128:width=.0853:height=.107:oi=1
image-occlusion:rect:left=.4376:top=.4486:width=.0897:height=.0947:oi=1
image-occlusion:rect:left=.5908:top=.4444:width=.0788:height=.0947:oi=1
image-occlusion:rect:left=.7899:top=.4444:width=.0831:height=.107:oi=1
image-occlusion:rect:left=.7899:top=.5797:width=.0856:height=.0915:oi=1
image-occlusion:rect:left=.7831:top=.7114:width=.0963:height=.0823:oi=1
image-occlusion:rect:left=.5908:top=.6996:width=.0766:height=.0864:oi=1
image-occlusion:rect:left=.5864:top=.5679:width=.0853:height=.0905:oi=1
image-occlusion:rect:left=.4398:top=.5638:width=.0941:height=.1029:oi=1
image-occlusion:rect:left=.4442:top=.7114:width=.081:height=.0823:oi=1

Back

Note that the key parameter of insertAfter and delete in lists refers to the actual node, not it's value.
image-occlusion:rect:left=.4376:top=.3086:width=.0897:height=.1152:oi=1
image-occlusion:rect:left=.5886:top=.3086:width=.0831:height=.1029:oi=1
image-occlusion:rect:left=.7921:top=.3128:width=.0853:height=.107:oi=1
image-occlusion:rect:left=.4376:top=.4486:width=.0897:height=.0947:oi=1
image-occlusion:rect:left=.5908:top=.4444:width=.0788:height=.0947:oi=1
image-occlusion:rect:left=.7899:top=.4444:width=.0831:height=.107:oi=1
image-occlusion:rect:left=.7899:top=.5797:width=.0856:height=.0915:oi=1
image-occlusion:rect:left=.7831:top=.7114:width=.0963:height=.0823:oi=1
image-occlusion:rect:left=.5908:top=.6996:width=.0766:height=.0864:oi=1
image-occlusion:rect:left=.5864:top=.5679:width=.0853:height=.0905:oi=1
image-occlusion:rect:left=.4398:top=.5638:width=.0941:height=.1029:oi=1
image-occlusion:rect:left=.4442:top=.7114:width=.081:height=.0823:oi=1

After

Front

Note that the key parameter of insertAfter and delete in lists refers to the actual node, not it's value.
image-occlusion:rect:left=.4368:top=.3055:width=.0903:height=.1154:oi=1
image-occlusion:rect:left=.444:top=.6997:width=.0794:height=.0947:oi=1
image-occlusion:rect:left=.4404:top=.5635:width=.0939:height=.1018:oi=1
image-occlusion:rect:left=.7906:top=.4413:width=.083:height=.1086:oi=1
image-occlusion:rect:left=.7834:top=.6972:width=.0975:height=.0972:oi=1
image-occlusion:rect:left=.5848:top=.5703:width=.0866:height=.0976:oi=1
image-occlusion:rect:left=.4368:top=.4481:width=.0903:height=.0951:oi=1
image-occlusion:rect:left=.5921:top=.6993:width=.0758:height=.091:oi=1
image-occlusion:rect:left=.7906:top=.3123:width=.0866:height=.1086:oi=1
image-occlusion:rect:left=.7906:top=.5771:width=.0866:height=.0883:oi=1
image-occlusion:rect:left=.5884:top=.3055:width=.083:height=.1018:oi=1
image-occlusion:rect:left=.5921:top=.4413:width=.0794:height=.0951:oi=1

Back

Note that the key parameter of insertAfter and delete in lists refers to the actual node, not it's value.
image-occlusion:rect:left=.4368:top=.3055:width=.0903:height=.1154:oi=1
image-occlusion:rect:left=.444:top=.6997:width=.0794:height=.0947:oi=1
image-occlusion:rect:left=.4404:top=.5635:width=.0939:height=.1018:oi=1
image-occlusion:rect:left=.7906:top=.4413:width=.083:height=.1086:oi=1
image-occlusion:rect:left=.7834:top=.6972:width=.0975:height=.0972:oi=1
image-occlusion:rect:left=.5848:top=.5703:width=.0866:height=.0976:oi=1
image-occlusion:rect:left=.4368:top=.4481:width=.0903:height=.0951:oi=1
image-occlusion:rect:left=.5921:top=.6993:width=.0758:height=.091:oi=1
image-occlusion:rect:left=.7906:top=.3123:width=.0866:height=.1086:oi=1
image-occlusion:rect:left=.7906:top=.5771:width=.0866:height=.0883:oi=1
image-occlusion:rect:left=.5884:top=.3055:width=.083:height=.1018:oi=1
image-occlusion:rect:left=.5921:top=.4413:width=.0794:height=.0951:oi=1
Field-by-field Comparison
Field Before After
Occlusion {{c1::image-occlusion:rect:left=.4376:top=.3086:width=.0897:height=.1152:oi=1}}<br>{{c2::image-occlusion:rect:left=.5886:top=.3086:width=.0831:height=.1029:oi=1}}<br>{{c3::image-occlusion:rect:left=.7921:top=.3128:width=.0853:height=.107:oi=1}}<br>{{c4::image-occlusion:rect:left=.4376:top=.4486:width=.0897:height=.0947:oi=1}}<br>{{c5::image-occlusion:rect:left=.5908:top=.4444:width=.0788:height=.0947:oi=1}}<br>{{c6::image-occlusion:rect:left=.7899:top=.4444:width=.0831:height=.107:oi=1}}<br>{{c7::image-occlusion:rect:left=.7899:top=.5797:width=.0856:height=.0915:oi=1}}<br>{{c8::image-occlusion:rect:left=.7831:top=.7114:width=.0963:height=.0823:oi=1}}<br>{{c9::image-occlusion:rect:left=.5908:top=.6996:width=.0766:height=.0864:oi=1}}<br>{{c10::image-occlusion:rect:left=.5864:top=.5679:width=.0853:height=.0905:oi=1}}<br>{{c11::image-occlusion:rect:left=.4398:top=.5638:width=.0941:height=.1029:oi=1}}<br>{{c12::image-occlusion:rect:left=.4442:top=.7114:width=.081:height=.0823:oi=1}}<br> {{c1::image-occlusion:rect:left=.4368:top=.3055:width=.0903:height=.1154:oi=1}}<br>{{c12::image-occlusion:rect:left=.444:top=.6997:width=.0794:height=.0947:oi=1}}<br>{{c11::image-occlusion:rect:left=.4404:top=.5635:width=.0939:height=.1018:oi=1}}<br>{{c6::image-occlusion:rect:left=.7906:top=.4413:width=.083:height=.1086:oi=1}}<br>{{c8::image-occlusion:rect:left=.7834:top=.6972:width=.0975:height=.0972:oi=1}}<br>{{c10::image-occlusion:rect:left=.5848:top=.5703:width=.0866:height=.0976:oi=1}}<br>{{c4::image-occlusion:rect:left=.4368:top=.4481:width=.0903:height=.0951:oi=1}}<br>{{c9::image-occlusion:rect:left=.5921:top=.6993:width=.0758:height=.091:oi=1}}<br>{{c3::image-occlusion:rect:left=.7906:top=.3123:width=.0866:height=.1086:oi=1}}<br>{{c7::image-occlusion:rect:left=.7906:top=.5771:width=.0866:height=.0883:oi=1}}<br>{{c2::image-occlusion:rect:left=.5884:top=.3055:width=.083:height=.1018:oi=1}}<br>{{c5::image-occlusion:rect:left=.5921:top=.4413:width=.0794:height=.0951:oi=1}}<br>
Tags: ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List

Note 4: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Cloze
GUID: H0^#YREe-o
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree is an external search-tree.

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree is an external search-tree.

This means that the values are stored in the leaves only. The nodes are for "navigation".

After

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
The 2-3 Trees we are covering in this course are external search-trees.

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
The 2-3 Trees we are covering in this course are external search-trees.

This means that the values are stored in the leaves only. The nodes are for "navigation".
Field-by-field Comparison
Field Before After
Text A&nbsp;<b>2-3 Tree</b>&nbsp;is {{c1::an external}} search-tree. The&nbsp;<b>2-3 Trees </b>we are covering in this course are {{c1::external}} search-trees.
Tags: ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees

Note 5: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Cloze
GUID: H?Cs9sT6&{
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Inserting Steps:
  1. Search for the correct node under which the key is inserted: \(O(\log_2 n)\)
  2. Insert the new key value as a separator
  3. Rebalance (if necessary, i.e. more than 3 keys)
  • split node into two nodes (each gets 2 children and 1 seps)
  • the middle sep is pushed to the parent level (and propagate)

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Inserting Steps:
  1. Search for the correct node under which the key is inserted: \(O(\log_2 n)\)
  2. Insert the new key value as a separator
  3. Rebalance (if necessary, i.e. more than 3 keys)
  • split node into two nodes (each gets 2 children and 1 seps)
  • the middle sep is pushed to the parent level (and propagate)

The rebalancing being recursively pushed to the parent limits the operations at the height \(h\) thus we get \(O(\log n)\).

After

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Insertion steps:
  1. Search for the correct node under which the key is inserted: \(O(\log_2 n)\)
  2. Insert the new key value as a separator
  3. Rebalance (if necessary, i.e. more than 3 keys)
  • split node into two nodes (each gets 2 children and 1 seps)
  • the middle sep is pushed to the parent level (and propagate)

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Insertion steps:
  1. Search for the correct node under which the key is inserted: \(O(\log_2 n)\)
  2. Insert the new key value as a separator
  3. Rebalance (if necessary, i.e. more than 3 keys)
  • split node into two nodes (each gets 2 children and 1 seps)
  • the middle sep is pushed to the parent level (and propagate)

The rebalancing being recursively pushed to the parent limits the operations at the height \(h\) thus we get \(O(\log n)\).
Field-by-field Comparison
Field Before After
Text <b>2-3 Tree</b>: Inserting Steps:<br><ol><li>{{c1::Search for the correct node under which the key is inserted:&nbsp;\(O(\log_2 n)\)}}</li><li>{{c2::Insert the new key value as a&nbsp;<b>separator</b>}}</li><li>{{c3::<b>Rebalance</b>&nbsp;(if necessary, i.e. more than 3 keys)<br></li></ol><ul><li>split node into two nodes (each gets 2 children and 1 seps)</li><li>the middle sep is pushed to the parent level (and propagate)}}</li></ul> <b>2-3 Tree</b>: Insertion steps:<br><ol><li>{{c1::Search for the correct node under which the key is inserted:&nbsp;\(O(\log_2 n)\)}}</li><li>{{c2::Insert the new key value as a&nbsp;<b>separator</b>}}</li><li>{{c3::<b>Rebalance</b>&nbsp;(if necessary, i.e. more than 3 keys)<br></li></ol><ul><li>split node into two nodes (each gets 2 children and 1 seps)</li><li>the middle sep is pushed to the parent level (and propagate)}}</li></ul>
Tags: ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees

Note 6: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Cloze
GUID: Jp{gN:I7yh
modified

Before

Front

ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums
{{c1:: \(\sum_{i = 1}^{n} \log(i)\)}}  \(=\) \(\log(n!)\) (Sum) 

Back

ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums
{{c1:: \(\sum_{i = 1}^{n} \log(i)\)}}  \(=\) \(\log(n!)\) (Sum) 

After

Front

ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums
{{c1:: \(\sum_{i = 1}^{n} \log(i)\)::Sum}}  \(=\) \(\log(n!)\) 

Back

ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums
{{c1:: \(\sum_{i = 1}^{n} \log(i)\)::Sum}}  \(=\) \(\log(n!)\) 
Field-by-field Comparison
Field Before After
Text {{c1:: \(\sum_{i = 1}^{n} \log(i)\)}}&nbsp; \(=\)&nbsp;{{c2::\(\log(n!)\)&nbsp;(Sum)}}&nbsp; {{c1:: \(\sum_{i = 1}^{n} \log(i)\)::Sum}}&nbsp; \(=\)&nbsp;{{c2::\(\log(n!)\)}}&nbsp;
Tags: ETH::1._Semester::A&D::02._Asymptotic_Notation::3._O-Notation::Sums

Note 7: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Classic
GUID: L4[cTT%fZ]
modified

Before

Front

ETH::1._Semester::A&D::01._Introduction::3._Induction
Give the outline of an induction proof:

Back

ETH::1._Semester::A&D::01._Introduction::3._Induction
Give the outline of an induction proof:

We want to prove that ... for \(n \geq 5\)

Base Case: Let \(n = 5\) .... So the property holds for \(n = 5\).
Induction Hypothesis: We assume the property is true for some \(k \geq 5\)
Induction Step: We must show that the property holds for \(k + 1\).

By the principle of mathematical induction ... is true for all \(n \geq 5\).

After

Front

ETH::1._Semester::A&D::01._Introduction::3._Induction
Provide the outline of an induction proof.

Back

ETH::1._Semester::A&D::01._Introduction::3._Induction
Provide the outline of an induction proof.

We want to prove that ... for \(n \geq 5\)

Base Case: Let \(n = 5\) .... So the property holds for \(n = 5\).
Induction Hypothesis: We assume the property is true for some \(k \geq 5\)
Induction Step: We must show that the property holds for \(k + 1\).

By the principle of mathematical induction ... is true for all \(n \geq 5\).
Field-by-field Comparison
Field Before After
Front Give the outline of an induction proof: Provide the outline of an induction proof.
Tags: ETH::1._Semester::A&D::01._Introduction::3._Induction

Note 8: ETH::A&D

Deck: ETH::A&D
Note Type: Algorithms
GUID: LqP`8lU$&o
modified

Before

Front

ETH::1._Semester::A&D::04._Sorting_Algorithms::3._Insertion_Sort
Runtime of Insertion Sort?

Back

ETH::1._Semester::A&D::04._Sorting_Algorithms::3._Insertion_Sort
Runtime of Insertion Sort?

Best Case: \(O(n)\)
Worst Case: \(O(n^2)\)


This insertion is not constant time! We have to swap it with each previous element!

After

Front

ETH::1._Semester::A&D::04._Sorting_Algorithms::3._Insertion_Sort
Runtime of Insertion Sort?

Back

ETH::1._Semester::A&D::04._Sorting_Algorithms::3._Insertion_Sort
Runtime of Insertion Sort?

Best Case: \(O(n)\)
Worst Case: \(O(n^2)\)


This insertion is not in constant time! We have to swap with each previous element!
Field-by-field Comparison
Field Before After
Extra Info <i>This insertion is not constant time! We have to swap it with each previous element!</i> <i>This insertion is not in constant time! We have to swap with each previous element!</i>
Tags: ETH::1._Semester::A&D::04._Sorting_Algorithms::3._Insertion_Sort

Note 9: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Cloze
GUID: OY@2Ay+>4p
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Deleting Steps:
  1. Search for the correct node under which the key is inserted: \(O(\log_2 n)\)
  2. Remove the leaf with the value and one separator
  3. Rebalance (if necessary, i.e. now 1 key)

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Deleting Steps:
  1. Search for the correct node under which the key is inserted: \(O(\log_2 n)\)
  2. Remove the leaf with the value and one separator
  3. Rebalance (if necessary, i.e. now 1 key)

After

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Deletion steps:
  1. Search for the correct node under which the key is inserted: \(O(\log_2 n)\)
  2. Remove the leaf with the value and one separator
  3. Rebalance (if necessary, i.e. now 1 key)

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Deletion steps:
  1. Search for the correct node under which the key is inserted: \(O(\log_2 n)\)
  2. Remove the leaf with the value and one separator
  3. Rebalance (if necessary, i.e. now 1 key)

Field-by-field Comparison
Field Before After
Text <b>2-3 Tree</b>: Deleting Steps:<br><ol><li>{{c1::Search for the correct node under which the key is inserted:&nbsp;\(O(\log_2 n)\)}}</li><li>{{c2::Remove the leaf with the value and one separator}}</li><li>{{c3::<b>Rebalance</b>&nbsp;(if necessary, i.e. now 1 key)}}</li></ol> <b>2-3 Tree</b>: Deletion steps:<br><ol><li>{{c1::Search for the correct node under which the key is inserted:&nbsp;\(O(\log_2 n)\)}}</li><li>{{c2::Remove the leaf with the value and one separator}}</li><li>{{c3::<b>Rebalance</b>&nbsp;(if necessary, i.e. now 1 key)}}</li></ol>
Tags: ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees

Note 10: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Classic
GUID: Q}a3<1,J]C
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Deleting Steps if neighbour has 2 keys:

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Deleting Steps if neighbour has 2 keys:

  1. the nodes \(u\) and \(v\) are merged to form one new node with 3 children.
  2. The separator from the parent node is pulled down to be the new \(s_2\).
Parent may lose child -> rebalance there (can go up to the root).
If root has 1 child -> root replaced by child.

After

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: We deleted a node and now it's sibling is an only child. What happens if it's neighbor has 2 keys?

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: We deleted a node and now it's sibling is an only child. What happens if it's neighbor has 2 keys?

  1. The nodes \(u\) and \(v\) are merged to form one new node with 3 children.
  2. The separator from the parent node is pulled down to be the new \(s_2\).
Parent may lose child -> rebalance there (can go up to the root).
If root has 1 child -> root replaced by child.
Field-by-field Comparison
Field Before After
Front 2-3 Tree: Deleting Steps if neighbour has 2 keys: 2-3 Tree: We deleted a node and now it's sibling is an only child. What happens if it's neighbor has 2 keys?
Back <ol><li>the nodes&nbsp;\(u\)&nbsp;and&nbsp;\(v\)&nbsp;are <b>merged</b> to form one new node with <b>3 children</b>.</li><li>The separator from the parent node is pulled down to be the new&nbsp;\(s_2\).</li></ol>Parent may lose child -&gt; rebalance there (can go up to the root).<br>If root has 1 child -&gt; root replaced by child.<br><img src="paste-fcffee6f619138677fc86eb74beebfaa266c8cfe.jpg"> <ol><li>The nodes&nbsp;\(u\)&nbsp;and&nbsp;\(v\)&nbsp;are <b>merged</b> to form one new node with <b>3 children</b>.</li><li>The separator from the parent node is pulled down to be the new&nbsp;\(s_2\).</li></ol>Parent may lose child -&gt; rebalance there (can go up to the root).<br>If root has 1 child -&gt; root replaced by child.<br><img src="paste-fcffee6f619138677fc86eb74beebfaa266c8cfe.jpg">
Tags: ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees

Note 11: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Classic
GUID: m3`Qbb~x?c
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Deleting Steps if neighbour has 3 keys:

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: Deleting Steps if neighbour has 3 keys:

Our current node adopts one of the children. The separators have to be updated by “rotating them”. The parent sep moves with the adopted and the left sep becomes the new parent).

After

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: We deleted a node and now it's sibling is an only child. What happens if it's neighbor has 3 keys?

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
2-3 Tree: We deleted a node and now it's sibling is an only child. What happens if it's neighbor has 3 keys?

Our current node adopts one of the children. The separators have to be updated by “rotating them”. The parent sep moves with the adopted and the left sep becomes the new parent).
Field-by-field Comparison
Field Before After
Front <b>2-3 Tree</b>: Deleting Steps if neighbour has 3 keys: <b>2-3 Tree</b>: We deleted a node and now it's sibling is an only child. What happens if it's neighbor has 3 keys?
Tags: ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees

Note 12: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Cloze
GUID: nK{)v6I%zc
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::4._Stack
The ADT stack can be efficiently implemented using a  singly linked list:
  • push:  \(\Theta(1)\)
  • pop:  \(\Theta(1)\) as this removes the first element. This means we just copy the pointer next from the first element to be the first pointer of the list.

Back

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::4._Stack
The ADT stack can be efficiently implemented using a  singly linked list:
  • push:  \(\Theta(1)\)
  • pop:  \(\Theta(1)\) as this removes the first element. This means we just copy the pointer next from the first element to be the first pointer of the list.

After

Front

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::4._Stack
The ADT stack can be efficiently implemented using a singly linked list:
  • push:  \(\Theta(1)\)
  • pop:  \(\Theta(1)\) as this removes the first element. This means we just copy the pointer next from the first element to be the first pointer of the list.

Back

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::4._Stack
The ADT stack can be efficiently implemented using a singly linked list:
  • push:  \(\Theta(1)\)
  • pop:  \(\Theta(1)\) as this removes the first element. This means we just copy the pointer next from the first element to be the first pointer of the list.
Field-by-field Comparison
Field Before After
Text The ADT&nbsp;<b>stack</b>&nbsp;can be efficiently implemented using a {{c1::&nbsp;<b>singly linked list</b>}}:<br><ul><li><b>push</b>: {{c2::&nbsp;\(\Theta(1)\)}}<br></li><li><b>pop</b>: {{c3::&nbsp;\(\Theta(1)\)&nbsp;as this removes the first element. This means we just copy the pointer next from the first element to be the first pointer of the list.}}<br></li></ul> The ADT&nbsp;<b>stack</b>&nbsp;can be efficiently implemented using a {{c1::<b>singly linked list</b>}}:<br><ul><li><b>push</b>: {{c2::&nbsp;\(\Theta(1)\)}}<br></li><li><b>pop</b>: {{c3::&nbsp;\(\Theta(1)\)&nbsp;as this removes the first element. This means we just copy the pointer next from the first element to be the first pointer of the list.}}<br></li></ul>
Tags: ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::4._Stack

Note 13: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Cloze
GUID: rp1#iPsvnq
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::2._Linked_List
In a linked list, the keys don't appear in order in memory. They each contain a pointer to the start of the next element in the list instead.

We also have an extra pointer to the end in practice.

Back

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::2._Linked_List
In a linked list, the keys don't appear in order in memory. They each contain a pointer to the start of the next element in the list instead.

We also have an extra pointer to the end in practice.

The last pointer of the list is a null pointer to indicate the end.

After

Front

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::2._Linked_List
In a linked list, the keys don't appear in order in memory. They each contain a pointer to the next element in the list instead.

We also have an extra pointer to the end.

Back

ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::2._Linked_List
In a linked list, the keys don't appear in order in memory. They each contain a pointer to the next element in the list instead.

We also have an extra pointer to the end.

The last pointer of the list is a null pointer to indicate the end.
Field-by-field Comparison
Field Before After
Text In a <b>linked list</b>, the keys {{c1::don't appear in order in memory}}. They each contain {{c2::a pointer to the start of the next element in the list instead}}.<br><br>We also have {{c3::an extra pointer to the end in practice}}. In a <b>linked list</b>, the keys {{c1::don't appear in order in memory}}. They each contain {{c2::a pointer to the next element in the list instead}}.<br><br>We also have {{c3::an extra pointer to the end}}.
Tags: ETH::1._Semester::A&D::05._Data_Structures::1._ADT_List::2._Linked_List

Note 14: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Classic
GUID: uHC]1fZd$=
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
Tree Condition: for 2-3 Trees implementing dictionary.

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
Tree Condition: for 2-3 Trees implementing dictionary.

Each node has 2 or 3 children but that all leafs are on the same level

After

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
What is the tree condition for 2-3 Trees implementing a dictionary?

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
What is the tree condition for 2-3 Trees implementing a dictionary?

Each node has 2 or 3 children and all leaves are on the same level.
Field-by-field Comparison
Field Before After
Front <b>Tree Condition</b>: for&nbsp;<b>2-3 Trees</b>&nbsp;implementing dictionary. <b>What is the tree condition</b>&nbsp;for&nbsp;<b>2-3 Trees</b>&nbsp;implementing a dictionary?
Back Each node has <b>2 or 3 children</b> but that all leafs are <b>on the same level</b> Each node has <b>2 or 3 children</b> and all leaves are <b>on the same level.</b>
Tags: ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees

Note 15: ETH::A&D

Deck: ETH::A&D
Note Type: Horvath Cloze
GUID: wbdb9#fK:J
modified

Before

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
Height of a 2-3 Tree for \(n\) keys is \(\leq \log_2(n)\) thus \(h=\)\(O(\log(n)\) (O-notation).

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
Height of a 2-3 Tree for \(n\) keys is \(\leq \log_2(n)\) thus \(h=\)\(O(\log(n)\) (O-notation).

Note that for the case \(n = 1\) the root has one leaf with the key.

After

Front

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
The height of a 2-3 Tree for \(n\) keys is \(\leq \log_2(n)\) thus \(h={{c2::O(\log(n)::\textbf{O-notation} }}\).

Back

ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees
The height of a 2-3 Tree for \(n\) keys is \(\leq \log_2(n)\) thus \(h={{c2::O(\log(n)::\textbf{O-notation} }}\).

Note that for the case \(n = 1\) the root has one leaf with the key.
Field-by-field Comparison
Field Before After
Text Height of a <b>2-3 Tree</b>&nbsp;for&nbsp;\(n\)&nbsp;keys is {{c1::\(\leq \log_2(n)\)}} thus&nbsp;\(h=\){{c2::\(O(\log(n)\)}} (O-notation). The height of a <b>2-3 Tree</b>&nbsp;for&nbsp;\(n\)&nbsp;keys is {{c1::\(\leq \log_2(n)\)}} thus&nbsp;\(h={{c2::O(\log(n)::\textbf{O-notation} }}\).
Tags: ETH::1._Semester::A&D::05._Data_Structures::2._ADT_Dictionary::2._2-3_Trees

Note 16: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Cloze
GUID: Ey9Sz2Kp7Q
modified

Before

Front

ETH::1._Semester::DiskMat::6._Logic::4._Logical_Calculi::5._Derivations_from_Assumptions
If \(F \vdash_K G\) in a calculus \(K\), one could extend the calculus by the new derivation \(\emptyset \vdash F \rightarrow G\).

Back

ETH::1._Semester::DiskMat::6._Logic::4._Logical_Calculi::5._Derivations_from_Assumptions
If \(F \vdash_K G\) in a calculus \(K\), one could extend the calculus by the new derivation \(\emptyset \vdash F \rightarrow G\).

After

Front

ETH::1._Semester::DiskMat::6._Logic::4._Logical_Calculi::5._Derivations_from_Assumptions
If \(F \vdash_K G\) in a calculus \(K\), one could extend the calculus by the new derivation \(F \rightarrow G\).

Back

ETH::1._Semester::DiskMat::6._Logic::4._Logical_Calculi::5._Derivations_from_Assumptions
If \(F \vdash_K G\) in a calculus \(K\), one could extend the calculus by the new derivation \(F \rightarrow G\).
Field-by-field Comparison
Field Before After
Text If&nbsp;\(F \vdash_K G\)&nbsp;in a calculus&nbsp;\(K\), one could {{c1::<i>extend the calculus</i> by the new derivation&nbsp;\(\emptyset \vdash F \rightarrow G\)}}. If&nbsp;\(F \vdash_K G\)&nbsp;in a calculus&nbsp;\(K\), one could {{c1::<i>extend the calculus</i> by the new derivation&nbsp;\(F \rightarrow G\)}}.
Tags: ETH::1._Semester::DiskMat::6._Logic::4._Logical_Calculi::5._Derivations_from_Assumptions

Note 17: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Cloze
GUID: Fl3HSpM`6f
modified

Before

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups
When proving \(H\) is a subgroup, we have to prove the  closure of \(H\).

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups
When proving \(H\) is a subgroup, we have to prove the  closure of \(H\).

After

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups
When proving \(H\) is a subgroup, we have to prove the closure of \(H\).

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups
When proving \(H\) is a subgroup, we have to prove the closure of \(H\).
Field-by-field Comparison
Field Before After
Text When proving&nbsp;\(H\)&nbsp;is {{c2:: a subgroup}}, we have to prove the {{c1::&nbsp;<b>closure</b>&nbsp;of&nbsp;\(H\)}}. When proving&nbsp;\(H\)&nbsp;is {{c2:: a subgroup}}, we have to prove the {{c1::<b>closure</b>&nbsp;of&nbsp;\(H\)}}.
Tags: ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups

Note 18: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Cloze
GUID: LM9=
modified

Before

Front

ETH::1._Semester::DiskMat::4._Number_Theory::6._Application:_Diffie-Hellman_Key-Agreement
DHKE selects two public values:
  1. a large prime \(p\)
  2. basis \(g\) which is then exponentiated

Back

ETH::1._Semester::DiskMat::4._Number_Theory::6._Application:_Diffie-Hellman_Key-Agreement
DHKE selects two public values:
  1. a large prime \(p\)
  2. basis \(g\) which is then exponentiated

After

Front

ETH::1._Semester::DiskMat::4._Number_Theory::6._Application:_Diffie-Hellman_Key-Agreement
The Diffie-Hellman Key-Agreement selects two public values:
  1. a large prime \(p\)
  2. basis \(g\) which is then exponentiated

Back

ETH::1._Semester::DiskMat::4._Number_Theory::6._Application:_Diffie-Hellman_Key-Agreement
The Diffie-Hellman Key-Agreement selects two public values:
  1. a large prime \(p\)
  2. basis \(g\) which is then exponentiated
Field-by-field Comparison
Field Before After
Text DHKE selects two public values:<br><ol><li>{{c1:: a large prime&nbsp;\(p\)}}</li><li>{{c2:: basis&nbsp;\(g\)&nbsp;which is then exponentiated}}</li></ol> The Diffie-Hellman Key-Agreement selects two public values:<br><ol><li>{{c1:: a large prime&nbsp;\(p\)}}</li><li>{{c2:: basis&nbsp;\(g\)&nbsp;which is then exponentiated}}</li></ol>
Tags: ETH::1._Semester::DiskMat::4._Number_Theory::6._Application:_Diffie-Hellman_Key-Agreement

Note 19: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Cloze
GUID: N9}Teh]+={
modified

Before

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups
For \(H\) to be a subgroup, it must have {{c1::closure under inverses: 

\(\widehat{a} \in H\) for all \(a \in H\)}}.

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups
For \(H\) to be a subgroup, it must have {{c1::closure under inverses: 

\(\widehat{a} \in H\) for all \(a \in H\)}}.

After

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups
For \(H\) to be a subgroup, it must have closure under {{c1::inverses: 

\(\widehat{a} \in H\) for all \(a \in H\)}}.

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups
For \(H\) to be a subgroup, it must have closure under {{c1::inverses: 

\(\widehat{a} \in H\) for all \(a \in H\)}}.
Field-by-field Comparison
Field Before After
Text For \(H\) to be a subgroup, it must have {{c1::closure under inverses:&nbsp;<br><br>\(\widehat{a} \in H\) for all \(a \in H\)}}. For \(H\) to be a subgroup, it must have closure under {{c1::inverses:&nbsp;<br><br>\(\widehat{a} \in H\) for all \(a \in H\)}}.
Tags: ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups

Note 20: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Cloze
GUID: O?~Mb}~!3:
modified

Before

Front

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::04._Modus_Ponens
Proof method: "Modus Ponens"

1. Find a suitable statement \(R\)
2.  Prove \(R\)
3.  Prove \(R \implies S\)

Back

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::04._Modus_Ponens
Proof method: "Modus Ponens"

1. Find a suitable statement \(R\)
2.  Prove \(R\)
3.  Prove \(R \implies S\)

After

Front

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::04._Modus_Ponens
Proof method: "Modus Ponens"

1. Find a suitable statement \(R\).
2.  Prove \(R\).
3.  Prove \(R \implies S\).

Back

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::04._Modus_Ponens
Proof method: "Modus Ponens"

1. Find a suitable statement \(R\).
2.  Prove \(R\).
3.  Prove \(R \implies S\).
Field-by-field Comparison
Field Before After
Text Proof method: "Modus Ponens"<br><br>1. {{c1:: Find a suitable statement&nbsp;\(R\)}}<div>2. {{c2::&nbsp;Prove&nbsp;\(R\)}}</div><div>3. {{c3::&nbsp;Prove&nbsp;\(R \implies S\)}}</div> Proof method: "Modus Ponens"<br><br>1. {{c1:: Find a suitable statement&nbsp;\(R\).}}<div>2. {{c2::&nbsp;Prove&nbsp;\(R\).}}</div><div>3. {{c3::&nbsp;Prove&nbsp;\(R \implies S\).}}</div>
Tags: ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::04._Modus_Ponens

Note 21: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Classic
GUID: bzpi*}NRv1
modified

Before

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::2._Group_Homomorphisms

Does every homomorphism have to be injective? (Example)

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::2._Group_Homomorphisms

Does every homomorphism have to be injective? (Example)


No, homomorphisms do not need to be injective.

Example: We could map all elements of \(G\) to the neutral element \(e'\) in \(H\). This satisfies the homomorphism property: \[\psi(a * b) = e' = e' \star e' = \psi(a) \star \psi(b)\] but it clearly is not injective.

After

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::2._Group_Homomorphisms

Does every homomorphism have to be injective?

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::2._Group_Homomorphisms

Does every homomorphism have to be injective?


No, homomorphisms do not need to be injective.

Example: We could map all elements of \(G\) to the neutral element \(e'\) in \(H\). This satisfies the homomorphism property: \[\psi(a * b) = e' = e' \star e' = \psi(a) \star \psi(b)\] but it clearly is not injective.

Field-by-field Comparison
Field Before After
Front <p>Does every homomorphism have to be injective? (Example)</p> <p>Does every homomorphism have to be injective?</p>
Tags: ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::2._Group_Homomorphisms

Note 22: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Classic
GUID: cV1b,==V*(
modified

Before

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::4._The_Order_of_Group_Elements_and_of_a_Group

Give an example of an element with infinite order.

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::4._The_Order_of_Group_Elements_and_of_a_Group

Give an example of an element with infinite order.


In the group \(\langle \mathbb{Z}; + \rangle\), any integer \(a \neq 0\) has infinite order.

Explanation: The carrier \(\mathbb{Z}\) is infinite, and we never "loop around" to reach \(0\) by repeatedly adding a non-zero integer. For any \(n \geq 1\), we have \(na \neq 0\) if \(a \neq 0\).

After

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::4._The_Order_of_Group_Elements_and_of_a_Group

Provide an example of an element with infinite order.

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::4._The_Order_of_Group_Elements_and_of_a_Group

Provide an example of an element with infinite order.


In the group \(\langle \mathbb{Z}; + \rangle\), any integer \(a \neq 0\) has infinite order.

Explanation: The carrier \(\mathbb{Z}\) is infinite, and we never "loop around" to reach \(0\) by repeatedly adding a non-zero integer. For any \(n \geq 1\), we have \(na \neq 0\) if \(a \neq 0\).

Field-by-field Comparison
Field Before After
Front <p>Give an example of an element with infinite order.</p> <p>Provide an example of an element with infinite order.</p>
Tags: ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::4._The_Order_of_Group_Elements_and_of_a_Group

Note 23: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Classic
GUID: hAzQO,E_+E
modified

Before

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::4._The_Order_of_Group_Elements_and_of_a_Group

What is the order of elements in finite groups.

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::4._The_Order_of_Group_Elements_and_of_a_Group

What is the order of elements in finite groups.


Lemma 5.6: In a finite group \(G\), every element has a finite order.

(This doesn't hold for infinite groups - elements can have infinite order.)

After

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::4._The_Order_of_Group_Elements_and_of_a_Group

What property does the order of elements in finite groups have?

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::4._The_Order_of_Group_Elements_and_of_a_Group

What property does the order of elements in finite groups have?


Lemma 5.6: In a finite group \(G\), every element has a finite order.

(This doesn't hold for infinite groups - elements can have infinite order.)

Field-by-field Comparison
Field Before After
Front <p>What is the order of elements in finite groups.</p> <p>What property does the order of elements in finite groups have?</p>
Tags: ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::4._The_Order_of_Group_Elements_and_of_a_Group

Note 24: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Classic
GUID: vD12#kM5/-
modified

Before

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups ETH::1._Semester::DiskMat::Exams::3._Algebra::HS24
Number of Subgroups of \(\langle \mathbb{Z}_a \times \mathbb{Z}_b \rangle\)

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups ETH::1._Semester::DiskMat::Exams::3._Algebra::HS24
Number of Subgroups of \(\langle \mathbb{Z}_a \times \mathbb{Z}_b \rangle\)

\(\sum_{a|m \land b|n} \gcd(a, b)\)

After

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups ETH::1._Semester::DiskMat::Exams::3._Algebra::HS24
Number of subgroups of \(\langle \mathbb{Z}_m \times \mathbb{Z}_n \rangle\)

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups ETH::1._Semester::DiskMat::Exams::3._Algebra::HS24
Number of subgroups of \(\langle \mathbb{Z}_m \times \mathbb{Z}_n \rangle\)

\(\sum_{a \mid m \land b \mid n} \gcd(a, b)\)
Field-by-field Comparison
Field Before After
Front Number of Subgroups of&nbsp;\(\langle \mathbb{Z}_a \times \mathbb{Z}_b \rangle\) Number of subgroups of&nbsp;\(\langle \mathbb{Z}_m \times \mathbb{Z}_n \rangle\)
Back \(\sum_{a|m \land b|n} \gcd(a, b)\) \(\sum_{a \mid m \land b \mid n} \gcd(a, b)\)
Tags: ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::3._Subgroups ETH::1._Semester::DiskMat::Exams::3._Algebra::HS24

Note 25: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Cloze
GUID: vpgCC{U)O3
modified

Before

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::5._Cyclic_Groups
 A cyclic group of order \(n\) {{c1::is isomorphic to \(\langle \mathbb{Z}_n,\oplus)\), and hence commutative::has which useful property?}}.

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::5._Cyclic_Groups
 A cyclic group of order \(n\) {{c1::is isomorphic to \(\langle \mathbb{Z}_n,\oplus)\), and hence commutative::has which useful property?}}.

After

Front

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::5._Cyclic_Groups
 A cyclic group of order \(n\) {{c1::is isomorphic to \(\langle \mathbb{Z}_n,\oplus)\), and hence commutative.::has which useful property?}}

Back

ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::5._Cyclic_Groups
 A cyclic group of order \(n\) {{c1::is isomorphic to \(\langle \mathbb{Z}_n,\oplus)\), and hence commutative.::has which useful property?}}
Field-by-field Comparison
Field Before After
Text &nbsp;A cyclic group of order&nbsp;\(n\)&nbsp;{{c1::is isomorphic to&nbsp;\(\langle \mathbb{Z}_n,\oplus)\), and hence commutative::has which useful property?}}. &nbsp;A cyclic group of order&nbsp;\(n\)&nbsp;{{c1::is isomorphic to&nbsp;\(\langle \mathbb{Z}_n,\oplus)\), and hence commutative.::has which useful property?}}
Tags: ETH::1._Semester::DiskMat::5._Algebra::3._The_Structure_of_Groups::5._Cyclic_Groups

Note 26: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Cloze
GUID: xDDC{82KOB
modified

Before

Front

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::06._Proofs_by_Contradiction
Proof method: Proof by Contradiction

1. Find a suitable statement \( T\)
2.  Prove that \( T \) is false
3.  Assume that \( S \) is false and prove that \( T \) is true (-> contradiction)

Back

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::06._Proofs_by_Contradiction
Proof method: Proof by Contradiction

1. Find a suitable statement \( T\)
2.  Prove that \( T \) is false
3.  Assume that \( S \) is false and prove that \( T \) is true (-> contradiction)

After

Front

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::06._Proofs_by_Contradiction
Proof method: Proof by Contradiction

1. Find a suitable statement \( T\).
2.  Prove that \( T \) is false.
3.  Assume that \( S \) is false and prove that \( T \) is true (-> contradiction).

Back

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::06._Proofs_by_Contradiction
Proof method: Proof by Contradiction

1. Find a suitable statement \( T\).
2.  Prove that \( T \) is false.
3.  Assume that \( S \) is false and prove that \( T \) is true (-> contradiction).
Field-by-field Comparison
Field Before After
Text Proof method: Proof by Contradiction<br><br>1. {{c1:: Find a suitable statement&nbsp;\( T\)}}<div>2. {{c2::&nbsp;Prove that&nbsp;\( T \)&nbsp;is false}}</div><div>3. {{c3::&nbsp;Assume that&nbsp;\( S \)&nbsp;is false and prove that&nbsp;\( T \)&nbsp;is true (-&gt; contradiction)}}</div> Proof method: Proof by Contradiction<br><br>1. {{c1:: Find a suitable statement&nbsp;\( T\).}}<div>2. {{c2::&nbsp;Prove that&nbsp;\( T \)&nbsp;is false.}}</div><div>3. {{c3::&nbsp;Assume that&nbsp;\( S \)&nbsp;is false and prove that&nbsp;\( T \)&nbsp;is true (-&gt; contradiction).}}</div>
Tags: ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::06._Proofs_by_Contradiction

Note 27: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Classic
GUID: y)
modified

Before

Front

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::02._Direct_Proof_of_an_Implication
Proof method: "Direct Proof of an Implication"

Back

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::02._Direct_Proof_of_an_Implication
Proof method: "Direct Proof of an Implication"

Direct proof of \( S \implies T \): assume S and prove T under that assumption

After

Front

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::02._Direct_Proof_of_an_Implication
Proof method: "Direct Proof of an Implication"

Back

ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::02._Direct_Proof_of_an_Implication
Proof method: "Direct Proof of an Implication"

Assume \(S\) and prove \(T\) under that assumption.
Field-by-field Comparison
Field Before After
Back Direct proof of&nbsp;\( S \implies T \): assume S and prove T under that assumption Assume&nbsp;\(S\)&nbsp;and prove&nbsp;\(T\)&nbsp;under that assumption.
Tags: ETH::1._Semester::DiskMat::2._Math._Reasoning,_Proofs,_and_a_First_Approach_to_Logic::6._Some_Proof_Patterns::02._Direct_Proof_of_an_Implication

Note 28: ETH::LinAlg

Deck: ETH::LinAlg
Note Type: Horvath Classic
GUID: eUCQYkiYf@
modified

Before

Front

ETH::1._Semester::LinAlg::2._Matrices::2._Matrices_and_linear_transformations::2._Linear_transformations_and_linear_functionals
What is a property that always hold for linear transformations?

Back

ETH::1._Semester::LinAlg::2._Matrices::2._Matrices_and_linear_transformations::2._Linear_transformations_and_linear_functionals
What is a property that always hold for linear transformations?

for a linear transformation \(T(X)\): \(T(0) = 0\)

After

Front

ETH::1._Semester::LinAlg::2._Matrices::2._Matrices_and_linear_transformations::2._Linear_transformations_and_linear_functionals
What is a property that always hold for linear transformations?

Back

ETH::1._Semester::LinAlg::2._Matrices::2._Matrices_and_linear_transformations::2._Linear_transformations_and_linear_functionals
What is a property that always hold for linear transformations?

\(T(0) = 0\)
Field-by-field Comparison
Field Before After
Back for a linear transformation&nbsp;\(T(X)\):&nbsp;\(T(0) = 0\) \(T(0) = 0\)
Tags: ETH::1._Semester::LinAlg::2._Matrices::2._Matrices_and_linear_transformations::2._Linear_transformations_and_linear_functionals

Note 29: ETH::LinAlg

Deck: ETH::LinAlg
Note Type: Horvath Cloze
GUID: w7_|F6Nt!U
modified

Before

Front

ETH::1._Semester::LinAlg::1._Vectors::2._Scalar_products,_lengths_and_angles::5._Triangle_inequality
The triangle inequality \(||v|| + ||w|| \geq ||v+w||\) holds exactly if \(\exists \lambda \) s.t. \(w = \lambda v\) (i.e. they are scalar multiples)

Back

ETH::1._Semester::LinAlg::1._Vectors::2._Scalar_products,_lengths_and_angles::5._Triangle_inequality
The triangle inequality \(||v|| + ||w|| \geq ||v+w||\) holds exactly if \(\exists \lambda \) s.t. \(w = \lambda v\) (i.e. they are scalar multiples)

After

Front

ETH::1._Semester::LinAlg::1._Vectors::2._Scalar_products,_lengths_and_angles::5._Triangle_inequality
The triangle inequality \(||v|| + ||w|| \geq ||v+w||\) holds exactly if \(w = \lambda v\) for some \(\lambda\geq0\) (i.e., they point in the same direction).

Back

ETH::1._Semester::LinAlg::1._Vectors::2._Scalar_products,_lengths_and_angles::5._Triangle_inequality
The triangle inequality \(||v|| + ||w|| \geq ||v+w||\) holds exactly if \(w = \lambda v\) for some \(\lambda\geq0\) (i.e., they point in the same direction).
Field-by-field Comparison
Field Before After
Text The triangle inequality&nbsp;\(||v|| + ||w|| \geq ||v+w||\)&nbsp;holds exactly if {{c1::\(\exists \lambda \)&nbsp;s.t.&nbsp;\(w = \lambda v\)&nbsp;(i.e. they are scalar multiples)}} The triangle inequality&nbsp;\(||v|| + ||w|| \geq ||v+w||\)&nbsp;holds exactly if {{c1::\(w = \lambda v\)&nbsp;for some&nbsp;\(\lambda\geq0\)&nbsp;(i.e., they point in the same direction)}}.
Tags: ETH::1._Semester::LinAlg::1._Vectors::2._Scalar_products,_lengths_and_angles::5._Triangle_inequality

Note 30: ETH::DiskMat

Deck: ETH::DiskMat
Note Type: Horvath Classic
GUID: nGeB*S%`!e
deleted

Deleted Note

Front

ETH::1._Semester::DiskMat::6._Logic::6._Predicate_Logic_(First-order_Logic)::7._Normal_Forms
What is really important for the prenex form due to the binding of quantifiers?

Back

ETH::1._Semester::DiskMat::6._Logic::6._Predicate_Logic_(First-order_Logic)::7._Normal_Forms
What is really important for the prenex form due to the binding of quantifiers?

We need to wrap the entire expression in parentheses \(\forall \exists (...)\) otherwise, it's not prenex!

Current

Note has been deleted

Field-by-field Comparison
Field Before After
Front What is really important for the prenex form due to the binding of quantifiers?
Back We need to wrap the entire expression in parentheses&nbsp;\(\forall \exists (...)\)&nbsp;otherwise, it's not prenex!
Tags: ETH::1._Semester::DiskMat::6._Logic::6._Predicate_Logic_(First-order_Logic)::7._Normal_Forms
↑ Top