To tell if one element in zoograph has relation x to


1.Show the order in which the nodes in the tree, which I included in the attachment are processed by

a. an inorder traversal of the tree.

b. a postorder traversal of the tree.

c. a preorder traversal of the tree.

2.A priority queue of strings is implemented using a heap. The heap contains the following elements:numElements [10]
.elements
[0]"introspective"
[1 ]"intelligent"
[2]"intellectual"
[3]"intimate"
[4]"intensive"
[5]"interesting"
[6]"internal"
[7]"into"
[8]"in"
[9]"intro"

a. What feature of these strings is used to determine their priority in the priority queue?

b. Show how this priority queue is affected by adding the string "interviewing."

3.This is the specification of the directed graph

ZooGraph = (V, E)
V(ZooGraph) = {dog, cat, animal, vertebrate, oyster, shellfish, invertebrate, crab,
poodle, monkey, banana, dalmatian, dachshund}
E(ZooGraph) = {(vertebrate, animal), (invertebrate, animal), (dog, vertebrate),
(cat, vertebrate), (monkey, vertebrate), (shellfish, invertebrate),
(crab, shellfish), (oyster, shellfish), (poodle, dog), (dalmatian,
dog), (dachshund, dog)}

To tell if one element in ZooGraph has relation X to another element, you look for a path between them. Show whether the following statements are true, using the picture or adjacency matrix.

a. dalmatian X dog

b. dalmatian X vertebrate

c. dalmatian X poodle

d. banana X invertebrate

e. oyster X invertebrate

f. monkey X invertebrate

2427_tree.png

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: To tell if one element in zoograph has relation x to
Reference No:- TGS01245754

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)