Open matthewsot opened 5 years ago
I agree with the confusion caused by the representation. There are two things that I have seen in the academic world regarding Big-O's. The =
is replaced by \in
or is sometimes written as the following:
N^2 + 2N + 9
is O(N^2)
We could clarify this using programming analogy (C++?)
int a = 9; // a is now set to 9
9 = a; // This won't compile
One of the major things that I'd like to see (not in depth) is that Big-O does not mean how fast the algorithm runs! The other thing you could say is that the constant is always hidden in Big-O's.
Regarding the O(n^3) - O(n^3) = 0
and the other intricate details, I don't think we should worry about them too much. They aren't covered a lot in 20.
Otherwise, everything looks great :)
In Section 5.3, it would be nice to clarify the somewhat confusing use of "=" when people talk about "Big-O," in that:
Which always kind of freaks me out haha. I think the following should be mentioned:
5n = O(n)
, but notO(n) = 5n
a = b
is not the same asb = a
i can also include some "gotcha" mistakes, such as
O(n^3) - O(n^3) = 0
or\sum_{k=1}^n kn = \sum_{k=1}^n O(n) = O(n^2)
. But in Bai we really didn't focus on this so not sure if it's worth the space.