Question: Algorithm Complexity 1 4 . 1 . ID numbers in a particular software application are n - digit strings of digits, which we'll be interpreting
Algorithm Complexity
ID numbers in a particular software application are ndigit strings of digits, which we'll be
interpreting as numbers by ignoring leading sfor example, and are both digit
strings of digits. Consider an algorithm that looks at that digit string of digits, views it as a number by
ignoring leading s and then calculates its factorial by multiplying
For example, on the input the algorithm will calculate doing
multiplications
a Calculate an exact expression for the worstcase number of multiplications involved, as a
function of remember is the number of digits and identify its big class.
b Calculate an exact expression for the bestcase number of multiplications involved, as a
function of and identify its big class.
c Assuming all ndigit strings of numbers are equally likely, calculate
the averagecase number of multiplications involved, as a function
of and identify its big class.
The table at right shows the number of known species in different
major groups of organisms. Suppose you were designing a classifier using
a series of yesno questions to identify a given species. The classifier is
going to identify the species, not identify what group it's ineg if I have a
raven the classifier is going to ask enough questions to identify that it's
Corvus corax, not that it's a bird. So there are possible outputs
for the algorithm.
a If you wanted your classifier to be optimal, what would be its
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
