Introduction To Data Structures
Introduction To Data Structures
Data Structures
A data structure is a scheme
for organizing data in the
memory of a computer.
Computer programmers
decide which data structures
to use based on the nature
of the data and the Binary Tree
processes that need to be
performed on that data.
Example: A Queue
A queue is an example of commonly used simple data
structure. A queue has beginning and end, called the
front and back of the queue.
Data enters the queue at one end and leaves at the other.
Because of this, data exits the queue in the same order in
which it enters the queue, like people in a checkout line at
a supermarket.
Example: A Binary Tree
A binary tree is another
commonly used data
structure. It is organized like
an upside down tree.
.
Choosing Data Structures
The jobs will be printed in the
order in which they are received.
.
Choosing Data Structures
A binary tree is a good data
structure to use for searching
sorted data.
An array is a set of
variables that each
store an item.
Arrays and Lists
You can see the difference between arrays and
lists when you delete items.
Arrays and Lists
In a list, the missing spot is filled in when
something is deleted.
Arrays and Lists
In an array, an empty variable is left behind
when something is deleted.
Lists
A list is created in Alice by checking the make a
list box when creating a new variable.