Data structure and algorithm in Python - Array-Based Sequences

Data structure and algorithm in Python

Array-Based Sequences

Xiaoping Zhang

School of Mathematics and Statistics, Wuhan University

Table of contents

1. Python's Sequence Types 2. Low-Level's Arrays 3. Dynamic Arrays 4. Efficiency of Python's Sequence Types 5. Using Array-Based Sequences

1

Python's Sequence Types

Python's Sequence Types

In this chapter, we explore Python's various "sequence" classes, namely the built-in list, tuple, and str classes.

2

Python's Sequence Types

In this chapter, we explore Python's various "sequence" classes, namely the built-in list, tuple, and str classes.

Commonality

? supports indexing to access an individual element of a sequence, using a syntax such as seq[k];

? uses a low-level concept known as an array to represent the sequence.

2

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download