Vorlesung Einführendes Beispiel-

Slides:



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

Konzepte des Anfangsunterrichts Informatik in der 11.1
Einführung in die Programmierung mit Java
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer, Dr. Gerhard Gröger Einführung in die Programmierung mit Java 7. Vorlesung WS 2002/2003.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer, Dr. Gerhard Gröger, Dipl.-Ing. D. Dörschlag Einführung in die Programmierung mit Java.
Geoinformation II Vorlesung
Diskrete Mathematik I Vorlesung Arrays-
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Übung Diskrete Mathematik SS 2003 Segmentschnitt I.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik I Vorlesung Listen-
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation II Vorlesung In welcher Masche liegt der Punkt p?
Diskrete Mathe 9 Vorlesung 9 SS 2001
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Vorlesung 1 SS 2001 Algorithmus von Dijkstra.
Einführung in die Informatik für Naturwissenschaftler und Ingenieure
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.
Chair of Software Engineering Einführung in die Programmierung Prof. Dr. Bertrand Meyer Lecture 13: (Container-)Datenstrukturen.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 5 WS 2000/2001 Topologie, Landkarten, Datenstrukturen.
Datenstrukturen für Landkarten
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation II Vorlesung 10 SS 2000 Quadtrees.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 14 WS 2000/2001 Gerhard Gröger ArcToolbox - Konvertierung.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 12 WS 2000/2001 Gerhard Gröger Modellierung mit Geodatabases.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 11 WS 2000/2001 Gerhard Gröger Einführung in ArcInfo 8 -
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 10 WS 2000/2001 Gerhard Gröger Einführung in ArcInfo 8.
Geoinformation I Vorlesung 8 WS 2000/2001 Graphen.
Diskrete Mathematik II
Geoinformation II Vorlesung 4 SS 2001 Voronoi-Diagramme.
Modellierung des Raumes
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Objektorientierte Konzepte/UML Geoinformation I Vorlesung 2 WS 2000/2001.
Geoinformation II (6. Semester)
Diskrete Mathematik II
Diskrete Mathematik II
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Vorlesung 5 SS 2001 Segmentschnitt II (n Segmente)
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation II Vorlesung 9 SS 2000 Punkt-in-Polygon-Verfahren III (R/R + -Baum)
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation II Vorlesung 7 SS 2000 Punkt-in-Polygon-Verfahren I (Trapezkarte)
Einführung in die Programmierung Wintersemester 2008/09 Prof. Dr. Günter Rudolph Lehrstuhl für Algorithm Engineering Fakultät für Informatik TU Dortmund.
Einführung in die Programmierung Wintersemester 2008/09 Prof. Dr. Günter Rudolph Lehrstuhl für Algorithm Engineering Fakultät für Informatik TU Dortmund.
Einführung in die Informatik für Naturwissenschaftler und Ingenieure (alias Einführung in die Programmierung) (Vorlesung) Prof. Dr. Günter Rudolph Fachbereich.
Einführung in die Informatik für Naturwissenschaftler und Ingenieure (alias Einführung in die Programmierung) (Vorlesung) Prof. Dr. Günter Rudolph Fakultät.
Einführung in die Programmierung Wintersemester 2009/10 Prof. Dr. Günter Rudolph Lehrstuhl für Algorithm Engineering Fakultät für Informatik TU Dortmund.
Einführung in die Programmierung Wintersemester 2011/12 Prof. Dr. Günter Rudolph Lehrstuhl für Algorithm Engineering Fakultät für Informatik TU Dortmund.
Einführung in die Programmierung Wintersemester 2012/13 Prof. Dr. Günter Rudolph Lehrstuhl für Algorithm Engineering Fakultät für Informatik TU Dortmund.
Geoinformation I Vorlesung 9 WS 2000/2001 DGM (Dreiecksnetze)
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation III Vorlesung 1 WS 2001/02 Punkt-in-Landkarte I (Streifenkarte)
Diskrete Mathematik II
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Vorlesung 6 SS 2001 Segmentschnitt III.
Diskrete Mathematik II
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation II 6. Sem. Vorlesung Mai 2000 Konstruktion des Voronoi-Diagramms.
Geoinformation I Lutz Plümer
Diskrete Mathematik I Vorlesung 2 Arrays.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Foliendesign: Jörg Steinrücken & Tobias Kahn Vorlesung
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Vorlesung der Algorithmus von Floyd Foliendesign:
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation II 6. Sem. Vorlesung April 2000 AVL-Bäume.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik I Vorlesung Rekursion-
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Vorlesung Datenstrukturen für den Algorithmus von.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Foliendesign: Jörg Steinrücken & Tobias Kahn Vorlesung
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer, Dr. Gerhard Gröger Einführung in die Programmierung mit Java 11. Vorlesung WS 2002/2003.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation II Vorlesung 4 WS 01/02 Quadtrees.
Einführung in die Programmierung mit Java
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer, Dr. Gerhard Gröger Einführung in die Programmierung mit Java 5. Vorlesung WS 2002/2003.
G. Gröger - Einführung in die Programmierung mit Java - 1. Semester - WS 02/ Übungsaufgabe vom Logische Ausdrücke 1.true & false | true 2.(10>2)
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Vorlesung Suche des kürzesten Weges in einem Netz.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Foliendesign: Jörg Steinrücken & Tobias Kahn Vorlesung
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Vorlesung Voronoi-Diagramme.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Diskrete Mathematik II Vorlesung der Algorithmus von Floyd.
Einführendes Beispiel
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer, Dr. Thomas H. Kolbe Einführung in die Programmierung mit Java 9. Vorlesung WS 2001/2002.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer, Dr. Gerhard Gröger Einführung in die Programmierung mit Java 10. Vorlesung WS 2002/2003.
Geoinformation II 6. Sem. Vorlesung April 2000 Geometrische Algorithmen - ein einführendes, größeres Beispiel für ein Semester-begleitendes Programmier.
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation II 6. Sem. Vorlesung 4 4. Mai 2000 Voronoi-Diagramm.
Objektorientierte (OO) Programmierung
Programmierung von CNC-Messgeräten mit genetischen Algorithmen Simeon Perlov.
 Präsentation transkript:

Vorlesung 2 21.10.99 -Einführendes Beispiel- Diskrete Mathematik I Vorlesung 2 21.10.99 -Einführendes Beispiel-

Übersicht Flurstück Flurstücke eines Gebietes Flächeninhalt eines Polygons Gaußsche Flächenformel Programmierung: Iteration, For-Schleife Pascal Java Speicherung der Punktkoordinaten Flurstücke eines Gebietes Redundanz Vermeidung der Redundanz Tabellen Objekte siehe Vorlesung „Geoinformation"

Flächeninhalt eine Polygons (x3,y3) (x4,y4) F (x2,y2) (x5,y5) (x1,y1)

Gaußsche Flächenformel k = 1 5 (xk - xk+1)(yk + yk+1) F = 1 2 S

f := f + ((x[k] - x[k+1])*(y[k] + y[k+1])); Iteration, For-Schleife (Pascal) (x4,y4) (x1,y1) (x5,y5) (x2,y2) (x3,y3) 2 k = 1 5 (xk - xk+1)(yk + yk+1) F = 1 S begin f := 0; (x6,y6) for k:=1 to 5 do begin f := f + ((x[k] - x[k+1])*(y[k] + y[k+1])); end flaeche := f/2; end

Iteration, For-Schleife (Java) (x4,y4) (x1,y1) (x5,y5) (x2,y2) (x3,y3) 2 k = 1 5 (xk - xk+1)(yk + yk+1) F = 1 S { f = 0; (x6,y6) for(k = 1; k <= 5; k++) { f = f + ((x[k] - x[k+1])*(y[k] + y[k+1])); } flaeche = f/2; }

Speicherung der Punktkoordinaten (x3,y3) (x4,y4) A (x2,y2) (x5,y5) (x1,y1) A = [(x1,y1), ( x2,y2), ( x3,y3), (x4,y4), (x5,y5)]

D A A A = [(x1,y1), ( x2,y2), ( x3,y3), (x4,y4), (x5,y5)] Speicherung der Punktkoordinaten P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11 B C D A A = [(x1,y1), ( x2,y2), ( x3,y3), (x4,y4), (x5,y5)] (x1,y1) (x4,y4) (x5,y5) (x2,y2) (x3,y3) A D = [(x5,y5), ( x4,y4), ( x9,y9), (x10,y10), (x11,y11)]

Redundanz Die Repräsentation von Polygonen durch Punktlisten A = [(x1,y1), ( x2,y2), ( x3,y3), (x4,y4), (x5,y5)] D = [(x5,y5), ( x4,y4), ( x9,y9), (x10,y10), (x11,y11)] eignet sich direkt für die Berechnung von Flächen speichert Punktkoordinaten redundant ab Nachteil: Platzbedarf (kleines Problem) fehleranfällig, denn die Koordinaten des gleichen Punktes treten an verschiedenen Stellen auf und können verschiedene Werte annehmen (großes Problem) Änderungen sind schwierig Alternative: eigene Punktetabelle und Verweis auf diese Tabelle

Vermeidung der Redundanz: Tabellen Punktliste P1 2.0 0.0 P2 5.0 1.0 P3 7.0 3.0 P4 5.0 4.0 P5 1.0 1.0 P6 7.0 6.0 P7 5.0 6.0 P8 5.0 7.0 P9 3.0 7.0 P10 3.0 6.0 P11 0.0 3.0 P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11 A B C D Grundstücksliste A 1 2 3 4 5 B 4 7 8 9 C 4 3 6 7 D 4 9 10 11 5

Vermeidung der Redundanz: Punkte als Objekte -> Vorlesung „Geoinformation“

„Objektorientierung“ im 1. Semester Vorlesung „Diskrete Mathematik“ Modellierung von Objekten UML „Programmierung“ Implementierung von Objekten Java Diskrete Mathematik Verwendung von Objekten in Algorithmen