



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




































cannot. c. humans know what to sort, whereas computers need to be told. d. computers can compare only two things at a time, whereas humans can compare small groups. - ANSd
equal to the parent. b. the key values of every nonleaf node are the sum or concatenation of the keys of its children c. every left child has a key less than its parent and every right child has a key greater than or equal to its parent. d. in the path from the root to every leaf node, the key of each node is greater than or equal to the key of its parent. - ANSc
would start with an interval of ________. - ANS
b. Insert an algorithm for creating gaps of decreasing width. c. Enclose the normal insertion sort in a loop. d. Change the direction of the indices in the inner loop. - ANSd
b. the difference in the number of nodes in the left and right subtrees of the root node c. the absolute difference between the heights of the left and right subtrees, at every node of the tree d. the height of the left subtree minus the height of the right subtree of the root node - ANSc
created by repeatedly dividing the array size in half? - ANS4. The complexity could degenerate to O(N2).
b. is partially complete. c. is partially ordered. d. satisfies the heap condition. - ANSa
b. Exactly one new data item is added to the tree. c. One data item moves from the split node to its parent. d. One data item moves from the split node to its new sibling. - ANSb
from the LinkedList? - ANS7. x.setNext(None)
copying.
changed by the called function? - ANS8. When the variable, x, is passed as a reference instead of a copy of its value