Please written by computer source This question asks you to perform competitive analysis of transpose (TR) and frequency count (FC). (i) Suppose that you are maintaining a list of n elements under access operation only. The cost of access to the i-th element in the list is i. Let S be a request sequence of m access operations over this list. For any sufficiently large m, construct a request sequence S such that for this request sequence, the total cost of TR divided by the total cost of MTF is ω(1). (ii) Use the result of (i) to argue that TR is not competitive. Hint: You just have to use the definition of competitiveness. Therefore, You can solve this subquestion without having to solve (i) first. (iii) Further prove that FC is not competitive, either.
Please written by computer source
This question asks you to perform competitive analysis of transpose (TR) and frequency count (FC).
(i) Suppose that you are maintaining a list of n elements under access operation only. The cost of access to the i-th element in the list is i. Let S be a
request sequence of m access operations over this list. For any sufficiently large m, construct a request sequence S such that for this request sequence, the total cost of TR divided by the total cost of MTF is ω(1).
(ii) Use the result of (i) to argue that TR is not competitive.
Hint: You just have to use the definition of competitiveness. Therefore, You can
solve this subquestion without having to solve (i) first.
(iii) Further prove that FC is not competitive, either.
Step by step
Solved in 2 steps