How would you describe a perfect algorithm? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How would you describe a perfect algorithm?

how would you describe a beyond good algorithm

30th Apr 2017, 3:50 PM
Mito Khoza
Mito Khoza - avatar
3 Answers
+ 1
Less time complexity and low memory use. you cannot say one is better then all. Every algorithm has some pros and cons. like binary search is fast and good then linear search but if the input data is sorted. But interpolation search is better then binary but data need to be sorted and equally distributed.
30th Apr 2017, 3:59 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 1
it doesn't use much memory, it's fast and reliable, covers all possibilities, it's efficient
30th Apr 2017, 5:54 PM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
0
it fullfills its task in the least amount of time. so it avoids unneccesary calculations
30th Apr 2017, 3:59 PM
Jprom
Jprom - avatar