Hi Mathematica,
You can plot the graphs of Y=
, Y=
and Y=X with your data (n vs time ) and compare which pattern it is following.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/354977/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/354980/image.png)
For more accurate results, time complexity will have to be calculated using theoretical methods.
Hope this helps.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!