answersLogoWhite

0


Best Answer

Time complexity and space complexity.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the two main measures for the efficiency of an algorithm?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

What is the importance of analysis in the design of an algorithm?

There are two main reasons we analyze an algorithm: correctness and efficiency. By far the most important reason to analyze an algorithm is to make sure it will correctly solve your problem. If our algorithm doesn't work, nothing else matters. So we must analyze it to prove that it will always work as expected. We must also look at the efficiency of our algorithm. If it solves our problem, but does so in O(nn) time (or space!), then we should probably look at a redesign.


A Write the algorithm to concatenate two given strings?

a write the algorithm to concatenate two given string


Why is AC is used in prefences to DC?

The two main reasons are (1) the ease and efficiency by which a.c. voltages can be changed, using transformers, and (2) the ease and efficiency by which a.c. can be changed into d.c., using rectifiers.


What algorithm will work for any two fractions?

Many of them.


What is Dijkstra's algorithm?

Dijkstra's algorithm is used by the OSPF and the IS-IS routing protocols. The last three letters in OSPF (SPF) mean "shortest path first", which is an alternative name for Dijkstra's algorithm.


What is algorithm to multiply two matrices?

a,b,c,d,


Write an algorithm for multiplication of two sparse matrices?

how to multiply two sparse matrices


Who is the inventor of Reverse Delete Algorithm for MST When was this first published?

The Reverse Delete Algorithm for finding the Minimum Spanning Tree was first introduced by Edsger Dijkstra in 1959. He presented this algorithm in his paper titled "A note on two problems in connexion with graphs" which was published in Numerische Mathematik.


What is are advatages and disadvatages of bresenham's line algorithm?

1. High accuracy. Comparing to Basic Incremental algorithm (especially if the slope were > 1.) 2. High speed. Comparing to Digital Differenmtial algorithm. 3. Draws the line between any two points. Comparing to Basic Incremental algorithm which can't draw if x0 > x1 ( the format is: (x0, y0), (x1, y1). )


What does chameleon in hierarchical clustering algorithm mean?

Chameleon is a hierarchical clustering algorithm that merges two clusters based both on inter-connectivity and proximity


Why time complexity is better than actual running time?

Finding a time complexity for an algorithm is better than measuring the actual running time for a few reasons: # Time complexity is unaffected by outside factors; running time is determined as much by other running processes as by algorithm efficiency. # Time complexity describes how an algorithm will scale; running time can only describe how one particular set of inputs will cause the algorithm to perform. Note that there are downsides to time complexity measurements: # Users/clients do not care about how efficient your algorithm is, only how fast it seems to run. # Time complexity is ambiguous; two different O(n2) sort algorithms can have vastly different run times for the same data. # Time complexity ignores any constant-time parts of an algorithm. A O(n) algorithm could, in theory, have a constant ten second section, which isn't normally shown in big-o notation.


What are the difference between a multimeter and a voltmeter?

A multimeter measures electrical properties such as AC or DC voltage, current, and resistance. Rather than have separate meters, a multimeter combines a voltmeter, an ammeter, and an ohmmeter. The two main kinds of a multimeter are analog and digital. A voltmeter measures the potential difference (voltage) between two points. the voltmeter only measures volts.