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
A. for relatively permanent collections of data
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
Processor and memory
Complexity and capacity
Time and space
Data and space
Last in first out
First in last out
Last in last out
First in first out
Operations
Algorithms
Storage Structures
None of above
O(n)
O(log n)
O(n2)
O(n log n)
Arrays
Records
Pointers
None
O(n)
O(log )
O(n2)
O(n log n)
Arrays
Linked lists
Both of above
None of above
Arrays
Records
Pointers
Stacks
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.
FIFO lists
LIFO list
Piles
Push-down lists
List
Stacks
Trees
Strings
FAEKCDBHG
FAEKCDHGB
EAFKHDCBG
FEAKDCHBG
underflow
overflow
housefull
saturated
Abstract level
Implementation level
Application level
All of the above
True, False
False, True
True, True
False, False
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.
Linked lists
Stacks
Queues
Deque
Counting microseconds
Counting the number of key operations
Counting the number of statements
Counting the kilobytes of algorithm
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
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
grounded header list
circular header list
linked list with header and trailer nodes
none of above
sorted linked list
sorted binary trees
sorted linear array
pointer array
Best case
Null case
Worst case
Average case
Trees
Graphs
Arrays
None of above
Traversal
Search
Sort
None of above
Tree
Graph
Priority
Dequeue
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
16
12
6
10
Graphs
Binary tree
Stacks
Queues