Array
Array
a. Reading -
Answer: Approximately 1 step, because reading is a
straightforward process, a computer can read from an array in
just one step.
a. Reading
b. Searching for a value not contained within the array
c. Insertion of a new value at the beginning of the array
d. Insertion of a new value at the end of the array
e. Deletion at the beginning of the array
f. Deletion at the end of the array
ANSWER:
d. Insertion at the end of the array: If there's room at the end, adding
an item there is quick – like placing a new book at the end of a shelf.
Assuming there's space, it takes just one step.
f. Deletion at the end of the array: Taking the last item out of the set
is easy – like removing the last piece of candy from a bag. This
operation generally takes just one step.
Reading: