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
D. All of above
List
Stacks
Trees
Strings
tables arrays
matrix arrays
both of above
none of above
FIFO lists
LIFO list
Piles
Push-down lists
underflow
overflow
housefull
saturated
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
linear arrays
linked lists
both of above
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
Breath first search cannot be used to find converted components of a graph.
Optimal binary search tree construction can be performed efficiently using dynamic programming.
Given the prefix and post fix walks over a binary tree.The binary tree cannot be uniquely constructe
Depth first search can be used to find connected components of a graph.
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
Stacks
Dequeues
Queues
Binary search tree
O(n)
O(log )
O(n2)
O(n log n)
Lists
Strings
Graph
Stacks
Arrays
Records
Pointers
None
array
lists
stacks
all of above
push, pop
insert, delete
pop, push
delete, insert
Arrays
Linked lists
Both of above
None of above
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
3,4,5,2,1
3,4,5,1,2
5,4,3,1,2
1,5,2,3,4
Processor and memory
Complexity and capacity
Time and space
Data and space
grounded header list
circular header list
linked list with header and trailer nodes
none of above
O(n)
O(log n)
O(n2)
O(n log n)
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
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
sorted linked list
sorted binary trees
sorted linear array
pointer array
Stacks linked list
Queue linked list
Both of them
Neither of them
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
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.
Abstract level
Implementation level
Application level
All of the above
elementary items
atoms
scalars
all of 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