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.
B. Optimal binary search tree construction can be performed efficiently using dynamic programming.
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
FIFO lists
LIFO list
Piles
Push-down lists
underflow
overflow
housefull
saturated
Array
Stack
Tree
queue
sorted linked list
sorted binary trees
sorted linear array
pointer array
Arrays
Records
Pointers
None
tables arrays
matrix arrays
both of above
none of above
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
O(n)
O(log )
O(n2)
O(n log n)
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
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
List
Stacks
Trees
Strings
push, pop
insert, delete
pop, push
delete, insert
Processor and memory
Complexity and capacity
Time and space
Data and space
Operations
Algorithms
Storage Structures
None of above
Arrays
Linked lists
Both of above
None of above
O(n)
O(log n)
O(n2)
O(n log n)
internal change
inter-module change
side effect
side-module update
11
12
13
14
Binary search
Insertion sort
Radix sort
Polynomial manipulation
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
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
Graphs
Binary tree
Stacks
Queues
O(n)
O(log n)
O(n2)
O(n log n)
mn
max(m,n)
min(m,n)
m+n-1
Stacks
Dequeues
Queues
Binary search tree
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.
array
lists
stacks
all of above
Stack
Input restricted dequeue
Priority queues
Output restricted qequeue