Grids Geometry Computational Geometry

Slides:



Advertisements
Similar presentations
8.1 Prisms, Area and Volume Prism – 2 congruent polygons lie in parallel planes corresponding sides are parallel. corresponding vertices are connected.
Advertisements

1 Programming Interest Group Tutorial Eight Computational Geometry.
Day 78. Today’s Agenda Area Rectangles Parallelograms Triangles Trapezoids Kites/Rhombi Circles/Sectors Irregular Figures Regular Polygons.
MAT 105 SPRING 2009 Chapter 2 Geometry.
Unit 7 Polygons.
9.2 – Curves, Polygons, and Circles Curves The basic undefined term curve is used for describing non- linear figures in a plane. A simple curve can be.
Chapter 9 Geometry © 2008 Pearson Addison-Wesley. All rights reserved.
By John Burnett & Peter Orlowski.  All the Geometry you need to know for the SAT/PSAT comes down to 20 key facts, and can be covered in 20 slides. 
Math: Geometry & Trigonometry
Mr. Barra Take The Quiz! Polygon with three edges (sides) and three vertices (corners) Sum of all interior angles equals 180° Right triangle One interior.
Chin-Sung Lin. Mr. Chin-Sung Lin  Distance Formula  Midpoint Formula  Slope Formula  Parallel Lines  Perpendicular Lines.
I have 7 triangles, 1 each of: acute scalene, acute isosceles, equilateral, right scalene, right isosceles, obtuse scalene, obtuse isosceles. If I ask.
TMAT 103 Chapter 2 Review of Geometry. TMAT 103 §2.1 Angles and Lines.
Geometry Vocabulary Test Ms. Ortiz. 1. If two parallel lines are cut by a transversal, then the corresponding angles are congruent.
Geometry The strand of math that deals with measurement and comparing figures, both plane and solid .
Attributes A quality that is characteristic of someone or something.
Geometry Review. What is a six sided polygon called?
Created by: Sharon Moore
Geometry CRCT Prep.
TAKS Tutorial Geometry Objectives 6 – 8 Part 2. The Geometry tested on the Exit Level TAKS test covers High School Geometry. Topics to be covered in today’s.
In your study of geometry so far, you have focused your attention on two-dimensional shapes. You have investigated the special properties of triangles,
Geometry Angie Bordwell, Vertis Lewis, Lissa Purpura, and Jean Tuquero.
Areas of Regular Polygons Section Theorem 11.3 Area of an Equilateral Triangle: The area of an EQUILATERAL triangle is one fourth the square of.
Unit 7 Polygons.
Geometric Constructions
Geometry Chapter 3 Parallel Lines and Perpendicular Lines Pages
TECH 104 – Technical Graphics Communication Introduction to Engineering Graphics Communication.
 Conjecture- unproven statement that is based on observations.  Inductive reasoning- looking for patterns and making conjectures is part of this process.
10. 4 Polar Coordinates and Polar Graphs 10
Geometry Vocabulary. Triangle Triangle: a polygon with three sides. 180⁰ Sum of the interior angles of a triangle = 180⁰.
Acute angle: An angle with a measure less than 90º.
Objectives To develop knowledge of the vocabulary and terminology of shape. To consider activities to develop children's understanding of shape. To examine.
Mathematical Vocabulary
GEOMETRY!!!. Points  A point is an end of a line segment.  It is an exact location in space.   It is represented by a small dot. Point A A.
Geometry.
Perimeter, area and volume
Geometry Objectives 6 – 8 Part 1
Interesting Geometry Facts and Tactics
Basic Geometric Terms & Construction
Unit 11: 3-Dimensional Geometry
Copyright 2012, 2008, 2004, 2000 Pearson Education, Inc.
Unit 4.3 Identifying, Describing, and Applying Theorems about Circles
Engineering Geometry Engineering geometry is the basic geometric elements and forms used in engineering design. Engineering and technical graphics are.
Question and Answer Geometry Review Ms. Buckus
Geometry Review: First Semester
Section 1.1 Building blocks of Geometry
Grids Geometry Computational Geometry
Grids Geometry Computational Geometry
Geometry Final Vocabulary
Geometry Final Vocabulary
Mrs. Daniel’s Geometry Vocab List
Point-a location on a plane.
Unit 11: 3-Dimensional Geometry
The Art Gallery Problem
Geometric Constructions
Geometry.
Copyright 2012, 2008, 2004, 2000 Pearson Education, Inc.
Warm Up Classify each polygon. 1. a polygon with three congruent sides
Properties of Triangles and Quadrilateral
Objectives Apply Euler’s formula to find the number of vertices, edges, and faces of a polyhedron. Develop and apply the distance and midpoint formulas.
Geometric Shapes and Area
Area & Volume Chapter 6.1 & 6.2 February 20, 2007.
CHAPTER 2: Geometric Constructions
Math 132 Day 2 (2/1/18) CCBC Dundalk.
Analytic Geometry.
EOC Review.
Geometry.
Geometry Final Vocabulary
Presentation transcript:

Grids Geometry Computational Geometry

Grids You will encounter many problems whose solutions need grid representation map VLSI layout the most natural way to carve space into regions regular pattern rectangular or rectilinear grids are common but sometimes you will see triangulr or hexagonal grids

Rectilinear Grids each cell is defined by horizontal and vertical lines spacing between lines can be uniform non-uniform three dimensional grid is difficult to visualize vertices edges cells

Graph Representation of Grid Grid is a graph (V, E) each vertex contains information city, village, transistor, .. each edge represents relationship between vertices can be 2D, 3D, 4D, ... Traversal row major column major snake diagonal ....

Dual Graphs m[i][j] can be either The four-color theorem a vertex a face Any one can be transformed into the other proof? The four-color theorem the map and the graph to solve the problem are different How can you represent weights on edges?

Triangular Lattices a vertex needs to be assigned coordinates Duality? (x, y) is good enough? if edges are removed, it looks like a grid Duality? Geometrical coordinates

Hexagonal Lattices It is a subset of a triangular lattice remove every other vertex Interesting properties it is the roundest polygon to fill the space per space/perimeter a circle is the best

Representation for rectangular solution, additional coordinates are needed (3,1) is better be at the straight above (1, 1)

Exercise Dish Packing Flying path How many dishes can be places in a box? Flying path find the shortest flying distance from Seoul to Bagdad

Problem 1: Star

Problem 2: Convert coordinate numbers

Geometry You are supposed to know enough geometry How can you apply this knowledge to solve problems? even a simple solution with pencil and paper needs severe elaboration for a program You should be familiar with two disciplines geometry representation of geometric problem/solution as a software program

Lines representations two points: (x1, y1) and (x2, y2) a single point and a slope: y = mx + b m = (y1 – y2)/(x1 – x2) what if (x1-x2) is 0? – needs special attention for division more general: ax + by + c = 0 typedef struct { double a; double b; // default value is 1 doublec; } line any one of the above can be converted to any other

Excercises find an intersection of two lines what else? check if they are parallel else find what else? angles of two lines closest point on a line rays – half line with an origin

Triangles and Trigonometry angles: use radians since most libraries use them make yourself comfortable with terminologies right triangle perpendicular lines internal/external angle equilateral hypotenuse Remember them?

Triangle Area singed triangle area positive negative c a b b a c

Circles representation formula: problems tangent line typedef struct { point c; /* center */ double r; /* radius */ } circle; formula: problems tangent line intersection points

Excercise find the travel distance find circles intersecting the s-t line find the length of the chord compute the arc length

Libraries

Excercise 50- cm square plate place a circle of 5 cm to contain most chips

Computational Geometry You need to handle geometry data graphics navigation CAD Objects are usually lines and polygones computational geometry deal with them using a computer the most fascinating and growing area in mathematical sciences

Line Segments a portion of a line Are two segments intersect? typedef struct { point p1, p2; } segment; Are two segments intersect? first, deal with degeneracy cases parallel total overlap

Polygons definition a closed chain of non-intersecting line segments typedef struct { int n; /* number of vertices */ point p[MAXPOLY]; /* vertices are ordered? */ } polygon; convex all internal angles are less than 180 (not reflex angle) acute or obtuse “singed triangle are function” tests if a point is left or right of a line

Convex Hulls similar to sorting The smallest polygon containing a set of points Solutions find the leftmost-lowest point (origin) sort points according to angles to the origin add one by one be careful of degeneracy

Finding area of a polygon triangulation convex is easy then, make it a convex ear cutting method find an ear, calculate its area do this until there remains a triangle How to test if a point is inside a polygon? What if a chord of the ear cuts other segment of the polygon? test if any vertex is within an ear better solution?

Jordan Curve Theorem Ear cutting for this polygon?

Lattice Polygon A: area I: number of points inside the polygon Pick’s Theorem A: area I: number of points inside the polygon B: number of points on the border How to computer I and B B is easy better solution for I?