Computational Cost of dsearchn
Ältere Kommentare anzeigen
What is the computational cost of the dsearchn function?
Antworten (1)
Sean de Wolski
am 25 Jan. 2012
0 Stimmen
Are you looking for number of flops?
I don't think you're going to have much luck finding this. dsearchn relies on mex and qhull to do most of the work.
You could use tic/toc to time it, if that would also be sufficient.
4 Kommentare
Arielle
am 25 Jan. 2012
Arielle
am 25 Jan. 2012
Sean de Wolski
am 25 Jan. 2012
That's really an existential question and it really depends on your application. If dsearchn takes a few minutes for one person that might be extremely expensive where a few minutes for another person would be light speed.
Mex and qhull are used because they're fast!
Why do you need to know this computational complexity? Is there something else that's time-dependant and relies on it being complete?
I'm sorry I don't know much else about dsearchn. You could also use the profiler to identify other bottle necks in your code to see if it is the biggest slowdown.
Arielle
am 26 Jan. 2012
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!