Re: Concave down array ....
Personally I have never heard of such a thing. I know about concave up / down functions f(x) but not a concave down array for finding the max element in the array.
I think you should ask your Prof what it means, and why he made up such a silly term :rolleyes:
Re: Concave down array ....
Just a hunch but I think that the array has values such as they are describing a concave down function. I.e. if plotted in x-y with array index as x and array value as y.
Re: Concave down array ....
Actually, I think you are absolutely right. I am willing to be that is exactly what the person who coined the term meant. I can see a O(logn) algorithm for solving such a case.
Re: Concave down array ....
What is concave up / down functions f(x) ?
Sorry for my stupidity.
Re: Concave down array ....
Quote:
Originally Posted by Peter_APIIT
What is concave up / down functions f(x) ?
Sorry for my stupidity.
Google gives this answer at first line: http://www.mathwords.com/c/concave_down.htm
Re: Concave down array ....