The Mathematics of GIS

Total Page:16

File Type:pdf, Size:1020Kb

The Mathematics of GIS The Mathematics of GIS Wolfgang Kainz Wolfgang Kainz Department of Geography and Regional Research University of Vienna Universitätsstraße 7, A-1010 Vienna, Austria E-Mail: [email protected] Version 2.1 (August 2010) Contents 0. Preface ............................................................................ XI 1. The Structure of Mathematics ........................................ 1 1.1 Brief History of Mathematics ...................................................................... 2 1.2 Sub-disciplines of Mathematics................................................................... 2 2. Propositional Logic .......................................................... 5 2.1 Assertion and Proposition ............................................................................ 6 2.2 Logical Operators ......................................................................................... 7 2.3 Types of Propositional Forms ...................................................................... 9 2.4 Applications in GIS .................................................................................... 11 2.5 Exercises ..................................................................................................... 11 3. Predicate Logic .............................................................. 13 3.1 Predicates .................................................................................................... 14 3.2 Quantifiers .................................................................................................. 15 3.3 Quantifiers and Logical Operators ............................................................ 16 3.4 Compact Notation ...................................................................................... 17 3.5 Applications in GIS .................................................................................... 18 3.6 Exercises ..................................................................................................... 18 4. Logical Inference ........................................................... 19 4.1 Logical Arguments ..................................................................................... 20 4.2 Proving Arguments Valid in Propositional Logic .................................... 20 4.2.1 Proving Arguments Valid with Truth Tables ................................................................ 21 4.2.2 Proving Arguments Valid with Rules of Inference ....................................................... 21 4.3 Proving Arguments Valid in Predicate Logic ........................................... 22 4.4 Applications in GIS .................................................................................... 23 4.5 Exercises ..................................................................................................... 23 5. Set Theory ...................................................................... 25 5.1 Sets and Elements ...................................................................................... 26 5.2 Relations between Sets .............................................................................. 27 5.3 Operations on Sets ...................................................................................... 27 5.4 Applications in GIS .................................................................................... 29 5.5 Exercises ..................................................................................................... 30 6. Relations and Functions ............................................... 31 6.1 Cartesian Product ....................................................................................... 32 6.2 Binary Relations ......................................................................................... 32 6.2.1 Relations and Predicates ................................................................................................ 33 6.2.2 Graphic Representation of Binary Relations ................................................................ 33 I II 6.2.3 Special Properties of Relations ...................................................................................... 33 6.2.3.1 Equivalence Relation .............................................................................................................. 34 6.2.3.2 Order Relation ......................................................................................................................... 35 6.2.4 Composition of Relations ............................................................................................... 35 6.3 Functions .................................................................................................... 36 6.3.1 Composition of Functions .............................................................................................. 37 6.3.2 Classes of Functions ....................................................................................................... 37 6.4 Applications in GIS .................................................................................... 40 6.5 Exercises ..................................................................................................... 42 7. Coordinate Systems and Transformations .................. 43 7.1 Coordinate Systems .................................................................................... 44 7.1.1 Cartesian Coordinate Systems ....................................................................................... 44 7.1.2 Polar Coordinate Systems .............................................................................................. 45 7.1.3 Transformations between Cartesian and Polar Coordinate Systems ........................ 45 7.1.4 Geographic Coordinate System ..................................................................................... 47 7.2 Vectors and Matrices ................................................................................. 47 7.2.1 Vectors ............................................................................................................................. 47 7.2.2 Matrices ........................................................................................................................... 51 7.3 Transformations ......................................................................................... 52 7.3.1 Geometric Transformations ........................................................................................... 52 7.3.1.1 Translation ............................................................................................................................... 52 7.3.1.2 Rotation .................................................................................................................................... 53 7.3.1.3 Scaling ...................................................................................................................................... 53 7.3.2 Combination of Transformations .................................................................................. 54 7.3.3 Homogeneous Coordinates ............................................................................................ 55 7.3.4 Transformation between Coordinate Systems .............................................................. 56 7.4 Applications in GIS .................................................................................... 57 7.5 Exercises ..................................................................................................... 58 8. Algebraic Structures ..................................................... 59 8.1 Components of an Algebra ........................................................................ 60 8.1.1 Signature and Variety ..................................................................................................... 60 8.1.2 Identity and Zero Elements ............................................................................................ 61 8.2 Varieties of Algebras .................................................................................. 61 8.2.1 Group ............................................................................................................................... 62 8.2.2 Field ................................................................................................................................. 62 8.2.3 Boolean Algebra ............................................................................................................. 63 8.2.4 Vector Space .................................................................................................................... 63 8.3 Homomorphism ......................................................................................... 64 8.4 Applications in GIS .................................................................................... 65 8.5 Exercises ..................................................................................................... 66 9. Topology ......................................................................... 67 9.1 Topological Spaces .................................................................................... 68 9.1.1 Metric Spaces and Neighborhoods ............................................................................... 68 9.1.2 Topology and Open Sets ................................................................................................. 69 9.1.3 Continuous Functions and Homeomorphisms ............................................................. 71 9.1.4
Recommended publications
  • A Proof of Cantor's Theorem
    Cantor’s Theorem Joe Roussos 1 Preliminary ideas Two sets have the same number of elements (are equinumerous, or have the same cardinality) iff there is a bijection between the two sets. Mappings: A mapping, or function, is a rule that associates elements of one set with elements of another set. We write this f : X ! Y , f is called the function/mapping, the set X is called the domain, and Y is called the codomain. We specify what the rule is by writing f(x) = y or f : x 7! y. e.g. X = f1; 2; 3g;Y = f2; 4; 6g, the map f(x) = 2x associates each element x 2 X with the element in Y that is double it. A bijection is a mapping that is injective and surjective.1 • Injective (one-to-one): A function is injective if it takes each element of the do- main onto at most one element of the codomain. It never maps more than one element in the domain onto the same element in the codomain. Formally, if f is a function between set X and set Y , then f is injective iff 8a; b 2 X; f(a) = f(b) ! a = b • Surjective (onto): A function is surjective if it maps something onto every element of the codomain. It can map more than one thing onto the same element in the codomain, but it needs to hit everything in the codomain. Formally, if f is a function between set X and set Y , then f is surjective iff 8y 2 Y; 9x 2 X; f(x) = y Figure 1: Injective map.
    [Show full text]
  • Frequently Asked Questions in Mathematics
    Frequently Asked Questions in Mathematics The Sci.Math FAQ Team. Editor: Alex L´opez-Ortiz e-mail: [email protected] Contents 1 Introduction 4 1.1 Why a list of Frequently Asked Questions? . 4 1.2 Frequently Asked Questions in Mathematics? . 4 2 Fundamentals 5 2.1 Algebraic structures . 5 2.1.1 Monoids and Groups . 6 2.1.2 Rings . 7 2.1.3 Fields . 7 2.1.4 Ordering . 8 2.2 What are numbers? . 9 2.2.1 Introduction . 9 2.2.2 Construction of the Number System . 9 2.2.3 Construction of N ............................... 10 2.2.4 Construction of Z ................................ 10 2.2.5 Construction of Q ............................... 11 2.2.6 Construction of R ............................... 11 2.2.7 Construction of C ............................... 12 2.2.8 Rounding things up . 12 2.2.9 What’s next? . 12 3 Number Theory 14 3.1 Fermat’s Last Theorem . 14 3.1.1 History of Fermat’s Last Theorem . 14 3.1.2 What is the current status of FLT? . 14 3.1.3 Related Conjectures . 15 3.1.4 Did Fermat prove this theorem? . 16 3.2 Prime Numbers . 17 3.2.1 Largest known Mersenne prime . 17 3.2.2 Largest known prime . 17 3.2.3 Largest known twin primes . 18 3.2.4 Largest Fermat number with known factorization . 18 3.2.5 Algorithms to factor integer numbers . 18 3.2.6 Primality Testing . 19 3.2.7 List of record numbers . 20 3.2.8 What is the current status on Mersenne primes? .
    [Show full text]
  • Implications for a Future Information Theory Based on Vacuum 1 Microtopology
    Getting Something Out of Nothing: Implications for a Future Information Theory Based on Vacuum 1 Microtopology William Michael Kallfelz 2 Committee for Philosophy and the Sciences University of Maryland at College Park Abstract (word count: 194) Submitted October 3, 2005 Published in IANANO Conference Proceedings : October 31-November 4, 2005 3 Contemporary theoretical physicists H. S. Green and David R. Finkelstein have recently advanced theories depicting space-time as a singular limit, or condensate, formed from fundamentally quantum micro topological units of information, or process (denoted respectively by ‘qubits,’ or ‘chronons.’) H. S. Green (2000) characterizes the manifold of space-time as a parafermionic statistical algebra generated fundamentally by qubits. David Finkelstein (2004a-c) models the space-time manifold as singular limit of a regular structure represented by a Clifford algebra, whose generators γ α represent ‘chronons,’ i.e., elementary quantum processes. Both of these theories are in principle experimentally testable. Green writes that his parafermionic embeddings “hav[e] an important advantage over their classical counterparts [in] that they have a direct physical interpretation and their parameters are in principle observable.” (166) David Finkelstein discusses in detail unique empirical ramifications of his theory in (2004b,c) which most notably include the removal of quantum field-theoretic divergences. Since the work of Shannon and Hawking, associations with entropy, information, and gravity emerged in the study of Hawking radiation. Nowadays, the theories of Green and Finkelstein suggest that the study of space-time lies in the development of technologies better able to probe its microtopology in controlled laboratory conditions. 1 Total word count, including abstract & footnotes: 3,509.
    [Show full text]
  • Chapter 7 Expressions and Assignment Statements
    Chapter 7 Expressions and Assignment Statements Chapter 7 Topics Introduction Arithmetic Expressions Overloaded Operators Type Conversions Relational and Boolean Expressions Short-Circuit Evaluation Assignment Statements Mixed-Mode Assignment Chapter 7 Expressions and Assignment Statements Introduction Expressions are the fundamental means of specifying computations in a programming language. To understand expression evaluation, need to be familiar with the orders of operator and operand evaluation. Essence of imperative languages is dominant role of assignment statements. Arithmetic Expressions Their evaluation was one of the motivations for the development of the first programming languages. Most of the characteristics of arithmetic expressions in programming languages were inherited from conventions that had evolved in math. Arithmetic expressions consist of operators, operands, parentheses, and function calls. The operators can be unary, or binary. C-based languages include a ternary operator, which has three operands (conditional expression). The purpose of an arithmetic expression is to specify an arithmetic computation. An implementation of such a computation must cause two actions: o Fetching the operands from memory o Executing the arithmetic operations on those operands. Design issues for arithmetic expressions: 1. What are the operator precedence rules? 2. What are the operator associativity rules? 3. What is the order of operand evaluation? 4. Are there restrictions on operand evaluation side effects? 5. Does the language allow user-defined operator overloading? 6. What mode mixing is allowed in expressions? Operator Evaluation Order 1. Precedence The operator precedence rules for expression evaluation define the order in which “adjacent” operators of different precedence levels are evaluated (“adjacent” means they are separated by at most one operand).
    [Show full text]
  • An Update on the Four-Color Theorem Robin Thomas
    thomas.qxp 6/11/98 4:10 PM Page 848 An Update on the Four-Color Theorem Robin Thomas very planar map of connected countries the five-color theorem (Theorem 2 below) and can be colored using four colors in such discovered what became known as Kempe chains, a way that countries with a common and Tait found an equivalent formulation of the boundary segment (not just a point) re- Four-Color Theorem in terms of edge 3-coloring, ceive different colors. It is amazing that stated here as Theorem 3. Esuch a simply stated result resisted proof for one The next major contribution came in 1913 from and a quarter centuries, and even today it is not G. D. Birkhoff, whose work allowed Franklin to yet fully understood. In this article I concentrate prove in 1922 that the four-color conjecture is on recent developments: equivalent formulations, true for maps with at most twenty-five regions. The a new proof, and progress on some generalizations. same method was used by other mathematicians to make progress on the four-color problem. Im- Brief History portant here is the work by Heesch, who developed The Four-Color Problem dates back to 1852 when the two main ingredients needed for the ultimate Francis Guthrie, while trying to color the map of proof—“reducibility” and “discharging”. While the the counties of England, noticed that four colors concept of reducibility was studied by other re- sufficed. He asked his brother Frederick if it was searchers as well, the idea of discharging, crucial true that any map can be colored using four col- for the unavoidability part of the proof, is due to ors in such a way that adjacent regions (i.e., those Heesch, and he also conjectured that a suitable de- sharing a common boundary segment, not just a velopment of this method would solve the Four- point) receive different colors.
    [Show full text]
  • DESIGN Principles & Practices: an International Journal
    DESIGN Principles & Practices: An International Journal Volume 3, Number 1 A Computational Investigation into the Fractal Dimensions of the Architecture of Kazuyo Sejima Michael J. Ostwald, Josephine Vaughan and Stephan K. Chalup www.design-journal.com DESIGN PRINCIPLES AND PRACTICES: AN INTERNATIONAL JOURNAL http://www.Design-Journal.com First published in 2009 in Melbourne, Australia by Common Ground Publishing Pty Ltd www.CommonGroundPublishing.com. © 2009 (individual papers), the author(s) © 2009 (selection and editorial matter) Common Ground Authors are responsible for the accuracy of citations, quotations, diagrams, tables and maps. All rights reserved. Apart from fair use for the purposes of study, research, criticism or review as permitted under the Copyright Act (Australia), no part of this work may be reproduced without written permission from the publisher. For permissions and other inquiries, please contact <[email protected]>. ISSN: 1833-1874 Publisher Site: http://www.Design-Journal.com DESIGN PRINCIPLES AND PRACTICES: AN INTERNATIONAL JOURNAL is peer- reviewed, supported by rigorous processes of criterion-referenced article ranking and qualitative commentary, ensuring that only intellectual work of the greatest substance and highest significance is published. Typeset in Common Ground Markup Language using CGCreator multichannel typesetting system http://www.commongroundpublishing.com/software/ A Computational Investigation into the Fractal Dimensions of the Architecture of Kazuyo Sejima Michael J. Ostwald, The University of Newcastle, NSW, Australia Josephine Vaughan, The University of Newcastle, NSW, Australia Stephan K. Chalup, The University of Newcastle, NSW, Australia Abstract: In the late 1980’s and early 1990’s a range of approaches to using fractal geometry for the design and analysis of the built environment were developed.
    [Show full text]
  • Operators and Expressions
    UNIT – 3 OPERATORS AND EXPRESSIONS Lesson Structure 3.0 Objectives 3.1 Introduction 3.2 Arithmetic Operators 3.3 Relational Operators 3.4 Logical Operators 3.5 Assignment Operators 3.6 Increment and Decrement Operators 3.7 Conditional Operator 3.8 Bitwise Operators 3.9 Special Operators 3.10 Arithmetic Expressions 3.11 Evaluation of Expressions 3.12 Precedence of Arithmetic Operators 3.13 Type Conversions in Expressions 3.14 Operator Precedence and Associability 3.15 Mathematical Functions 3.16 Summary 3.17 Questions 3.18 Suggested Readings 3.0 Objectives After going through this unit you will be able to: Define and use different types of operators in Java programming Understand how to evaluate expressions? Understand the operator precedence and type conversion And write mathematical functions. 3.1 Introduction Java supports a rich set of operators. We have already used several of them, such as =, +, –, and *. An operator is a symbol that tells the computer to perform certain mathematical or logical manipulations. Operators are used in programs to manipulate data and variables. They usually form a part of mathematical or logical expressions. Java operators can be classified into a number of related categories as below: 1. Arithmetic operators 2. Relational operators 1 3. Logical operators 4. Assignment operators 5. Increment and decrement operators 6. Conditional operators 7. Bitwise operators 8. Special operators 3.2 Arithmetic Operators Arithmetic operators are used to construct mathematical expressions as in algebra. Java provides all the basic arithmetic operators. They are listed in Tabled 3.1. The operators +, –, *, and / all works the same way as they do in other languages.
    [Show full text]
  • Digital Mapping & Spatial Analysis
    Digital Mapping & Spatial Analysis Zach Silvia Graduate Community of Learning Rachel Starry April 17, 2018 Andrew Tharler Workshop Agenda 1. Visualizing Spatial Data (Andrew) 2. Storytelling with Maps (Rachel) 3. Archaeological Application of GIS (Zach) CARTO ● Map, Interact, Analyze ● Example 1: Bryn Mawr dining options ● Example 2: Carpenter Carrel Project ● Example 3: Terracotta Altars from Morgantina Leaflet: A JavaScript Library http://leafletjs.com Storytelling with maps #1: OdysseyJS (CartoDB) Platform Germany’s way through the World Cup 2014 Tutorial Storytelling with maps #2: Story Maps (ArcGIS) Platform Indiana Limestone (example 1) Ancient Wonders (example 2) Mapping Spatial Data with ArcGIS - Mapping in GIS Basics - Archaeological Applications - Topographic Applications Mapping Spatial Data with ArcGIS What is GIS - Geographic Information System? A geographic information system (GIS) is a framework for gathering, managing, and analyzing data. Rooted in the science of geography, GIS integrates many types of data. It analyzes spatial location and organizes layers of information into visualizations using maps and 3D scenes. With this unique capability, GIS reveals deeper insights into spatial data, such as patterns, relationships, and situations - helping users make smarter decisions. - ESRI GIS dictionary. - ArcGIS by ESRI - industry standard, expensive, intuitive functionality, PC - Q-GIS - open source, industry standard, less than intuitive, Mac and PC - GRASS - developed by the US military, open source - AutoDESK - counterpart to AutoCAD for topography Types of Spatial Data in ArcGIS: Basics Every feature on the planet has its own unique latitude and longitude coordinates: Houses, trees, streets, archaeological finds, you! How do we collect this information? - Remote Sensing: Aerial photography, satellite imaging, LIDAR - On-site Observation: total station data, ground penetrating radar, GPS Types of Spatial Data in ArcGIS: Basics Raster vs.
    [Show full text]
  • Rules of Replacement II, §7.4
    Philosophy 109, Modern Logic, Queens College Russell Marcus, Instructor email: [email protected] website: http://philosophy.thatmarcusfamily.org Office phone: (718) 997-5287 Rules of Replacement II, §7.4 I. The Last Five Rules of Replacement See the appendix at the end of the lesson for truth tables proving equivalence for each. Transposition (Trans) P e Q :: -Q e -P You may switch the antecedent and consequent of a conditional statement, as long as you negate (or un-negate) both. Often used with (HS). Also, traditionally, called the ‘contrapositive’. Sample Derivation: 1. A e B 2. D e -B / A e -D 3. --B e -D 2, Trans 4. A e -D 1, 3, DN, HS QED Transposition can be tricky when only one term is negated: A e -B becomes, by Trans: --B e -A which becomes, by DN B e -A Equivalently, but doing the double negation first: A e -B becomes, by DN: --A e -B becomes, by Trans: B e -A Either way, you can include the DN on the line with Trans. Material Implication (Impl) P e Q :: -P w Q Implication allows you to change a statement from a disjunction to a conditional, or vice versa. It’s often easier to work with disjunctions. You can use (DM) to get conjunctions. You may be able to use distribution, which doesn’t apply to conditionals. On the other hand, sometimes, you just want to work with conditionals. You can use (HS) and (MP). Proofs are overdetermined by our system - there are many ways to do them.
    [Show full text]
  • Fibonacci, Kronecker and Hilbert NKS 2007
    Fibonacci, Kronecker and Hilbert NKS 2007 Klaus Sutner Carnegie Mellon University www.cs.cmu.edu/∼sutner NKS’07 1 Overview • Fibonacci, Kronecker and Hilbert ??? • Logic and Decidability • Additive Cellular Automata • A Knuth Question • Some Questions NKS’07 2 Hilbert NKS’07 3 Entscheidungsproblem The Entscheidungsproblem is solved when one knows a procedure by which one can decide in a finite number of operations whether a given logical expression is generally valid or is satisfiable. The solution of the Entscheidungsproblem is of fundamental importance for the theory of all fields, the theorems of which are at all capable of logical development from finitely many axioms. D. Hilbert, W. Ackermann Grundzuge¨ der theoretischen Logik, 1928 NKS’07 4 Model Checking The Entscheidungsproblem for the 21. Century. Shift to computer science, even commercial applications. Fix some suitable logic L and collection of structures A. Find efficient algorithms to determine A |= ϕ for any structure A ∈ A and sentence ϕ in L. Variants: fix ϕ, fix A. NKS’07 5 CA as Structures Discrete dynamical systems, minimalist description: Aρ = hC, i where C ⊆ ΣZ is the space of configurations of the system and is the “next configuration” relation induced by the local map ρ. Use standard first order logic (either relational or functional) to describe properties of the system. NKS’07 6 Some Formulae ∀ x ∃ y (y x) ∀ x, y, z (x z ∧ y z ⇒ x = y) ∀ x ∃ y, z (y x ∧ z x ∧ ∀ u (u x ⇒ u = y ∨ u = z)) There is no computability requirement for configurations, in x y both x and y may be complicated.
    [Show full text]
  • Supervised Language Modeling for Temporal Resolution of Texts
    Supervised Language Modeling for Temporal Resolution of Texts Abhimanu Kumar Matthew Lease Jason Baldridge Dept. of Computer Science School of Information Department of Linguistics University of Texas at Austin University of Texas at Austin University of Texas at Austin [email protected] [email protected] [email protected] ABSTRACT describe any form of communication without cables (e.g. internet We investigate temporal resolution of documents, such as deter- access). As such, the word wireless embodies implicit time cues, mining the date of publication of a story based on its text. We a notion we might generalize by inferring its complete temporal describe and evaluate a model that build histograms encoding the distribution as well as that of all other words. By harnessing many probability of different temporal periods for a document. We con- such implicit cues in combination across a document, we might fur- struct histograms based on the Kullback-Leibler Divergence be- ther infer a unique temporal distribution for the overall document. tween the language model for a test document and supervised lan- As in prior document dating studies, we partition the timeline guage models for each interval. Initial results indicate this language (and document collection) to infer an unique language model (LM) modeling approach is effective for predicting the dates of publica- underlying each time period [10, 14]. While prior work consid- tion of short stories, which contain few explicit mentions of years. ered texts from the past 10-20 years, our work is more historically- oriented, predicting publication dates for historical works of fiction.
    [Show full text]
  • 7.1 Rules of Implication I
    Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic. The method consists of using sets of Rules of Inference (valid argument forms) to derive either a conclusion or a series of intermediate conclusions that link the premises of an argument with the stated conclusion. The First Four Rules of Inference: ◦ Modus Ponens (MP): p q p q ◦ Modus Tollens (MT): p q ~q ~p ◦ Pure Hypothetical Syllogism (HS): p q q r p r ◦ Disjunctive Syllogism (DS): p v q ~p q Common strategies for constructing a proof involving the first four rules: ◦ Always begin by attempting to find the conclusion in the premises. If the conclusion is not present in its entirely in the premises, look at the main operator of the conclusion. This will provide a clue as to how the conclusion should be derived. ◦ If the conclusion contains a letter that appears in the consequent of a conditional statement in the premises, consider obtaining that letter via modus ponens. ◦ If the conclusion contains a negated letter and that letter appears in the antecedent of a conditional statement in the premises, consider obtaining the negated letter via modus tollens. ◦ If the conclusion is a conditional statement, consider obtaining it via pure hypothetical syllogism. ◦ If the conclusion contains a letter that appears in a disjunctive statement in the premises, consider obtaining that letter via disjunctive syllogism. Four Additional Rules of Inference: ◦ Constructive Dilemma (CD): (p q) • (r s) p v r q v s ◦ Simplification (Simp): p • q p ◦ Conjunction (Conj): p q p • q ◦ Addition (Add): p p v q Common Misapplications Common strategies involving the additional rules of inference: ◦ If the conclusion contains a letter that appears in a conjunctive statement in the premises, consider obtaining that letter via simplification.
    [Show full text]