I read somewhere that if you want to get a value of n, you need to have log(base2)n.
How is that?
If I need n=8, log(base2)n is 3, so we have 3 positions:
_ _ _
000 = 0
001 = 1
010 = 2
011 = 3
100 = 4
101 = 5
110 = 6
111 = 7
As you can see, we cannot get to 8. You understand what I'm asking?
Or does that log(base2)n is actually BigO[log(base2)n]? So we don't have just 3 positions, but we have C*3 positions.
(note: C is a constant value)
I'm confused. Please help.
2007-02-05
01:44:33
·
1 answers
·
asked by
new hope
2
in
Science & Mathematics
➔ Mathematics