Consider, for example, the documentation for the .NET Framework 4.5 Dictionary<TKey, TValue> class:
In the notes for the .ContainsKey method .ContainsKey they indicate that
This method approaches operation O (1).
And in the notes for the .Count property .Count they state that
Getting the value of this property is an O (1) operation.
Please note that I do not necessarily request the details of C# , .NET , Dictionary or what the Big O designation is in general. I just found this distinction of “approaches” intriguing.
Is there any difference? If so, how significant can it be? Should I pay attention to this?
David S.
source share