10 أسئلة تغطي المجالات الرسمية، في نحو 10 دقائق. ترى الإجابة وشرحها بعد كل سؤال، وأضعف مجالاتك في النهاية.
السؤال 1/10 · الخوارزميات والحوسبة والتعقيد
An engineer is implementing a priority queue that must support the operations insert and extract-min on a collection of items with distinct priorities. Two implementations are considered: (1) a binary min-heap, and (2) a balanced binary search tree. Both support insert and extract-min in O(log n) time. Which statement correctly analyzes a key difference between these implementations that affects the choice for this workload?