- 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.
- 數(shù)據(jù)產(chǎn)品經(jīng)理高效學習手冊:產(chǎn)品設計、技術(shù)常識與機器學習
- 數(shù)據(jù)庫原理及應用教程(第4版)(微課版)
- 信息系統(tǒng)與數(shù)據(jù)科學
- Python廣告數(shù)據(jù)挖掘與分析實戰(zhàn)
- 分布式數(shù)據(jù)庫系統(tǒng):大數(shù)據(jù)時代新型數(shù)據(jù)庫技術(shù)(第3版)
- 數(shù)據(jù)驅(qū)動設計:A/B測試提升用戶體驗
- Spark大數(shù)據(jù)分析實戰(zhàn)
- MATLAB Graphics and Data Visualization Cookbook
- SQL應用及誤區(qū)分析
- 計算機應用基礎(chǔ)教程上機指導與習題集(微課版)
- SQL Server 2012數(shù)據(jù)庫管理教程
- 探索新型智庫發(fā)展之路:藍迪國際智庫報告·2015(上冊)
- Mastering LOB Development for Silverlight 5:A Case Study in Action
- Visual Studio 2013 and .NET 4.5 Expert Cookbook
- 數(shù)據(jù)指標體系:構(gòu)建方法與應用實踐