Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Java Software Structures
Quiz 11: Binary Search Trees
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Question 1
Multiple Choice
A minheap is a complete binary tree in which each node is less than or equal to both the left child and the right child.
Question 2
Multiple Choice
A minheap stores its smallest element at the ________ of the binary tree.
Question 3
Multiple Choice
Both children of the root of a minheap are _________.
Question 4
Multiple Choice
The __________ method adds a given Comparable element to the appropriate location in the heap, maintaining both the completeness property and the ordering property of the heap.
Question 5
Multiple Choice
Since a heap is a complete tree, there is only one correct location for the insertion of a new node, and that is either the next open position from the left at level h or the first position on the left at level h+1 if level h is full.