4.) Design an Optimal Binary Search Tree for 7 nodes with their probability is given respectively as (2,8,7,6,4,3,9). Also find the leaf nodes, root, internal nodes, external nodes, height of OBST, Depth
of the last leaf, Level of the second last leaf node.
Each employee record is consist of the following:
The employee number is composed of the year and month of hiring and control number in the format (YYYYMMNNN)
Where YYYY is the year, MM is the month and NNN is the control number.
Write a program that will answer the questions below.
Note: consider that the current date is 04/21/2022 in the computation.
Input a sentence. Find and print the shortest word. Also print number of consonants of the shortest word,
assuming only alphabets and digits are present in the word, after converting into lowercase
In a certain true or false exam, there are 10 questions
set for the candidate. If a candidate guesses the answer
at each time
a) What is the probability that the candidate will get 8 or
more correct answers?
b) What is the probability that the candidate will answer
6 questions correctly?
c) What is the mean number of correct answers you
would expect the candidate to obtain? Find the
variance
How would we know if we are to reject the null hypothesis and accept the alternative hypothesis
the possible defiling effect that assault may have on the community emphasize what
When aqueous solutions of Na2SO4 and Pb(NO3)2 are mixed, PbSO4 precipitates. Calculate the limiting reagent and mass of PbSO4 when a 1.25 L solution of 0.0500 M Pb(NO3)2 and a 2.00 L solution of 0.0250 M Na2SO4 are mixed. (Hint: start first by balancing the equation of the reaction between Na2SO4 and Pb(NO3)2
If the price elasticity of demand for tractors priced between $4,000 and $6,000 is -0.75 (using the mid-point method), what will be the percentage change in quantity demanded when the price for tractors falls from $6,000 to $4,000?
Assume a linear demand function of the form:
Qd = 120 - 5P and a linear supply curve of the form:
Qs = -30 + 10P
Using these demand and supply functions, answer the following questions.
Given the following table of fish farming costs:
Calculate the following:
(i) Fixed cost (2)
(ii) Average cost of production (2)
(iii) Variable cost per unit (2)
(iv) Marginal cost (2)