Consider the problem of finding the position of the maximumelement in array of integers. Write (in pseudocode)
Fantastic news! We've Found the answer you've been seeking!
Question:
Consider the problem of finding the position of the maximumelement in array of integers.
- Write (in pseudocode) a brute-force algorithm to find theposition of the maximum
element of an array of integers usingloops.
- Convert your algorithm in part a by using recursive algorithminstead of loops and without using any global variables.
- Calculate the time complexity of your algorithm in part a andb.
Related Book For
Introduction to Data Mining
ISBN: 978-0321321367
1st edition
Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar
Posted Date: