0

Types of algorithms.

Among divide & conquer,greedy approach, dynamic programming and backtracking; which algorithm is the most efficient and how?

21st Aug 2018, 9:37 AM
harshit
harshit - avatar
6 Respostas
+ 3
Please specify details because there are infinite possible algorithms
21st Aug 2018, 9:50 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
different algorithms are used for different problems. is there a specific problem you have in mind?
21st Aug 2018, 9:48 AM
hinanawi
hinanawi - avatar
+ 1
Which algorithm among the above is most efficient for computation?
21st Aug 2018, 10:13 AM
harshit
harshit - avatar
+ 1
any code like of factorial etc.
21st Aug 2018, 10:32 AM
harshit
harshit - avatar
0
harshit computation of what?
21st Aug 2018, 10:16 AM
hinanawi
hinanawi - avatar
0
harshit well when it comes to factorial there's an O(1) approach that's purely mathematical, a linear approach and a recursive approach and maybe even some other ones. you have to exactly know which problem you're trying to solve to know what kind of algorithm to apply.
21st Aug 2018, 10:34 AM
hinanawi
hinanawi - avatar