0% found this document useful (0 votes)
135 views10 pages

Introduction To The Design and Analysis of Algorithms (3rd Edition)

Download Introduction to the Design and Analysis of Algorithms (3rd Edition) PDF.

Uploaded by

mrbosske254
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
135 views10 pages

Introduction To The Design and Analysis of Algorithms (3rd Edition)

Download Introduction to the Design and Analysis of Algorithms (3rd Edition) PDF.

Uploaded by

mrbosske254
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

s Book is Available on YakiBooki.

kibooki.com/download/introduction-to-the-design-and-analysis-of-algorith
This Book is Available on YakiBooki.com

This page intentionally left blank

https://www.yakibooki.com/download/introduction-to-the-design-and-analysis-of-algorithms-3rd-edition/
https://www.yakibooki.com/download/introduction-to-the-design-and-analysis-of-algorithms-3rd-edition/
This Book is Available on YakiBooki.com
Vice President and Editorial Director, ECS Marcia Horton
Editor-in-Chief Michael Hirsch
Acquisitions Editor Matt Goldstein
Editorial Assistant Chelsea Bell
Vice President, Marketing Patrice Jones
Marketing Manager Yezan Alayan
Senior Marketing Coordinator Kathryn Ferranti
Marketing Assistant Emma Snider
Vice President, Production Vince O’Brien
Managing Editor Jeff Holcomb
Production Project Manager Kayla Smith-Tarbox
Senior Operations Supervisor Alan Fischer
Manufacturing Buyer Lisa McDowell
Art Director Anthony Gemmellaro
Text Designer Sandra Rigney
Cover Designer Anthony Gemmellaro
Cover Illustration Jennifer Kohnke
Media Editor Daniel Sandin
Full-Service Project Management Windfall Software
Composition Windfall Software, using ZzTEX
Printer/Binder Courier Westford
Cover Printer Courier Westford
Text Font Times Ten
Copyright © 2012, 2007, 2003 Pearson Education, Inc., publishing as Addison-Wesley. All rights
reserved. Printed in the United States of America. This publication is protected by Copyright,
and permission should be obtained from the publisher prior to any prohibited reproduction,
storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical,
photocopying, recording, or likewise. To obtain permission(s) to use material from this work,
please submit a written request to Pearson Education, Inc., Permissions Department, One Lake
Street, Upper Saddle River, New Jersey 07458, or you may fax your request to 201-236-3290.
This is the eBook of the printed book and may not include any media, Website access codes or
print supplements that may come packaged with the bound book.
Many of the designations by manufacturers and sellers to distinguish their products are claimed
as trademarks. Where those designations appear in this book, and the publisher was aware of a
trademark claim, the designations have been printed in initial caps or all caps.
Library of Congress Cataloging-in-Publication Data
Levitin, Anany.
Introduction to the design & analysis of algorithms / Anany Levitin. — 3rd ed.
p. cm.
Includes bibliographical references and index.
ISBN-13: 978-0-13-231681-1
ISBN-10: 0-13-231681-1
1. Computer algorithms. I. Title. II. Title: Introduction to the design and analysis of
algorithms.
QA76.9.A43L48 2012
005.1—dc23 2011027089
15 14 13 12 11—CRW—10 9 8 7 6 5 4 3 2 1

ISBN 10: 0-13-231681-1


ISBN 13: 978-0-13-231681-1

https://www.yakibooki.com/download/introduction-to-the-design-and-analysis-of-algorithms-3rd-edition/
Boston Columbus Indianapolis New York San Francisco Upper Saddle River
Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montreal Toronto
Delhi Mexico City Sao Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo

https://www.yakibooki.com/download/introduction-to-the-design-and-analysis-of-algorithms-3rd-edition/
This Book is Available on YakiBooki.com

This page intentionally left blank

https://www.yakibooki.com/download/introduction-to-the-design-and-analysis-of-algorithms-3rd-edition/
Brief Contents

New to the Third Edition xvii


Preface xix
1 Introduction 1
2 Fundamentals of the Analysis of Algorithm Efficiency 41
3 Brute Force and Exhaustive Search 97
4 Decrease-and-Conquer 131
5 Divide-and-Conquer 169
6 Transform-and-Conquer 201
7 Space and Time Trade-Offs 253
8 Dynamic Programming 283
9 Greedy Technique 315
10 Iterative Improvement 345
11 Limitations of Algorithm Power 387
12 Coping with the Limitations of Algorithm Power 423
Epilogue 471
APPENDIX A
Useful Formulas for the Analysis of Algorithms 475
APPENDIX B
Short Tutorial on Recurrence Relations 479
References 493
Hints to Exercises 503
Index 547

v
https://www.yakibooki.com/download/introduction-to-the-design-and-analysis-of-algorithms-3rd-edition/
This Book is Available on YakiBooki.com

This page intentionally left blank

https://www.yakibooki.com/download/introduction-to-the-design-and-analysis-of-algorithms-3rd-edition/
Contents

New to the Third Edition xvii

Preface xix

1 Introduction 1
1.1 What Is an Algorithm? 3
Exercises 1.1 7
1.2 Fundamentals of Algorithmic Problem Solving 9
Understanding the Problem 9
Ascertaining the Capabilities of the Computational Device 9
Choosing between Exact and Approximate Problem Solving 11
Algorithm Design Techniques 11
Designing an Algorithm and Data Structures 12
Methods of Specifying an Algorithm 12
Proving an Algorithm’s Correctness 13
Analyzing an Algorithm 14
Coding an Algorithm 15
Exercises 1.2 17
1.3 Important Problem Types 18
Sorting 19
Searching 20
String Processing 20
Graph Problems 21
Combinatorial Problems 21
Geometric Problems 22
Numerical Problems 22
Exercises 1.3 23

vii
https://www.yakibooki.com/download/introduction-to-the-design-and-analysis-of-algorithms-3rd-edition/
viii Contents

1.4 Fundamental Data Structures 25


Linear Data Structures 25
Graphs 28
Trees 31
Sets and Dictionaries 35
Exercises 1.4 37
Summary 38

2 Fundamentals of the Analysis of Algorithm


Efficiency 41
2.1 The Analysis Framework 42
Measuring an Input’s Size 43
Units for Measuring Running Time 44
Orders of Growth 45
Worst-Case, Best-Case, and Average-Case Efficiencies 47
Recapitulation of the Analysis Framework 50
Exercises 2.1 50
2.2 Asymptotic Notations and Basic Efficiency Classes 52
Informal Introduction 52
O-notation 53
-notation 54
-notation 55
Useful Property Involving the Asymptotic Notations 55
Using Limits for Comparing Orders of Growth 56
Basic Efficiency Classes 58
Exercises 2.2 58
2.3 Mathematical Analysis of Nonrecursive Algorithms 61
Exercises 2.3 67
2.4 Mathematical Analysis of Recursive Algorithms 70
Exercises 2.4 76
2.5 Example: Computing the nth Fibonacci Number 80
Exercises 2.5 83
2.6 Empirical Analysis of Algorithms 84
Exercises 2.6 89
2.7 Algorithm Visualization 91
Summary 94

https://www.yakibooki.com/download/introduction-to-the-design-and-analysis-of-algorithms-3rd-edition/

You might also like