Lists
Strings
Graph
Stacks
C. Graph
the name of array
the data type of array
the index set of the array
the first data from the set to be stored
3,4,5,2,1
3,4,5,1,2
5,4,3,1,2
1,5,2,3,4
Arrays
Records
Pointers
Stacks
3 additions and 2 deletions
2 deletions and 3 additions
3 deletions and 4 additions
3 deletions and 3 additions
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
underflow
overflow
housefull
saturated
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.
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
Operations
Algorithms
Storage Structures
None of above
linear arrays
linked lists
both of above
none of above
mn
max(m,n)
min(m,n)
m+n-1
internal change
inter-module change
side effect
side-module update
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
Counting microseconds
Counting the number of key operations
Counting the number of statements
Counting the kilobytes of algorithm
Data
Operations
Both of the above
None of the above
Graph
Binary tree
Trees
Stack
Linked lists
Stacks
Queues
Deque
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
Lists
Strings
Graph
Stacks
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
Abstract level
Implementation level
Application level
All of the above
Arrays
Records
Pointers
None
Array
Stack
Tree
queue
Traversal
Search
Sort
None of above
elementary items
atoms
scalars
all of above
FAEKCDBHG
FAEKCDHGB
EAFKHDCBG
FEAKDCHBG
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
Graphs
Binary tree
Stacks
Queues
floor address
foundation address
first address
base address