Dear All,

Kindly tell me about in algorithm that
"Time complexity is used to compare the efficiency of two algorithms, so why not we only use actual running times of two algorithms to compare them".

You know what time complexity means or can look it up, right? Why don't you use some reasoning to figure out why time complexity is useful?

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.