answers with explaination . thank you 1. Suppose f(x) is a monotonically increas
ID: 3757330 • Letter: A
Question
answers with explaination . thank you
Explanation / Answer
Answer 1: definition of Hn
Given any sequence {an}
we have the following.
Therefore, by the definition option A is correct. m-1n-1f(x) <=k=m nf(k) <= m+1n+1f(x)
Answer 2:
Option A) Fractional knapsack
Explaination : Knapsack problems can be solved by heuristics in which a given set of items (each with quality and value) are grouped to have a maximum value while being below a certain quality limit. The heuristic algorithm for this problem is called the greedy approximation algorithm, which sorts the items based on the value per unit mass and adds the item with the highest v / m as long as there is still room left.
Answer 3:
Option A : It is a form of exhaustive search. This statement is not true about dynamic programming. Greedy approach is form of exhaustive search.
Answer 4:
Option A) (n)
EXplaination: In the average case analysis, we take all possible inputs and calculate the calculation time for all inputs. Add all calculated values and divide the total by the total number of inputs. We must predict the distribution of the case.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.