Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a heap?
Think of its structure and its properties.
How is 'delete max' performed?
What do you do with the last element?
What is the time complexity of extracting the maximum value in a heap?
Think about how many levels are in a binary tree.
True or False: The heap sort algorithm requires additional storage.
Recall how heap sort maintains its structure.
Propose an outline for implementing an in-place heap sort algorithm from scratch. Highlight key steps.
Focus on the transition steps between building the heap and extracting elements.
How would you modify a traditional heap to allow for dynamic priority changes without losing the heap properties? Describe your approach.
Reflect on Dijkstra’s algorithm and its need for efficient updates.
4 more questions in this section. Enroll free to practise them all.
Enroll free