internal change
inter-module change
side effect
side-module update
C. side effect
Binary search
Insertion sort
Radix sort
Polynomial manipulation
Counting the maximum memory needed by the algorithm
Counting the minimum memory needed by the algorithm
Counting the average memory needed by the algorithm
Counting the maximum disk space needed by the algorithm
16
12
6
10
11
12
13
14
The list must be sorted
there should be the direct access to the middle element in any sublist
There must be mechanism to delete and/or insert elements in list
none of above
Stacks linked list
Queue linked list
Both of them
Neither of them
push, pop
insert, delete
pop, push
delete, insert
O(n)
O(log n)
O(n2)
O(n log n)
Dynamic programming
Greedy method
Divide and conquer
Backtracking
mn
max(m,n)
min(m,n)
m+n-1
Graph
Binary tree
Trees
Stack
Sorting
Merging
Inserting
Traversal
3,4,5,2,1
3,4,5,1,2
5,4,3,1,2
1,5,2,3,4
Array
Stack
Tree
queue
O(n)
O(log n)
O(n2)
O(n log n)
Last in first out
First in last out
Last in last out
First in first out
O(n)
O(log n)
O(n2)
O(n log n)
Data
Operations
Both of the above
None of the above
the name of array
the data type of array
the index set of the array
the first data from the set to be stored
Stack
Input restricted dequeue
Priority queues
Output restricted qequeue
array
lists
stacks
all of above
Divide and conquer strategy
Backtracking approach
Heuristic search
Greedy approach
tables arrays
matrix arrays
both of above
none of above
Arrays
Records
Pointers
Stacks
FIFO lists
LIFO list
Piles
Push-down lists
The item is somewhere in the middle of the array
The item is not in the array at all
The item is the last element in the array
The item is the last element in the array or is not there at all
underflow
overflow
housefull
saturated
must use a sorted array
requirement of sorted array is expensive when a lot of insertion and deletions are needed
there must be a mechanism to access middle element directly
binary search algorithm is not efficient when the data elements are more than 1000.
3 additions and 2 deletions
2 deletions and 3 additions
3 deletions and 4 additions
3 deletions and 3 additions
for relatively permanent collections of data
for the size of the structure and the data in the structure are constantly changing
for both of above situation
for none of above situation