mrxacx/data-structures
Composer 安装命令:
composer create-project mrxacx/data-structures
包简介
data abstract structures
README 文档
README
Essential data structures for computer science, now in PHP.
🚀 Summary
🧾 Lists
LinearList 🔗
Values are stored in an array of unique items. Fetch, add, and remove operations have O(n) time complexity.
SortedList 🔗
Values are stored in a sorted array of unique items. While add and remove operations have O(n) time complexity, the search operation has O(n log n) time complexity.
LinkedList 🔗
Each value is stored once using object references. Fetch, add, and remove operations have O(n) time complexity.
🏗️ Stacks
Stack 🔗
Last-in-first-out (LIFO) data structure. Items are stored in an array.
LinkedStack 🔗
Last-in-first-out (LIFO) data structure. Items are stored using object references.
🚶️️ Queues
Queue 🔗
First-in-first-out (FIFO) data structure. Items are stored in an array.
LinkedQueue 🔗
First-in-first-out (FIFO) data structure. Items are stored using object references.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-17