Traversal
Search
Sort
None of above
B. Search
Arrays
Records
Pointers
Stacks
underflow
overflow
housefull
saturated
Queue
Stack
List
None of the above
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
Data
Operations
Both of the above
None of the above
Tree
Graph
Priority
Dequeue
Arrays
Records
Pointers
None
FAEKCDBHG
FAEKCDHGB
EAFKHDCBG
FEAKDCHBG
array
lists
stacks
all of above
16
12
6
10
Abstract level
Implementation level
Application level
All of the above
Stacks
Dequeues
Queues
Binary search tree
Graph
Binary tree
Trees
Stack
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
by this way computer can keep track only the address of the first element and the addresses of other elements can be calculated
the architecture of computer memory does not allow arrays to store other than serially
both of above
none of above
Arrays are dense lists and static data structure
data elements in linked list need not be stored in adjacent space in memory
pointers store the next data element of a list
linked lists are collection of the nodes that contain information part and next pointer
Best case
Null case
Worst case
Average case
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.
Dynamic programming
Greedy method
Divide and conquer
Backtracking
Sorting
Merging
Inserting
Traversal
internal change
inter-module change
side effect
side-module update
Lists
Strings
Graph
Stacks
Stack
Queue
List
Link list
Application level
Abstract level
Implementation level
All of the above
O(n)
O(log n)
O(n2)
O(n log n)
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
11
12
13
14
Counting microseconds
Counting the number of key operations
Counting the number of statements
Counting the kilobytes of algorithm
3 additions and 2 deletions
2 deletions and 3 additions
3 deletions and 4 additions
3 deletions and 3 additions
Array
Stack
Tree
queue