Suppose i have an algorithm whose time is represented by th function T(n)=n^3+2n^2
So what does n mean?
inspire_all -4
Newbie Poster
Recommended Answers
Jump to Post
n
is typically represented as a collection of items being processed by the algorithm because that's easy to visualize. For example, if you have an array of 10 items, replacen
with 10 for a specific calculation.
Jump to PostI'm not sure I understand the question. Can you rephrase it?
All 5 Replies
deceptikon 1,790
Code Sniper Team Colleague Featured Poster
inspire_all -4
Newbie Poster
deceptikon 1,790
Code Sniper Team Colleague Featured Poster
inspire_all -4
Newbie Poster
amina.bm 0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.