I was going through some data structures and I noticed this as a time complexity:
O(log(log(n))))-competitive.
I read that constant-competitive was the ratio of the expected time/optimal time. But what does it mean to have a set-competitive?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Online algorithm is one which does not know its inputs in advance, and must “react” (in a sense) to unpredictable inputs. In contrast, offline algorithms are those which know all its inputs in advance.
Competitive analysis compares the performance of an optimal online algorithm to an optimal offline algorithm. Thus, k-competitive means that there is an offline algorithm which performs at most k-times worse than an online algorithm. So, O(lglgn) competitive means that the optimal offline algorithm performs at most lglgn (times a constant) times worse than the optimal online algorithm.
The term “k-competitive” can be thought of in the same manner as the term “k-approximation”. A k-approximation means that the approximation algorithm performs at most k times worse than the optimal algorithm.