Do we consider time taken to take input in time complexity of an algorithm? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Do we consider time taken to take input in time complexity of an algorithm?

I have this issue because in algorithm class we compute complexity for main reasoning part but not time taken to take input even for array etc

9th Mar 2019, 5:29 AM
ANKIT GAURAV
ANKIT GAURAV - avatar
2 Respuestas
+ 6
How long the user takes to provide input to an algorithm is not relevant to how efficient an algorithm performs.
9th Mar 2019, 5:41 AM
Hatsy Rei
Hatsy Rei - avatar
0
Thanks
9th Mar 2019, 5:44 AM
ANKIT GAURAV
ANKIT GAURAV - avatar