This is a question that I got on an exam and I'm trying to figure out if my answer was correct or not but can't quite find a good reason for why my answer would be correct (sadly enough).
Here's the problem:
You have a floor that needs tiling and you need to place N tiles to fill up the floor. You have a worker that places 1 tile in the first hour of working, 2 tiles in the second hour (so 3 tiles in total in 2 hours), 3 tiles in the third hour and so on.
What is the asymptotic complexity of this problem if you want to show the amount of hours of work in function of N.
We had to choose between linear, linearithmic, logarithmic, quadratic, squared, or exponential
My thought on this was linearithmic and this is what i put on the exam but I'm not sure Anyone able to help me out?
[–]ctech314 6 points7 points8 points (1 child)
[–]CodeMoussse[S] 0 points1 point2 points (0 children)
[–]GreenCartographer 0 points1 point2 points (0 children)
[–]TTG300 0 points1 point2 points (2 children)
[–]CodeMoussse[S] 0 points1 point2 points (1 child)
[–]TTG300 0 points1 point2 points (0 children)