Best case
Null case
Worst case
Average case
B. Null case
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.
Sorting
Merging
Inserting
Traversal
FAEKCDBHG
FAEKCDHGB
EAFKHDCBG
FEAKDCHBG
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 additions and 2 deletions
2 deletions and 3 additions
3 deletions and 4 additions
3 deletions and 3 additions
P contains the address of an element in DATA.
P points to the address of first element in DATA
P can store only memory addresses
P contain the DATA and the address of DATA
11
12
13
14
O(n)
O(log n)
O(n2)
O(n log n)
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
O(n)
O(log )
O(n2)
O(n log n)
Tree
Graph
Priority
Dequeue
Stacks linked list
Queue linked list
Both of them
Neither of them
3,4,5,2,1
3,4,5,1,2
5,4,3,1,2
1,5,2,3,4
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
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
Application level
Abstract level
Implementation level
All of the above
Arrays
Records
Pointers
None
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
Trees
Graphs
Arrays
None of above
Counting microseconds
Counting the number of key operations
Counting the number of statements
Counting the kilobytes of algorithm
underflow
overflow
housefull
saturated
Abstract level
Implementation level
Application level
All of the above
AVL tree
Red-black tree
Lemma tree
None of the above
Best case
Null case
Worst case
Average case
Operations
Algorithms
Storage Structures
None of above
tables arrays
matrix arrays
both of above
none of above
Arrays
Records
Pointers
Stacks
Last in first out
First in last out
Last in last out
First in first out
floor address
foundation address
first address
base address