- Hands-On Data Structures and Algorithms with Rust
- Claus Matzinger
- 225字
- 2021-07-02 14:11:52
A better transaction log
So, the list of requirements got expanded:
- Move forward through the log
- Move backward through the log
- Moves don't consume the log
A nice fit for the doubly linked list, so the existing transaction log can be upgraded! With the pointers to both neighbors of a node, it can solve the problem. However, what about moving through the list without removing elements?
For that, another concept is required: iterators. Rust's iterators are leaning on the functional side of programming and provide a versatile interface for integrating with all kinds of other data structures and commands across the language. For example, for loops will pick up on the iterator and behave as expected.
The data model is going to look like the singly linked list, so most of the operations can be used as they are—they only need to be upgraded to work with the back-pointer as well.
- 我們都是數據控:用大數據改變商業、生活和思維方式
- 有趣的二進制:軟件安全與逆向分析
- 從0到1:數據分析師養成寶典
- Spark大數據分析實戰
- Sybase數據庫在UNIX、Windows上的實施和管理
- Remote Usability Testing
- 跟老男孩學Linux運維:MySQL入門與提高實踐
- 數據庫技術實用教程
- Construct 2 Game Development by Example
- INSTANT Android Fragmentation Management How-to
- Web Services Testing with soapUI
- Python數據分析從小白到專家
- 大數據數學基礎(Python語言描述)
- 數據庫原理與設計實驗教程(MySQL版)
- 推薦系統全鏈路設計:原理解讀與業務實踐