Karatsuba multiplication
Karatsuba Multiplikation.excalidraw
⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’
Excalidraw Data
Text Elements
n/2
n/2
n/2
n/2
n
n
a
b
c
d
Embedded Files
fa213f307a1e3140541e18a52caa012446662c51:
Link to original
NOTE
ONLY 3 multiplications needed the normal method is to calculate and need 4 multiplications
This is called Divide and conquer
Time Complexity Analysis
: The number of digit multiplications needed to calculate the multiplication of two numbers which have n digits respectively.
- //Rekurrenz
- // kein Beweis, für Beweis braucht man Induction (See Algorithm Runtime Analysis)
one dimensional goal finding
Goal finding on a line.excalidraw
⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’
Excalidraw Data
Text Elements
1
1
2
2
4
4
8
8
Link to original
Time Complexity Analysis (worst case)
k=distance between start and end Annahme:
Definition des Algorithmus
NOTE
Beschreibung einer Abfolge von elementaren Operationen zur Lösung eines Problems
A typical computer: Ops/sec
What to learn in A&D
- Entwurf und Analyse von Algorithmen
- algorithmische Denkweise
- wichtige Algorithmen kennenlernen