(a) Consider an initially empty max-heap, where the following
keys are to be inserted one at...
(a) Consider an initially empty max-heap, where the following
keys are to be inserted one at a time: 11, 19, 23, 12, 13, 17, 13,
14, 18, and 33. Draw the tree that results after building this
max-heap.
(b) Show the result of inserting 10, 12, 1, 14, 6, 5, 8, 15, 3,
9, 7, 4, 11, 13, and 2, one at a time and in the giver order , into
an initially empty binary min heap.
(c) Show the...
Given the following keys:
Keys: 500, 300, 450, 650, 700, 400, 660, 550, 680, 430, 590...
Given the following keys:
Keys: 500, 300, 450, 650, 700, 400, 660, 550, 680, 430, 590
A) Create a binary search tree.
B) Represent the binary search tree in part A in an array.
C) Show your tree in Part A after deleting the root.
D) Define a binary tree (without duplication, with more than 3
nodes) such that the
result of the Inorder and Postorder traversal are the same).
Giving an array of integers A[1:8] ={5, 1, 3, 2, 7, 6, 8,
4}.
Build a...
Giving an array of integers A[1:8] ={5, 1, 3, 2, 7, 6, 8,
4}.
Build a MAX-HEAP on A. Show the steps using binary tree
representation or array view.
Use heap sort: show the array after the first, the second, and
the third of heap sort
1. Given the data set: 40, 40, 35, 48, 38, 40, 36, 50, 32, 36,
40,...
1. Given the data set: 40, 40, 35, 48, 38, 40, 36, 50, 32, 36,
40, 35, 30, 24, 40, 36, 40, 39, 33, 40, 32, 38, construct an
appropriate frequency distribution table and draw a frequency
histogram, frequency polygon, and ogive. number of classes =5
2. Use the following table to find the following
probabilities:
Nursing Majors Non-Nursing Majors
Total Males 94 1104 1198
Females 725 1682 2407
Total 819 2786 3605
a. The student is male or a...
Consider the following set of frequent 3-itemsest:
{1, 2, 3}, {1, 2, 4}, {1, 2, 5},...
Consider the following set of frequent 3-itemsest:
{1, 2, 3}, {1, 2, 4}, {1, 2, 5}, {1, 3, 4}, {1, 3, 5}, {2, 3, 4},
{2, 3, 5}, {3, 4, 5}.
Assume that there are only five items in the data set.
a. List all candidate 4-itemsets obtained by a candidate generation
procedure using the
Fk-1 x F1 merging strategy.
b. List all candidate 4-itemsets obtained by the candidate
generation procedure in
Apriori.
c. List all candidate 4-itemsets that survive...