Question: If a problem can be solved using two different algorithms i . e . Algo - 1 with O ( n ! ) complexity and

If a problem can be solved using two different algorithms i.e. Algo-1 with O(n!) complexity and Algo-2 with O(2^n).
Which algorithm should we select?
a) Anyone can be selected as both have almost same Big O representation
b) Algo-1
c) Algo-2
d) Depends on the system (i.e. memory, processing power etc.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!