NobleBlocks

Research indexBook chapter

Sequences

Mailund

Apress eBooks1 Jan 2021

NobleIDark:/48914/w1/20260521/3E500B99DOI10.1007/978-1-4842-7077-6_13

Paywalled

The full text is at the publisher

You can read the abstract here, or open it at the publisher.

Read at the publisher

Abstract

The first abstract data structure we will implement is sequences. We already know this data type because we have it built into Python as lists, but we will make our own implementations now. You are unlikely to need your own implementations of sequences, although there are alternative implementations where there are different trade-offs to the operations. Python’s implementation is efficient and easy to use, and there is no need to implement something you already have readily available. There is, however, good reason to learn how to construct your own types for simple structures like these, so you are equipped to construct more complex data structures when you need to in the future.

Discussion

Topics

More

Suggest a correction or report