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
Big Java Binder Early Objects
Quiz 17: Tree Structures
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 101
Multiple Choice
If a min-heap has 1024 nodes, what is its height?
Question 102
Multiple Choice
Given the MinHeap class discussed in section 17.6, select the statement(s) needed to complete the following method, which displays the n smallest values in the parameter array. public static void nSmallestValues(Comparable[] array, int n) { MinHeap h = new MinHeap() ; For(Comparable value : array) { h.add(value) ; } System.out.print(n + " smallest value(s) : ") ; For(int i = 0; i < n; ++i) { ___________________________ } }
Question 103
Multiple Choice
What is the complexity of adding an element to a heap?
Question 104
Multiple Choice
Which action(s) will invalidate a min-heap so that, it may no longer have the properties of a min-heap? I change the value of the root node II remove the lowest level, right-most node III remove the lowest level, left-most node