Abstract Data Types: Variable
Abstract Data Types: Variable
Variable
name ;
=5
ADT: List
Definition: Operations
sequence of zero or insert
more elements of a first, next, previous
given type
null
Recursive definition: find
a null or a pair of an retrieve
element and a list
delete
Subtypes:
Implementation:
single-linked list
arrays
doubly-linked list
records linked with pointers
cursors
ADT: Stack
Definition: Operations
A kind of list in which push
all insertions and pop
deletions occur at
null
one end (the top)
a LIFO queue Implementation
Last In First Out array
records linked with pointers
1
ADT: Queue
Definition: Operations:
A kind of list in which enqueue
elements are dequeue
inserted at one and
(the rear) and Implementation:
deleted at the other records linked with pointers
(the front) circular array
a FIFO queue
First In First Out