Data Structures

Arrays:

An array is the simplest data structure. It is a collection of elements, each with a key. You access the elements by typing in the key. arraydiagram

Stacks:

A stack is LIFO (Last-In-First-Out) data structure. The last element that is added must be the first one taken out.

stacksdiagram

Queues:

A queue is a FIFO (First-In-First-Out) data structure. The first element added to the queue will be the first one that can be removed.queuesdiagram

Binary Trees:

 A binary tree is a tree data structure. The starting “parents” are called “roots,” and each parent can have at most two children. The children that do not have children are referred to as “leaves.”treediagram

 

 

4 thoughts on “Data Structures”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s