|
-
June 2nd, 2008, 01:57 PM
#1
Concave down array ....
I am doing this problem that requires me to write an log n algorithm to find the maximum element in a 'STRICTLY CONCAVE DOWN ARRAY' .....
writing the algorithm is not a problem ... however am not able to find (this includes google as well ) what a strictly concave down array means ??
i am presuming that i simply write a mergesort and pop the last element of the array as the maximum ...
please advise ... thanks
-
June 2nd, 2008, 02:27 PM
#2
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
-
June 2nd, 2008, 03:46 PM
#3
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.
-
June 2nd, 2008, 04:29 PM
#4
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.
-
June 6th, 2008, 05:45 AM
#5
Re: Concave down array ....
What is concave up / down functions f(x) ?
Sorry for my stupidity.
-
June 11th, 2008, 06:49 PM
#6
Re: Concave down array ....
 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
-
June 24th, 2008, 12:03 AM
#7
Re: Concave down array ....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|