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.
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!