There are two algorithms that perform a particular task. Algorithm 1 has a complexity function . Algorithm 2 has a complexity function . Which algorithm is more efficient when n = 5? Which is more efficient when n = 20?
What will be an ideal response?
When n = 5, . Algorithm 2 is more efficient when n = 5.
When n = 20, Algorithm 1 is more efficient when n = 20.
Computer Science & Information Technology
You might also like to view...
How are forms often saved so they can be used repeatedly for data entry?
A) Styles B) Master Documents C) Reports D) Templates
Computer Science & Information Technology
PC cards are small, thin expansion cards inserted in a special port on laptops to expand their capabilities.
a. true b. false
Computer Science & Information Technology