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
A. LOC(Array[5]=Base(Array)+w(5-lower bound), where w is the number of words per memory cell for the array
Divide and conquer strategy
Backtracking approach
Heuristic search
Greedy approach
push, pop
insert, delete
pop, push
delete, insert
Operations
Algorithms
Storage Structures
None of above
Arrays
Records
Pointers
None
Lists
Strings
Graph
Stacks
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
Array
Stack
Tree
queue
Application level
Abstract level
Implementation level
All of the 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
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.
elementary items
atoms
scalars
all of above
mn
max(m,n)
min(m,n)
m+n-1
array
lists
stacks
all of above
tables arrays
matrix arrays
both of above
none of above
Graph
Binary tree
Trees
Stack
List
Stacks
Trees
Strings
Abstract level
Implementation level
Application level
All of the above
Data
Operations
Both of the above
None of the above
O(n)
O(log n)
O(n2)
O(n log n)
Arrays
Linked lists
Both of above
None of above
Sorting
Merging
Inserting
Traversal
O(n)
O(log )
O(n2)
O(n log n)
underflow
overflow
housefull
saturated
Linked lists
Stacks
Queues
Deque
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
Arrays
Records
Pointers
None
Trees
Graphs
Arrays
None of above
Counting microseconds
Counting the number of key operations
Counting the number of statements
Counting the kilobytes of algorithm
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
O(n)
O(log n)
O(n2)
O(n log n)