没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Copyright © 2017 Károly L˝orentey
All Rights Reserved
For more books and articles visit us at http://objc.io
Email: mail@objc.io
Twitter: @objcio
Preface
Who Is This Book For? 7
New Editions of This Book 8
Related Work 8
Contacting the Author 9
How to Read This Book 9
Acknowledgments 10
1 Introduction
Copy-On-Write Value Semantics 13
The SortedSet Protocol 14
Semantic Requirements 16
Printing Sorted Sets 17
2 Sorted Arrays
Binary Search 20
Lookup Methods 21
Insertion 23
Implementing Collection 23
Examples 24
Performance 25
3 The Swiftication of NSOrderedSet
Looking Up Elements 33
Implementing Collection 37
Guaranteeing Value Semantics 37
Insertion 40
Let’s See If This Thing Works 41
Performance 43
4 Red-Black Trees
Algebraic Data Types 50
Pattern Matching and Recursion 51
Tree Diagrams 53
Insertion 56
Balancing 59
Collection 63
Performance 70
5 The Copy-On-Write Optimization
Basic Definitions 75
Rewriting Simple Lookup Methods 77
Tree Diagrams 79
Implementing Copy-On-Write 79
Insertion 82
Implementing Collection 85
Examples 93
Performance Benchmarks 95
6 B-Trees
B-Tree Properties 102
Basic Definitions 105
The Default Initializer 106
Iteration with forEach 109
Lookup Methods 110
Implementing Copy-On-Write 111
Utility Predicates 113
Insertion 113
Implementing Collection 117
Examples 127
Performance Summary 128
剩余151页未读,继续阅读
资源评论
- lileiqx2018-01-26不错的资源,英文版的,152页true pdf
wangyunico88
- 粉丝: 5
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功