- 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.
- ClickHouse性能之巔:從架構(gòu)設(shè)計(jì)解讀性能之謎
- JavaScript Unlocked
- 從程序員到架構(gòu)師:大數(shù)據(jù)量、緩存、高并發(fā)、微服務(wù)、多團(tuán)隊(duì)協(xié)同等核心場(chǎng)景實(shí)戰(zhàn)
- C語(yǔ)言程序設(shè)計(jì)實(shí)訓(xùn)教程
- Python 3網(wǎng)絡(luò)爬蟲(chóng)實(shí)戰(zhàn)
- Java面向?qū)ο蟪绦蜷_(kāi)發(fā)及實(shí)戰(zhàn)
- Java 11 Cookbook
- Spring Boot進(jìn)階:原理、實(shí)戰(zhàn)與面試題分析
- 劍指Java:核心原理與應(yīng)用實(shí)踐
- Android玩家必備
- Learning Docker Networking
- 深入實(shí)踐Kotlin元編程
- 零基礎(chǔ)學(xué)Python編程(少兒趣味版)
- Elasticsearch搜索引擎構(gòu)建入門(mén)與實(shí)戰(zhàn)
- Parallel Programming with Python