Binary search
Insertion sort
Radix sort
Polynomial manipulation
A. Binary search
Arrays
Records
Pointers
None
16
12
6
10
Tree
Graph
Priority
Dequeue
push, pop
insert, delete
pop, push
delete, insert
Best case
Null case
Worst case
Average case
An array is suitable for homogeneous data but the data items in a record may have different data type
In a record, there may not be a natural ordering in opposed to linear array.
A record form a hierarchical structure but a linear array does not
All of above
O(n)
O(log )
O(n2)
O(n log n)
Stack
Input restricted dequeue
Priority queues
Output restricted qequeue
Data
Operations
Both of the above
None of the above
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
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
Counting microseconds
Counting the number of key operations
Counting the number of statements
Counting the kilobytes of algorithm
Linked lists
Stacks
Queues
Deque
linear arrays
linked lists
both of above
none of above
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
Divide and conquer strategy
Backtracking approach
Heuristic search
Greedy approach
Arrays
Records
Pointers
Stacks
Much more complicated to analyze than that of worst case
Much more simpler to analyze than that of worst case
Sometimes more complicated and some other times simpler than that of worst case
None or 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
11
12
13
14
Stacks linked list
Queue linked list
Both of them
Neither of them
Dynamic programming
Greedy method
Divide and conquer
Backtracking
When Item is somewhere in the middle of the array
When Item is not in the array at all
When Item is the last element in the array
When Item is the last element in the array or is not there at all
Abstract level
Implementation level
Application level
All of the above
array
lists
stacks
all of above
O(n)
O(log n)
O(n2)
O(n log n)
LOC(Array[5]=Base(Array)+w(5-lower bound), where w is the number of words per memory cell for the array
LOC(Array[5])=Base(Array[5])+(5-lower bound), where w is the number of words per memory cell for the array
LOC(Array[5])=Base(Array[4])+(5-Upper bound), where w is the number of words per memory cell for the array
None of above
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
Arrays
Linked lists
Both of above
None of above