Data Structures & Algorithms
Download Q&A
Disjoint Set Union (Union Find)
Disjoint Set Union (Union Find) - Applications
Disjoint Set Union (Union Find) - Case Studies
Disjoint Set Union (Union Find) - Problem Set
Hashing and Hash Tables
Hashing and Hash Tables - Applications
Hashing and Hash Tables - Case Studies
Hashing and Hash Tables - Problem Set
Priority Queues and Heaps
Priority Queues and Heaps - Applications
Priority Queues and Heaps - Case Studies
Priority Queues and Heaps - Problem Set
Q. What is the space complexity of a binary heap?
Q. What is the time complexity of building a binary heap from an array of n elements?
Q. What is the time complexity of building a heap from an array of n elements?
Q. What is the time complexity of deleting the maximum element from a max-heap?
Q. What is the time complexity of extracting the minimum element from a min-heap?
Q. What is the time complexity of inserting an element into a binary heap used as a priority queue?
Q. What is the time complexity of inserting an element into a binary heap?
Q. What is the time complexity of inserting an element into a hash table in the average case?
Q. What is the time complexity of removing the highest priority element from a binary heap?
Q. What is the time complexity of removing the highest priority element from a priority queue implemented with a binary heap?
Q. What is the time complexity of searching for an element in a hash table in the average case?
Q. What is the time complexity of searching for an element in a hash table on average?
Q. What is the time complexity of searching for an element in a well-designed hash table?
Q. What is the time complexity of the 'find' operation in a Disjoint Set Union with path compression?
Q. What is the time complexity of the 'find' operation in a well-optimized Disjoint Set Union with path compression?
Q. What is the time complexity of the 'Find' operation with path compression and union by rank?
Q. What is the time complexity of the 'Find' operation with path compression in Disjoint Set Union?
Q. What is the time complexity of the 'Union' operation in an optimized Disjoint Set Union with path compression?
Q. What is the time complexity of the 'Union' operation in an optimized Disjoint Set Union with path compression and union by rank?
Q. What is the worst-case time complexity for a sequence of m union and find operations in Disjoint Set Union with path compression and union by rank?
Q. What is the worst-case time complexity for building a heap from an array of n elements?
Q. What is the worst-case time complexity for deleting the minimum element from a binary min-heap?
Q. What is the worst-case time complexity for deleting the minimum element from a binary heap?
Q. What is the worst-case time complexity for deleting the minimum element from a min-heap?
Q. What is the worst-case time complexity for searching in a hash table with chaining?
Q. What is the worst-case time complexity of the 'Union' operation in Disjoint Set Union with union by rank?
Q. What is the worst-case time complexity of the union operation in a basic Disjoint Set Union without optimizations?
Q. What technique is commonly used in Disjoint Set Union to optimize the 'Find' operation?
Q. What technique is commonly used to optimize the 'Find' operation in Disjoint Set Union?
Q. What technique is often used alongside Disjoint Set Union to optimize the union operation?