- Java 9 Data Structures and Algorithms
- Debasish Ray Chawdhuri
- 182字
- 2021-07-02 23:26:44
Summary
We covered a few basic data structures and the algorithms for manipulating them. In addition to this, we also found out their running time complexities. To summarize this, an array provides you with the fastest random access there is with this time complexity: O(1). But arrays cannot change size; the only modification they allow is to change the value of an element. A linked list allows fast append at the end and insertion at the beginning at O(1) time. However, O(1) removal is only available for removing the first element. This is resolved by a doubly linked list that also allows O(1) removal from the end. A circular linked list holds a reference to the first element in the next reference of the last element. This makes the list a circular structure that allows one to loop indefinitely.
In the upcoming chapters, we will discuss the abstraction of data structures called abstract data types. We will use the data structures we have seen in this chapter to implement the abstract data types, which in turn will be used in later chapters.
- Functional Python Programming
- Python程序設計教程(第2版)
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- Android開發精要
- JavaScript+jQuery網頁特效設計任務驅動教程(第2版)
- Learning Data Mining with Python
- Android Development with Kotlin
- 精通軟件性能測試與LoadRunner實戰(第2版)
- Data Analysis with Stata
- iOS應用逆向工程(第2版)
- R Data Analysis Cookbook(Second Edition)
- C# 8.0核心技術指南(原書第8版)
- 硬件產品設計與開發:從原型到交付
- Penetration Testing with the Bash shell
- Learning Grunt