ebook img

Guide to Discrete Mathematics : an accessible introduction to the history, theory, logic and applications PDF

459 Pages·2021·7.841 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Guide to Discrete Mathematics : an accessible introduction to the history, theory, logic and applications

Texts in Computer Science Gerard O’Regan Guide to Discrete Mathematics An Accessible Introduction to the History, Theory, Logic and Applications Second Edition Texts in Computer Science Series Editors David Gries, Department of Computer Science, Cornell University, Ithaca, NY, USA OritHazzan ,FacultyofEducationinTechnologyandScience,Technion—Israel Institute of Technology, Haifa, Israel Titles in this series now included in the Thomson Reuters Book Citation Index! ‘Texts in Computer Science’ (TCS) delivers high-quality instructional content for undergraduates and graduates in all areas of computing and information science, with a strong emphasis on core foundational and theoretical material but inclusive of some prominent applications-related content. TCS books should be reasonably self-containedandaimtoprovidestudentswithmodernandclearaccountsoftopics ranging across the computing curriculum. As a result, the books are ideal for semestercoursesorforindividualself-studyincaseswherepeopleneedtoexpand their knowledge. All texts are authored by established experts in their fields, reviewed internally and by the series editors, and provide numerous examples, problems, and other pedagogical tools; many contain fully worked solutions. The TCS series is comprised of high-quality, self-contained books that have broad and comprehensive coverage and are generally in hardback format and sometimes contain color. For undergraduate textbooks that are likely to be more brief and modular in their approach, require only black and white, and are under 275pages,SpringerofferstheflexiblydesignedUndergraduateTopicsinComputer Science series, to which we refer potential authors. More information about this series at http://www.springer.com/series/3191 ’ Gerard O Regan Guide to Discrete Mathematics An Accessible Introduction to the History, Theory, Logic and Applications Second Edition 123 Gerard O’Regan University of Central Asia Naryn,Kyrgyzstan ISSN 1868-0941 ISSN 1868-095X (electronic) Textsin Computer Science ISBN978-3-030-81587-5 ISBN978-3-030-81588-2 (eBook) https://doi.org/10.1007/978-3-030-81588-2 1stedition:©SpringerInternationalPublishingSwitzerland2016 2ndedition:©TheEditor(s)(ifapplicable)andTheAuthor(s),underexclusivelicensetoSpringerNature SwitzerlandAG2021 Thisworkissubjecttocopyright.AllrightsaresolelyandexclusivelylicensedbythePublisher,whether thewholeorpartofthematerialisconcerned,specificallytherightsoftranslation,reprinting,reuseof illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmissionorinformationstorageandretrieval,electronicadaptation,computersoftware,orbysimilar ordissimilarmethodologynowknownorhereafterdeveloped. The use of general descriptive names, registered names, trademarks, service marks, etc. in this publicationdoesnotimply,evenintheabsenceofaspecificstatement,thatsuchnamesareexemptfrom therelevantprotectivelawsandregulationsandthereforefreeforgeneraluse. The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, expressed or implied, with respect to the material contained hereinorforanyerrorsoromissionsthatmayhavebeenmade.Thepublisherremainsneutralwithregard tojurisdictionalclaimsinpublishedmapsandinstitutionalaffiliations. ThisSpringerimprintispublishedbytheregisteredcompanySpringerNatureSwitzerlandAG Theregisteredcompanyaddressis:Gewerbestrasse11,6330Cham,Switzerland To My wonderful goddaughter Niamh O’Regan Preface Overview The objective of this book is to give the reader a flavour of discrete mathematics and its applications to the computing field. The goal is to provide a broad and accessible guide to the fundamentals of discrete mathematics, and to show how it maybeappliedtovariousareasincomputingsuchascryptography,codingtheory, formalmethods,languagetheory,computability,artificialintelligence,thetheoryof databasesandsoftwarereliability.Theemphasisisonboththeoryandapplications, rather than on the study of mathematics for its own sake. Therearemanyexistingbooksondiscretemathematics,andwhilemanyofthese provide more in-depth coverage on selected topics, this book is different in that it aims to provide a broad and accessible guide to the reader, and to show the rich applications of discrete mathematics in a wide number of areas in the computing field. Each chapter of this book could potentially be a book in its own right, and so there arelimitstothedepth ofcoverage.However,theauthorhopes that thisbook will motivate and stimulate the reader, and encourage further study of the more advanced texts. Organization and Features Chapter 1 discusses the contributions made by early civilizations to computing. ThisincludesworkdonebytheBabylonians,EgyptiansandGreeks.TheEgyptians applied mathematics to solving practical problems such as the construction of pyramids. The Greeks made major contributions to mathematics and geometry. Chapter 2 provides an introduction to fundamental building blocks in discrete mathematics including sets, relations and functions. A set is a collection of well-defined objects and it may be finite or infinite. A relation between two sets A and B indicates a relationship between members of the two sets, and is a subset oftheCartesianproductofthetwosets.Afunctionisaspecialtypeofrelationsuch that for each element in A, there is at most one element in the codomain B. Functions may be partial or total and injective, surjective or bijective. vii viii Preface Chapter 3 presents the fundamentals of number theory, and discusses prime numbertheoryandthegreatestcommondivisorandleastcommonmultipleoftwo numbers. We also discuss the representation of numbers on a computer. Chapter 4 discusses mathematical induction and recursion. Induction is a com- monprooftechniqueinmathematics,andtherearetwopartstoaproofbyinduction (the base case and the inductive step). We discuss strong and weak induction, and wediscusshowrecursionisusedtodefinesets,sequencesandfunctions.Thisleads us to structural induction, which is used to prove properties of recursively defined structures. Chapter 5 discusses sequences and series and permutations and combinations. Arithmetic and geometric sequences and series are discussed, and we discuss applications of geometric sequences and series to the calculation of compound interest and annuities. Chapter 6discusses algebraand we discusssimple andsimultaneous equations, including the method of elimination and the method of substitution to solve simultaneous equations. We show how quadratic equations may be solved by factorization,completingthesquareorusingthequadraticformula.Wepresentthe laws of logarithms and indices. We discuss various structures in abstract algebra, including monoids, groups, rings, integral domains, fields and vector spaces. Chapter7discussesautomatatheory,includingfinitestatemachines,pushdown automataandTuringmachines.Finite-statemachinesareabstractmachinesthatare inonlyonestateatatime,andtheinputsymbolcausesatransitionfromthecurrent state to the next state. Pushdown automata have greater computational power than finite-state machines, and they contain extra memory in the form of a stack from whichsymbolsmaybepushedorpopped.TheTuringmachineisthemostpowerful model for computation, and this theoretical machine is equivalent to an actual computer in the sense that it can compute exactly the same set offunctions. Chapter 8 discusses matrices including 2 (cid:1) 2 and general m (cid:1) n matrices. Various operations such as the addition and multiplication of matrices are con- sidered,andthedeterminantandinverseofamatrixisdiscussed.Theapplicationof matrices to solving a set of linear equations using Gaussian elimination is considered. Chapter 9 discusses graph theory where a graph G = (V, E) consists of vertices and edges. It isa practical branch of mathematics that deals with the arrangements of vertices and edges between them, and it has been applied to practical problems suchasthemodellingofcomputernetworks,determiningtheshortestdrivingroute between two cities and the travelling salesman problem. Chapter10discussescryptography,whichisanimportantapplicationofnumber theory. The code-breaking work done at Bletchley Park in England during the Second World War is discussed, and the fundamentals of cryptography, including private and public key cryptosystems, are discussed. Preface ix Chapter 11 presents coding theory and is concerned with error detection and error correction codes. The underlying mathematics of coding theory is abstract algebra, including group theory, ring theory, fields and vector spaces. Chapter12discusseslanguagetheoryandwediscussgrammars,parsetreesand derivations from a grammar. The important area of programming language semantics is discussed, including axiomatic, denotational and operational semantics. Chapter 13 discusses computability and decidability. The Church–Turing thesis statesthatanythingthatiscomputableiscomputablebyaTuringmachine.Church andTuringshowedthatmathematicsisnotdecidable,inthatthereisnomechanical procedure (i.e. algorithm) to determine whether an arbitrary mathematical propo- sition is true or false, and so the only way is to determine the truth or falsity of a statement is try to solve the problem. Chapter14presentsashorthistoryoflogic,andwediscussGreekcontributions tosyllogisticlogic,stoiclogic,fallaciesandparadoxes.Boole’ssymboliclogicand its application to digital computing is discussed, and we consider Frege’s work on predicate logic. Chapter 15 provides an introduction to propositional and predicate logic. Propositional logic may be used to encode simple arguments that are expressed in naturallanguage,andtodeterminetheirvalidity.Thenatureofmathematicalproof is discussed, and we present proof by truth tables, semantic tableaux and natural deduction. Predicate logic allows complex facts about the worldto be represented, and new facts may be determined via deductive reasoning. Predicate calculus includes predicates, variables and quantifiers, and a predicate is a characteristic or property that the subject of a statement can have. Chapter 16 presents some advanced topics in logic including fuzzy logic, tem- poral logic, intuitionistic logic, undefined values, theorem provers and the appli- cations of logic to AI. Fuzzy logic is an extension of classical logic that acts as a mathematical model for vagueness. Temporal logic is concerned with the expres- sion of properties that have time dependencies, such as properties about the past, present and future. Intuitionism was a controversial theory on the foundations of mathematics based on a rejection of the law of the excluded middle, and an insistence on constructive existence. We discuss three approaches to deal with undefined values, includingthe logic of partial functions; Dijkstra’s approach with his cand and cor operators; and Parnas’ approach which preserves a classical two-valued logic. Chapter 17 discusses the nature of proof and theorem proving, and we discuss automated and interactive theorem provers. We discuss the nature of formal mathematical proof, and consider early attempts at the automation of proof in the 1960s including the Logic Theorist (LT) and the Geometry Machine. x Preface Chapter 18 provides an introduction to the important field of software engi- neering.The birthof thediscipline wasattheGarmisch conference inGermany in the late 1960s. The extent to which mathematics should be employed in software engineeringisdiscussed,andthisremainsatopicofactivedebate.Wediscusssome oftheearlymathematicalcontributionstosoftwareengineeringincludingthework of Floyd and Hoare. Chapter 19 discusses software reliability and dependability, and covers topics suchassoftwarereliability,theCleanroommethodology,systemavailability,safety and security critical systems and dependability engineering. Software reliability is theprobabilitythattheprogramworkscorrectlywithoutfailureforaperiodoftime, and is generally expressed as the mean time to failure. Chapter 20 discusses formal methods, which consist of a set of techniques that provideanextralevelofconfidenceinthecorrectnessofthesoftware.Theymaybe employedtoformallystatetherequirementsoftheproposedsystem,andtoderivea program from its mathematical specification. They may be used to give a rigorous proof that the implemented program satisfies its specification. Chapter 21 presents the Z specification language, which is one of the most widely used formal methods. It was developed at Oxford University in the U.K. Chapter 22 discusses statistics which is an empirical science that is concerned with the collection, organization, analysis, interpretation and presentation of data. We discuss sampling; the average and spread of a sample; the abuse of statistics; frequencydistributions;varianceandstandarddeviation;correlationandregression; statistical inference; and hypothesis testing. Chapter 23 discusses probability which is a branch of mathematics that is concernedwithmeasuringuncertaintyandrandomevents.Wediscussdiscreteand continuous random variables; probability distributions such as the binomial and normaldistributions;varianceandstandarddeviation;confidenceintervals;testsof significance; the central limit theorem; Bayesianism; and queueing theory. Chapter 24discusses operationsresearchwhichisamulti-disciplinary fieldthat isconcerned with theapplication ofmathematical and analytic techniques toassist in decision-making. It employs techniques such as mathematical modelling, sta- tisticalanalysisandmathematicaloptimizationaspartofitsgoaltoachieveoptimal (or near-optimal) solutions to complex decision-making problems. Chapter 25 discusses basic financial mathematics, and we discuss simple and compound interest, annuities and mortgages. We discuss the basic mathematics usedincalculatingsimpleandcompoundinterest,aswellascalculatingthepresent orfuturevalueofapayment.Wediscussthemathematicsofannuities(asequence offixed equal payments made over a period of time), and this is the usual way in which a loan or mortgage is paid back.

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.