Sunteți pe pagina 1din 557
Discrete Mathematics with Graph Theery Second Edition €dgar G. Goodaire e Michael M. Parmenter Notation Here, and on the fast wo end papers, is a list of the symbols and other notation used in this book grouped, as | best as possible, by subject. Page numbers give the location of first appearance. ‘Common Sets 37 Nor 38 Qorg@ 38 Ror 38 Zor 39 Cor al Rt Meaning used to express the negation of any symbol over which it is written; for example, ¢ means “does not belong to” used to denote the end of a proof the absolute value of 2 pronounced “aleph naught,” this is the cardinality of the natural numbers approximately sum product implies if and only if negation for all there exists and or denotes logical equivalence contradiction tautology the natural numbers the rational numbers the real numbers the imegers the complex nubers the positive real numbers Discrete Mathematics with Graph Theery Discrete Mathematics with Graph Theery Second Edition Edgar G. Goodaire Memorial University of Newfoundland Michael M. Parmenter Memorial University of Newfoundland eer RMI peewnice HALL Upper Saddle River, NI 07488 Library of Congress Cataloging-in-Publication Data Goovsire, Edgar G. Discrete mathematics with graph theory / Edgar G, Goodie, Michael M, Parmenter= 24 Peer, Includes bibliographical references and index. ISBN 0-13-092000-2 |. Mathematics. 2. Computer science—Mathematies. 3. Graph theory. I Parmenter, ‘Michel M. I Tile QA39.3.G66 2002 St—de2t 2001037448 Acquisitions Editor: George Lobel Production E2ditor/Assistant Managing Editor: Bayani Mendoza de Leon Vice-Presiden/Director of Production and Manufacturing: David W. Riccardi Executive Managing Editor: Kathleen Schiaparelti Senior Managing Eiitor: Linda Mihatov Behrens ‘Manufacturing Buyer: Alan Fischer Manufacturing Manager: Trudy Pisciotti Marketing Manager: Angela Battle Assistant Editor of Media: Vince Jansen Managing Editor, Audio/Video Assets: Grace Hazeldine Creative Director: Carole Anson Paul Belfanti: Director of Creative Services Interior/Cover Designer: John Christiana Ant Director: Maureen Eide Exitorial Assistant: Melanie Van Benthuysen Cover Image: Wassily Kandinsky, “Entwurf zu Kreise im Kreis” 1923, Philadelphia Museum of Art/ Corbis/Artists Right Society, NY © 2002, 1998 by Prentice-Hall, Inc Upper Saddle River, NJ 07458 All rights reserved. No part of this book may be reproduced, in any form or by any means, without permission in writing from the publisher Printed in the United States of America Ww 98765 4321 ISBN O-13-092000-2 Pearson Education Ltd., London Pearson Education Australia Ply. Limited, Sydney Pearson Education Singapore, Pte. Ltd Pearson Education North Asia Ltd., Hong Kong Pearson Education Canada, Ltd., Toronto Pearson EducaciUn de Mexico, S.A. de CV. Pearson Education ~ Japan, Tokyo Pearson Education Malaysia, Pte. Ltd To Linda £66. To Brenda M. M. P. Only those who live with an author can appreciate the work that goes imo writing. We are sincerely grateful for the loving encouragement and patience of our wives over a period of years while we have worked on two editions of this book. Contents Preface xi Suggested Lecture Schedule xvii 4 Yes, There are Proofs! 1 1.1. Compound Statements 2 1.2. Proofs in Mathematics 9 1.3 Truth Tables 17 1.4 The Algebra of Propositions 21 1.5 Logical Arguments 28 Review Exercises 34 2 Sets and Relations 37 24 Sets 37 2.2. Operations on Sets 43, 2.3. Binary Relations 51 2.4 Equivalence Relations 56 25. Partial Orders 63 Review Exercises 68 3 Functions 71 3.1. Domain, Range, One-to-One, Onto 71 3.2. Inverses and Composition 79 3.3 One-to-One Correspondence and the Cardinality of a Set 87 Review Exercises 95 Q The Integers 97 4.1. The Division Algorithm 97 4.2 Divisibility and the Euclidean Algorithm 104 4.3 Prime Numbers 114 4.4 Congruence 126 4.5 Applications of Congruence 136 Review Exercises 147 vii vill Contents 5 Induction and Recursion 149 5.1, Mathematical Induction 149 5.2 Recursively Defined Sequences 163 5.3. Solving Recurrence Relations; The Characteristic Polynomial 173 5.4 Solving Recurrence Relations; Generating Functions 178 Review Exercises 185 6 Principles of Counting 187 6.1 The Principle of Inclusion-Exclusion 187 62 The Addition and Multiplication Rules 196 6.3. The Pigeon-Hole Principle 204 Review Exercises 209 7 Permutations and Combinations 211 7.4 Permutations 211 7.2. Combinations 216 7.3 Repetitions 223 7.4 Derangements 228 75 The Binomial Theorem 231 Review Exercises 237 8 Algorithms 239 8.1 What Is an Algorithm? 239 8.2 Complexity 246 83. Searching and Sorting 259 8.4 Enumeration of Permutations and Combinations 271 Review Exercises 275 9 Graphs 277 9.1. A Gentle Introduction 277 9.2. Definitions and Basic Properties 286 9.3. somorphism 294 Review Exercises 299 1 0 Paths and Circuits 303 10.1 Bulerian Circuits 303 10.2 Hamiltonian Cycles 310 10.3 The Adjacency Matrix 318 10.4 Shortest Path Algorithms 325 Review Exercises 333 11 12 13 14 15 Contents Ix Applications of Paths and Circuits 337 11.1 The Chinese Postman Problem 337 11.2 Digraphs 342 11.3 RNA Chains 350 11.4 Tournaments 355 11.5 Scheduling Problems 360 Review Exercises 365 Trees 367 12.1 What Is a Tree? 367 12.2 Properties of Trees 372 12.3 Spanning Trees 377 12.4 Minimum Spanning Tree Algorithms 382 125 Acyclic Digraphs and Bellman’s Algorithm 392 Review Exercises 397 Depth-First Search and Applications 399 13.1 Depth-First Search 399 13.2 The One-Way Street Problem 405 Review Exercises 411 Planar Graphs and Colorings 413 14.1 Planar Graphs 413 14.2 Coloring Graphs 421 14.3 Circuit Testing and Facilities Design 430 Review Exercises 438 The Max Flow—Min Cut Theorem 441 18.1 Flows and Cuts 41 15.2 Constructing Maximal Flows 448 15.3 Applications. 454 15.4 Matchings 459 Review Exercises 464 Solutions to Selected Exercises S-1 Glossary G- Index 1-1 zé Preface To the Student from the Authors Few people ever read a preface, and those who do often just glance at the first few lines. So we begin by answering the question most frequently asked by the readers of our manuscript: “What does [BB] mean?” Like most undergraduate texts in mathematics these days, answers to some of our exercises appear at the back of the book. Those which do are marked [BB] for “Back of Book.” In this book, complete solutions, not simply answers, are given to almost all the exercises marked [BB]. So, in a sense, there is free Student Solutions Manual at the end of this text We are active mathematicians who have always enjoyed solving problems. It is our hope that our enthusiasm for mathematics and, in particular, for discrete mathematics is transmitted to our readers through our writing ‘The word “discrete” means separate or distinct. Mathematicians view it as the opposite of “continuous.” Whereas, in calculus, it is continuous functions of a real variable that are important, such functions are of relatively little interest in discrete mathematics. Instead of the real numbers, it is the natural numbers 1, 2, 3,... that play a fundamental role, and it is functions with domain the natural numbers that ate often studied. Perhaps the best way to summarize the subject matter of this book is to say that discrete mathematics is the study of problems associated with the natural numbers ‘You should never read a mathematics book or notes taken in a mathematics course the way you read a novel, in an easy chair by the fire. You should read at a desk, with paper and pencil at hand, verifying statements which are less than clear and inserting question marks in margins so that you are ready to ask questions at the next available opportunity. Definitions and terminology are terribly important in mathematics, much more so than many students think. In our experience, the number one reason why students have difficulty with “proofs” in mathematics is their failure to understand what the question is asking. This book contains a glossary of definitions (often including examples) at the end as well as a summary of notation inside the front and back covers. We urge you to consult these areas of the book regularly As an aid to interaction between author and student, we occasionally ask you to “pause a moment” and think about a specific point we have just raised. Our Pauses are little questions intended to be solved on the spot, right where they occur, like this Where will you find [BB] in this book and what does it mean? The answers to Pauses are given at the end of every section just before the exercises. So when ‘a Pause appears, it is easy to cheat by turning over the page and looking at the answer, but that, of course, is not the Way to learn mathematics! We believe that writing skills are terribly important, so, in this edition, we have highlighted some exercises where we expect answers to be written in complete sentences and good English. xi

S-ar putea să vă placă și