OCR MEI MwA A: Tracing an Algorithm: 05 Algorithmic Complexity & Big O Notation

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

Just thought it would be worth mentioning that the complexity only gives an approximation of the run time. For example, the 600 number list would take approximately 180 seconds. I've seen this come up in MEI mark schemes with "approximately" in bold, so it's probably worth remembering. As per usual, brilliant video :)

tsamlynx
Автор

Just a heads-up for OCR A takers, we do need to consider O(log n) for that specification, but it isn't much more complicated than the polynomial ones anyway.
If it has complexity O(log n) and the problem takes 10s for 100 inputs, then it would take 15s for inputs of 1000, because it would be 10×(log(1000)÷log(100)).

spaghettiking