A) Heap B) Stack C) Queue D) Hash table
A) O(1) B) O(n log n) C) O(n) D) O(log n)
A) O(1) B) O(n log n) C) O(n) D) O(log n)
A) Array B) Queue C) Fibonacci heaps D) Linked list
A) O(1) B) O(n) C) O(n log n) D) O(log n)
A) It uses more memory per node due to pointers B) It stores extra references to other nodes C) It requires more complex metadata D) It stores duplicate data
A) Graph traversals B) Sorting algorithms C) Compression algorithms D) Searching algorithms
A) Data type size B) Associated priority C) Memory address D) Insertion time
A) Randomly B) Highest priority first C) Last in first out D) First in first out
A) Most recently added B) Oldest elements C) Highest elements D) Lowest elements
A) Yes, they are identical B) Yes, they are the same in all contexts C) No, they are distinct D) No, heaps are never used for priority queues
A) Monotonically increasing B) Undefined C) Monotonically decreasing D) Constant
A) Random B) Monotonically increasing C) Monotonically decreasing D) Static
A) Served in order of enqueuing B) They are discarded C) The order is strictly descending D) The second is always ignored |