Algorithmentheorie 02 – Polynomprodukt und Fast Fourier Transformation

Slides:



Advertisements
Ähnliche Präsentationen
Algorithmentheorie 08 – Dynamische Programmierung (1)
Advertisements

Fast Fourier Transformation
Algorithmentheorie 08 – Dynamische Programmierung (4) Editierdistanz Approximative Zeichenkettensuche Sequence Alignment Prof. Dr. Th. Ottmann WS
Prof. Dr. S. Albers Prof.Dr.Th Ottmann
Polynomial Root Isolation
Algebraische Zahlen: Exaktes Rechnen mit Wurzeln
Schnelle Matrizenoperationen von Christian Büttner
Vorlesung Prozessidentifikation
LS 2 / Informatik Datenstrukturen, Algorithmen und Programmierung 2 (DAP2)
LS 2 / Informatik Datenstrukturen, Algorithmen und Programmierung 2 (DAP2)
WS 03/041 Algorithmentheorie 01 - Einleitung Prof. Dr. S. Albers Prof. Dr. Th. Ottmann.
WS Prof. Dr. Th. Ottmann Algorithmentheorie 09 - Suche in Texten KMP, BM.
Übung 6.6Schranken 1.Angenommen, Ihr Algorithmus habe einen Aufwand von g(n) = 5n 3 + n für alle n a)Geben sie eine obere Schranke O(g(n)) an. b)Beweisen.
Algorithmentheorie 04 –Hashing
Suche in Texten: Suffix-Bäume
Algorithmentheorie 6 – Greedy-Verfahren
WS Algorithmentheorie 13 - Kürzeste (billigste) Wege Prof. Dr. Th. Ottmann.
Prof.Dr.S. Albers Prof. Dr. Th. Ottmann
1 Bewegungsplanung Computational Geometry Prof. Dr. Th. Ottmann Bewegungsplanung bei unvollständiger Information Ausweg aus einem Labyrinth Finden eines.
WS 03/04 Algorithmentheorie 03 - Randomisierung Prof. Dr. S. Albers Prof. Dr. Th. Ottmann.
WS Algorithmentheorie 02 - Polynomprodukt und Fast Fourier Transformation Prof. Dr. Th. Ottmann.
WS Algorithmentheorie 05 - Treaps Prof. Dr. Th. Ottmann.
Dynamische Programmierung (2) Matrixkettenprodukt
Prof. Dr. S. Albers Prof. Dr. Th. Ottmann
1 Vorlesung Informatik 2 Algorithmen und Datenstrukturen (02 – Funktionenklassen) Prof. Dr. Th. Ottmann.
Vorlesung Informatik 2 Algorithmen und Datenstrukturen (04 – Entwurfsverfahren) Prof. Th. Ottmann.
1 Vorlesung Informatik 2 Algorithmen und Datenstrukturen (03 – Verschiedene Algorithmen für dasselbe Problem) Prof. Dr. Th. Ottmann.
WS Algorithmentheorie 01 – Divide and Conquer (Segmentschnitt) Prof. Dr. Th. Ottmann.
Vorlesung Informatik 2 Algorithmen und Datenstrukturen (19 - Analyse natürlicher Bäume) Prof. Th. Ottmann.
Vorlesung Informatik 2 Algorithmen und Datenstrukturen (02 – Funktionenklassen) Tobias Lauer.
1 Vorlesung Informatik 2 Algorithmen und Datenstrukturen (03 – Verschiedene Algorithmen für dasselbe Problem) Prof. Dr. Th. Ottmann.
Vorlesung Informatik 2 Algorithmen und Datenstrukturen (02 – Funktionenklassen) Prof. Dr. Th. Ottmann.
Vorlesung Informatik 2 Algorithmen und Datenstrukturen Halbzeit: Was haben wir bisher gelernt? Prof. Th. Ottmann.
WS Prof. Dr. Th. Ottmann Algorithmentheorie 09 - Suche in Texten Suffix –Tree –Konstruktion Ukkonen Algorithmus.
WS Algorithmentheorie 08 – Dynamische Programmierung (2) Matrixkettenprodukt Prof. Dr. Th. Ottmann.
WS Algorithmentheorie 08 – Dynamische Programmierung (3) Konstruktion optimaler Suchbäume Prof. Dr. Th. Ottmann.
Informatik II, SS 2008 Algorithmen und Datenstrukturen Vorlesung 4 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät.
Algorithmen und Datenstrukturen
WS 06/07 Algorithmentheorie 01 - Einleitung Prof. Dr. Th. Ottmann Tobias Lauer.
Algorithmentheorie 12 – Spannende Bäume minimalen Gewichts
Union-Find-Strukturen
1 Vorlesung Informatik 2 Algorithmen und Datenstrukturen (03 – Verschiedene Algorithmen für dasselbe Problem) Prof. Dr. Th. Ottmann.
WS Prof. Dr. Th. Ottmann Algorithmentheorie 09 - Suche in Texten Suffix - Bäume.
WS03/041 Binomial Queues Prof. Dr. S. Albers Prof.Dr.Th Ottmann.
Vorlesung Informatik 3 Einführung in die Theoretische Informatik (17 –Turingmaschinen) Prof. Dr. Th. Ottmann.
Geometrisches Divide and Conquer
Kapitel 5 Stetigkeit.
EINI-I Einführung in die Informatik für Naturwissenschaftler und Ingenieure I Vorlesung 2 SWS WS 99/00 Gisbert Dittrich FBI Unido
DVG Gaußscher Algorithmus1 Gaußscher Algorithmus.
Gaußscher Algorithmus
Visualisierung funktionaler Programme
LS 2 / Informatik Datenstrukturen, Algorithmen und Programmierung 2 (DAP2)
Multiplikation großer Zahlen mit Standard-FFT
Effiziente Algorithmen Hartmut Klauck Universität Frankfurt SS
Quantum Computing Hartmut Klauck Universität Frankfurt WS 04/
Quantum Computing Hartmut Klauck Universität Frankfurt WS 05/ /23.1.
Die Fourier-Analyse Durch die Fourier-Analyse wird ein Sprachsignal in Sinusoiden zunehmender Frequenz zerlegt, sodass wenn diese summiert werden, das.
Polynome und schnelle Fourier-Transformation
Einführung in die Programmierung Wintersemester 2013/14 Prof. Dr. Günter Rudolph Lehrstuhl für Algorithm Engineering Fakultät für Informatik TU Dortmund.
Einführung in die Programmierung
Auslegung eines Vorschubantriebes
Stetige Kleinste-Quadrate-Approximation
Folie 1 §21 Das Produkt von Matrizen (21.1) Definition: Für eine (m,n)-Matrix A und eine (n,s)-Matrix B ist das (Matrizen-) Produkt AB definiert als (21.2)
Wichtige Transformationen
WS03/041 Dynamische Programmierung (3) Konstruktion optimaler Suchbäume Prof. Dr. S. Albers Prof. Dr. Th. Ottmann.
11 Ausgewählte Algorithmen der Computergraphik Digitale Geometrie Gebiete und Konturen Farbmodelle Renderalgorithmen Schnelle Multiplikation Fast Fourier.
gesucht ist die Geradengleichung
Wiederholung TexPoint fonts used in EMF.
Korrektur Aufgabe 8.1 Anstatt x2-2x+3 muss es heissen x2-4x+3.
Wiederholung Chinesischer Restsatz RSA TexPoint fonts used in EMF.
 Präsentation transkript:

Algorithmentheorie 02 – Polynomprodukt und Fast Fourier Transformation Prof. Dr. S. Albers Prof. Dr. Th. Ottmann WS 03/04

Polynomprodukt Berechnung des Produkts zweier Polynome p, q vom Grade < n p,q Grad n-1, n Koeffizienten Auswertung: 2n Punkt/Wertpaare und Punktweise Multiplikation 2n Punkt/Wertpaare Interpolation pq Grad 2n-2, 2n-1 Koeffizienten WS 03/04

Diskrete Fourier Transformation n-te komplexe Haupteinheitswurzel: Fast Fourier Transformation: Berechung von DFTn(p) mittels eines Divide-and Conquer Ansatzes WS 03/04

Diskrete Fourier Transformation Ansatz: (n sei gerade) WS 03/04

Diskrete Fourier Transformation Auswertung für k = 0, ... , n – 1 WS 03/04

6. Fast Fourier Transformation Algorithmus FFT Input: Ein Array a mit den n Koeffizienten eines Polynoms p und n = 2k Output: DFTn(p) 1. if n = 1 then /* p ist konstant */ 2. return a 3. d[0] = FFT([a0, a2, ... , an-2 ], n/2) 4. d[1] = FFT([a1, a3, ... , an-1], n/2) 5. n = e2i/n 6.  = 1 7. for k = 0 to n/2 – 1 do /*  = nk*/ 8. 9. 10. 11. return d WS 03/04

FFT : Beispiel a = [0, 18,-15, 3 ] a[0] = [0, -15] a[1] = [18, 3] FFT([0, -15], 2) = (FFT([0],1) + FFT([-15],1), FFT([0],1) - FFT([-15],1)) = (-15,15) FFT([18, 3],2) = (FFT([18],1) + FFT([3],1), FFT([18],1) - FFT([3],1)) = (21,15) k = 0 ;  = 1 d0 = -15 + 1 * 21 = 6 d2 = -15 – 1 * 21 = -36 k = 1 ;  = i d1 = 15 + i*15 d3 = 15 – i*15 FFT(a, 4) = (6, 15+15i, -36, 15 –15i) WS 03/04

7. Analyse T(n) = Zeit um ein Polynom vom Grad < n an den Stellen auszuwerten. T(1) = O(1) T(n) = 2 T(n/2) + O(n) = O(n log n) WS 03/04

Polynomprodukt Berechnung des Produkts zweier Polynome p, q vom Grade < n p,q Grad n-1, n Koeffizienten Auswertung durch FFT: 2n Punkt/Wertpaare und Punktweise Multiplikation 2n Punkt/Wertpaare Interpolation pq Grad 2n-2, 2n-1 Koeffizienten WS 03/04

Interpolation Umrechnung der Punkt/Wert-Darstellung in die Koeffizientendarstellung Gegeben: (x0, y0),..., (xn-1, yn-1) mit xi  xj, für alle i  j Gesucht: Polynom p mit Koeffizienten a0,..., an-1, so dass WS 03/04

Interpolation Matrixschreibweise WS 03/04

Interpolation Spezialfall (hier) : Definition: WS 03/04

Interpolation Satz Für alle 0  i, j  n – 1 gilt: Beweis zu zeigen: WS 03/04

Interpolation WS 03/04

Interpolation Fall 1: i = j Fall 2: i  j, WS 03/04

Interpolation Summationslemma WS 03/04

Interpolation WS 03/04

Interpolation WS 03/04

Interpolation und DFT denn WS 03/04

Polynomprodukt durch FFT Berechnung des Produkts zweier Polynome p, q vom Grade < n p,q Grad n-1, n Koeffizienten Auswertung durch FFT: 2n Punkt/Wertpaare und Punktweise Multiplikation 2n Punkt/Wertpaare Interpolation durch FFT pq Grad 2n-2, 2n-1 Koeffizienten WS 03/04