Anki Deck Changes

Commit: 8ad67fb0 - mama ich bin im anki 🥹

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

Date: 2026-01-28T04:17:30+01:00

Changes: 14 note(s) changed (0 added, 14 modified, 0 deleted)

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

Note 1: ETH::1. Semester::A&D

Deck: ETH::1. Semester::A&D
Note Type: Horvath Classic
GUID: MFFs/r0>#}
modified

Before

Front

ETH::1._Semester::A&D::11._Minimum_Spanning_Trees
Can {f, h} ever be in an MST? Prove it:

Back

ETH::1._Semester::A&D::11._Minimum_Spanning_Trees
Can {f, h} ever be in an MST? Prove it:

No, because it's the heaviest edge in the cycle.
If there was an MST containing it, we could remove it and replace it by another edge in the cycle.
Then we preserve the tree property yet it's weight is strictly lower.

After

Front

ETH::1._Semester::A&D::11._Minimum_Spanning_Trees
Can (g, h) ever be in an MST? Prove it:

Back

ETH::1._Semester::A&D::11._Minimum_Spanning_Trees
Can (g, h) ever be in an MST? Prove it:

No, because it's the heaviest edge in the cycle.
If there was an MST containing it, we could remove it and replace it by another edge in the cycle.
Then we preserve the tree property yet it's weight is strictly lower.
Field-by-field Comparison
Field Before After
Front Can {f, h} ever be in an MST? Prove it:<br><img src="paste-0451663ce9f1137e81a00020ee38fb0a96908565.jpg"> Can (g, h) ever be in an MST? Prove it:<br><img src="paste-0451663ce9f1137e81a00020ee38fb0a96908565.jpg">
Tags: ETH::1._Semester::A&D::11._Minimum_Spanning_Trees

Note 2: ETH::1. Semester::EProg

Deck: ETH::1. Semester::EProg
Note Type: Horvath Classic
GUID: IKMb!{98`
modified

Before

Front

ETH::1._Semester::EProg::3._Control_Structures::4._Loops::1._For_Loops

Compile/Runtime/No Error?

Back

ETH::1._Semester::EProg::3._Control_Structures::4._Loops::1._For_Loops

Compile/Runtime/No Error?

Valid for loop.

After

Front

ETH::1._Semester::EProg::3._Control_Structures::4._Loops::1._For_Loops

Compile/Runtime/No Error?

Back

ETH::1._Semester::EProg::3._Control_Structures::4._Loops::1._For_Loops

Compile/Runtime/No Error?

Valid for-loop.
Field-by-field Comparison
Field Before After
Back Valid for loop. Valid for-loop.
Tags: ETH::1._Semester::EProg::3._Control_Structures::4._Loops::1._For_Loops

Note 3: ETH::1. Semester::EProg

Deck: ETH::1. Semester::EProg
Note Type: Horvath Cloze
GUID: K]ZyP_vxG;
modified

Before

Front

ETH::1._Semester::EProg::7._Classes_and_Objects
Inside a class (except static functions) we have access to special variable  this and super.

Back

ETH::1._Semester::EProg::7._Classes_and_Objects
Inside a class (except static functions) we have access to special variable  this and super.

After

Front

ETH::1._Semester::EProg::7._Classes_and_Objects
Inside a class (except static functions) we have access to special variable this and super.

Back

ETH::1._Semester::EProg::7._Classes_and_Objects
Inside a class (except static functions) we have access to special variable this and super.
Field-by-field Comparison
Field Before After
Text Inside a class (except static functions) we have access to special variable {{c1::&nbsp;<b>this</b>&nbsp;and&nbsp;<b>super</b>}}. Inside a class (except static functions) we have access to special variable {{c1::<b>this</b>&nbsp;and&nbsp;<b>super</b>}}.
Tags: ETH::1._Semester::EProg::7._Classes_and_Objects

Note 4: ETH::1. Semester::EProg

Deck: ETH::1. Semester::EProg
Note Type: Horvath Cloze
GUID: Nz^YQRPVQ2
modified

Before

Front

ETH::1._Semester::EProg::7._Classes_and_Objects
Properties of classes initialised as public int x; are set to 0, null, false, etc... their default values.

Back

ETH::1._Semester::EProg::7._Classes_and_Objects
Properties of classes initialised as public int x; are set to 0, null, false, etc... their default values.

After

Front

ETH::1._Semester::EProg::7._Classes_and_Objects
Properties of classes declared as public int x; are set to their default values (0, null, false, etc...).

Back

ETH::1._Semester::EProg::7._Classes_and_Objects
Properties of classes declared as public int x; are set to their default values (0, null, false, etc...).
Field-by-field Comparison
Field Before After
Text Properties of classes initialised as&nbsp;<b>public int x;</b>&nbsp;are set to {{c1:: 0, null, false, etc... their default values}}. Properties of classes declared as&nbsp;<b>public int x;</b>&nbsp;are set to {{c1::their default values (0, null, false, etc...)}}.
Tags: ETH::1._Semester::EProg::7._Classes_and_Objects

Note 5: ETH::1. Semester::EProg

Deck: ETH::1. Semester::EProg
Note Type: Horvath Cloze
GUID: dW?TP?RI{A
modified

Before

Front

ETH::1._Semester::EProg::10._Inheritance::2._Polymorphism::3._Static_vs_Dynamic
The dynamic change of a variable can be changed by reassigning the reference to another instance.

Back

ETH::1._Semester::EProg::10._Inheritance::2._Polymorphism::3._Static_vs_Dynamic
The dynamic change of a variable can be changed by reassigning the reference to another instance.

After

Front

ETH::1._Semester::EProg::10._Inheritance::2._Polymorphism::3._Static_vs_Dynamic
The dynamic type of a variable can be changed by reassigning the reference to another instance.

Back

ETH::1._Semester::EProg::10._Inheritance::2._Polymorphism::3._Static_vs_Dynamic
The dynamic type of a variable can be changed by reassigning the reference to another instance.
Field-by-field Comparison
Field Before After
Text The dynamic change of a variable can be changed by {{c1:: reassigning the reference to another instance}}. The dynamic type of a variable can be changed by {{c1:: reassigning the reference to another instance}}.
Tags: ETH::1._Semester::EProg::10._Inheritance::2._Polymorphism::3._Static_vs_Dynamic

Note 6: ETH::1. Semester::EProg

Deck: ETH::1. Semester::EProg
Note Type: Horvath Cloze
GUID: fx//I5}Q?7
modified

Before

Front

ETH::1._Semester::EProg::10._Inheritance::2._Polymorphism::3._Static_vs_Dynamic
Runtime Errors for Casting:
  1. (Husky) dog;: Casting further down than dynamic type
  2. (Cat) dog; : Casting into sibling type

Back

ETH::1._Semester::EProg::10._Inheritance::2._Polymorphism::3._Static_vs_Dynamic
Runtime Errors for Casting:
  1. (Husky) dog;: Casting further down than dynamic type
  2. (Cat) dog; : Casting into sibling type

After

Front

ETH::1._Semester::EProg::10._Inheritance::2._Polymorphism::3._Static_vs_Dynamic
Runtime Errors for Casting:
  1. (Husky) dog; Casting further down than dynamic type
  2. (Cat) dog;  Casting into sibling type

Back

ETH::1._Semester::EProg::10._Inheritance::2._Polymorphism::3._Static_vs_Dynamic
Runtime Errors for Casting:
  1. (Husky) dog; Casting further down than dynamic type
  2. (Cat) dog;  Casting into sibling type
Field-by-field Comparison
Field Before After
Text Runtime Errors for Casting:<br><ol> <li><code>{{c1:: (Husky) dog;</code>: Casting further down than dynamic type}}</li> <li><code>{{c2:: (Cat) dog;</code> : Casting into sibling type}}</li></ol> Runtime Errors for Casting:<br><ol> <li><code>{{c1::(Husky) dog;&nbsp;</code>Casting further down than dynamic type}}</li> <li><code>{{c2:: (Cat) dog;</code>&nbsp; Casting into sibling type}}</li></ol>
Tags: ETH::1._Semester::EProg::10._Inheritance::2._Polymorphism::3._Static_vs_Dynamic

Note 7: ETH::1. Semester::EProg

Deck: ETH::1. Semester::EProg
Note Type: Horvath Cloze
GUID: g%YZ@`35DU
modified

Before

Front

ETH::1._Semester::EProg::10._Inheritance::1._Visibility
In a subclass, we can only make methods more visible .

Back

ETH::1._Semester::EProg::10._Inheritance::1._Visibility
In a subclass, we can only make methods more visible .

  • protected -> public is okay
  • private -> public okay
public to default  or default to private are not.

After

Front

ETH::1._Semester::EProg::10._Inheritance::1._Visibility
In a subclass, we can only make methods more visible .

Back

ETH::1._Semester::EProg::10._Inheritance::1._Visibility
In a subclass, we can only make methods more visible .

  • protected -> public is okay
  • private -> public okay
public to default  or default to private are not possible.
Field-by-field Comparison
Field Before After
Extra <ul><li>protected -&gt; public is okay</li><li>private -&gt; public okay</li></ul><div>public to default&nbsp; or default to private are not.</div> <ul><li>protected -&gt; public is okay</li><li>private -&gt; public okay</li></ul><div>public to default&nbsp; or default to private are not possible.</div>
Tags: ETH::1._Semester::EProg::10._Inheritance::1._Visibility

Note 8: ETH::1. Semester::EProg

Deck: ETH::1. Semester::EProg
Note Type: Horvath Classic
GUID: osPOmm:i4.
modified

Before

Front

ETH::1._Semester::EProg::3._Control_Structures::4._Loops::1._For_Loops

Compile/Runtime/No Error

Back

ETH::1._Semester::EProg::3._Control_Structures::4._Loops::1._For_Loops

Compile/Runtime/No Error

No error, valid for loop.

After

Front

ETH::1._Semester::EProg::3._Control_Structures::4._Loops::1._For_Loops

Compile/Runtime/No Error

Back

ETH::1._Semester::EProg::3._Control_Structures::4._Loops::1._For_Loops

Compile/Runtime/No Error

No error, valid for-loop.
Field-by-field Comparison
Field Before After
Back No error, valid for loop. No error, valid for-loop.
Tags: ETH::1._Semester::EProg::3._Control_Structures::4._Loops::1._For_Loops
↑ Top