Lists and Arrays: Introduction

Boomi Nathan
2 Min Read
Disclosure: This website may contain affiliate links, which means I may earn a commission if you click on the link and make a purchase. I only recommend products or services that I personally use and believe will add value to my readers. Your support is appreciated!

Lists and Array are the most basic types of data structures. They allow the programmer to organize data into more sophisticated patterns than the simple variables would allow. Almost all programming languages are built-in with at least a simple implementation of one or both of these, and the essays below deal with expanding on these basic forms.

A list is just a grouping of data. Think of a shopping list for groceries. It is simply a list of things to buy, but the list is ordered, which means that the list (Bread, Apples) is not the same list as (Apples, Bread).

An array is a kind of a list in which each object in an array is assigned a specific number, called its index number, and those numbers are used to locate and organize the objects. Thus, an array of some famous poets might look like this:

Index  Poet’s Name

0          W. H. Auden

1          T. S. Eliot

2          John Keats

3          e e cummings

4          Robert Frost

Note: The array here starts with 0 as the first index number. Theoretically, an array can start with any index number, but because of the structure of computer memory, it is customary, and preferable, to begin with 0 as the first index number.

Often, the elements of an array are sorted to speed up searches through an array. This topic has been studied very thouroughly over the years, and thus many algorithms to sort arrays have been created.

Although arrays are the most common lists, there are other types of lists as well. Two of the simplest and most useful are the stack and the queue, both of which are used heavily in operating systems and AI.

One very useful and versatile structure is the linked list. The linked list is, unlike the array, a dynamic structure, which means that it can resize itself when necessary.

Share This Article

J. BoomiNathan is a writer at SenseCentral who specializes in making tech easy to understand. He covers mobile apps, software, troubleshooting, and step-by-step tutorials designed for real people—not just experts. His articles blend clear explanations with practical tips so readers can solve problems faster and make smarter digital choices. He enjoys breaking down complicated tools into simple, usable steps.

Leave a review