The term that wins
transcript
A handler makes three n squared steps. Plus five n steps. Plus twenty more. Which part matters?
At n of one, the n squared term is ten percent. The lower terms make twenty five of twenty eight. At ten, the squared term is eighty one percent. It is already taking over.
At a hundred, ninety eight percent. At a thousand, ninety nine percent. At a million, still ninety nine. The lower terms have faded.
Big-O keeps the winning term. It drops the constant three. It drops five n and twenty. What is left is n squared.
Drop only slower terms. Never drop a term that only looks small. N squared over a thousand wins at ten million. Check before you drop.
Big-O drops the constant factor. But constants still change real time. Three n against thirty n is ten times apart. Same class, different cost.
Keep the term that wins. Full breakdown in the lecture.