Which is faster?

Diez B. Roggisch deets at nospam.web.de
Sat Aug 30 07:53:34 EDT 2008


cnb schrieb:
> how does doing something twice not change complexity? yes it maybe
> belongs to the same complexity-class but is still twice as slow no?

Because big O notation is not about constant factors. Or even subterms 
with lower powers.

http://en.wikipedia.org/wiki/Big_O_notation

Diez



More information about the Python-list mailing list