没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Page iii
Mastering Algorithms with Perl
Jon Orwant, Jarkko Hietaniemi,
and John Macdonald
Page iv
Mastering Algorithms with Perl
by Jon Orwant, Jarkko Hietaniemi. and John Macdonald
Copyright © 1999 O'Reilly & Associates, Inc. All rights reserved.
Printed in the United States of America.
Cover illustration by Lorrie LeJeune, Copyright © 1999 O'Reilly & Associates, Inc.
Published by O'Reilly & Associates, Inc., 101 Morris Street, Sebastopol, CA 95472.
Editors: Andy Oram and Jon Orwant
Production Editor: Melanie Wang
Printing History:
August 1999: First Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered
trademarks of O'Reilly & Associates, Inc. Many of the designations used by manufacturers and
sellers to distinguish their products are claimed as trademarks. Where those designations
appear in this book, and O'Reilly & Associates, Inc. was aware of a trademark claim, the
designations have been printed in caps or initial caps. The association between the image of a
wolf and the topic of Perl algorithms is a trademark of O'Reilly & Associates, Inc.
While every precaution has been taken in the preparation of this book, the publisher assumes no
responsibility for errors or omissions, or for damages resulting from the use of the information
contained herein.
ISBN: 1-56592-398-7 [1/00]
[M]]break
Page v
Table of Contents
Preface xi
1. Introduction 1
What Is an Algorithm?
1
Efficiency
8
Recurrent Themes in Algorithms
20
2. Basic Data Structures 24
Perl's Built-in Data Structures
25
Build Your Own Data Structure
26
A Simple Example
27
Perl Arrays: Many Data Structures in One
37
3. Advanced Data Structures 46
Linked Lists
47
Circular Linked Lists
60
Garbage Collection in Perl
62
Doubly-Linked Lists
65
Doubly-Linked Lists
65
Infinite Lists
71
The Cost of Traversal
72
Binary Trees
73
Heaps
91
Binary Heaps
92
Janus Heap
99
Page vi
The Heaps Module
99
Future CPAN Modules
101
4. Sorting 102
An Introduction to Sorting
102
All Sorts of Sorts
119
Sorting Algorithms Summary
151
5. Searching 157
Hash Search and Other Non-Searches
158
Lookup Searches
159
Generative Searches
175
6. Sets 203
Venn Diagrams
204
Creating Sets
205
Set Union and Intersection
209
Set Differences
217
Set Differences
217
Counting Set Elements
222
Set Relations
223
The Set Modules of CPAN
227
Sets of Sets
233
Multivalued Sets
240
Sets Summary
242
7. Matrices 244
Creating Matrices
246
Manipulating Individual Elements
246
Finding the Dimensions of a Matrix
247
Displaying Matrices
247
Adding or Multiplying Constants
248
Transposing a Matrix
254
Multiplying Matrices
256
Extracting a Submatrix
259
Combining Matrices
260
Inverting a Matrix
261
Computing the Determinant
262
Gaussian Elimination
263
Eigenvalues and Eigenvectors
266
Page vii
The Matrix Chain Product
269
The Matrix Chain Product
269
Delving Deeper
272
8. Graphs 273
Vertices and Edges
276
Derived Graphs
281
Graph Attributes
286
Graph Representation in Computers
287
Graph Traversal
301
Paths and Bridges
310
Graph Biology: Trees, Forests, DAGS, Ancestors, and Descendants
312
Edge and Graph Classes
316
CPAN Graph Modules
351
9. Strings 353
Perl Builtins
354
String-Matching Algorithms
357
Phonetic Algorithms
388
Stemming and Inflection
389
Parsing
394
Compression
411
10. Geometric Algorithms 425
Distance
426
Area, Perimeter, and Volume
429
Direction
433
Intersection
435
剩余738页未读,继续阅读
资源评论
- yangds1232019-02-14这种资料比较少,多谢分享。
- jasonqwu2013-05-20很难得的一本书,值得好好学习。
studybug
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 什么是后端开发-关于后端开发的一些小介绍分享
- Jurassic Pack Vol. II Dinosaurs 侏罗纪包卷恐龙二号Unity游戏模型资源unitypackage
- Jurassic Pack Vol. III Dinosaurs 侏罗纪包卷恐龙三号Unity游戏模型资源unitypackag
- Ultimate Seating Controller 终极座椅控制器Unity游戏开发插件资源unitypackage
- 什么是人工智能-关于人工智能的相关介绍说明
- Figma Converter for Unity适用Unity的Figma转换器Unity游戏开发插件unitypackage
- Creepy Animatronic Anims 令人毛骨悚然的电子动画Unity游戏动画插件资源unitypackage
- Rankings & Leaderboards 排名和排行榜Unity游戏开发插件资源unitypackage
- Semantic Color Palette 语义调色板Unity游戏开发插件资源unitypackage
- Low Poly Nature:Lush and Diverse Environments低聚自然郁郁Unity低多边形模型资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功