Algoritme & struktura të dhënash

Time complexity

Në shqip: Kompleksiteti kohor

ShpjegimiSQ

Kompleksiteti kohor tregon si rritet koha e një algoritmi kur rriten të dhënat. Nuk mat sekonda, por numrin e hapave — p.sh. O(n) do të thotë dyfish të dhëna, dyfish punë.

EnglishEN

Time complexity describes how an algorithm's running time grows as the input grows. It doesn't measure seconds but the number of steps — e.g. O(n) means double the data, double the work.

Si ta mendosh

Si të llogaritësh sa më shumë do të zgjasë pastrimi kur shtëpia ka dyfish më shumë dhoma.

Lexoje në anglisht

Like working out how much longer cleaning takes when the house has twice as many rooms.

Terma të lidhur