Find Jobs
Hire Freelancers

Algorythms

£10-20 GBP

Completed
Posted over 8 years ago

£10-20 GBP

Paid on delivery
Data Structures and Algorithms course work. In pseudocode. 4 questions, as specified by lecturer about 20 minutes each. For professional programmer it should be easy job. Here is 1st question: "Let A be an array of n elements (tht is, the elements of A are A[0], . . . , A[n−1]). An element A[i] is extreme if the following conditions hold regarding A[i]. • A[i] is not the first nor the last element of A. That is, 0 < i < n − 1. • Either A[i − 1] < A[i] > A[i + 1] or A[i − 1] > A[i] < A[i + 1]. For example, the extreme points of an array [0, 5, 3, 6, 8, 7, 15, 9] are 5, 3, 8, 7, 15. Please solve the following problems. 1. 20 marks. Write pseudocode of an algorithm that prints the extreme points of the given array. If there are no extreme points, the algorithm prints “SORTED”. 2. 5 marks. Is it always true that if an array has twoor more extreme points, they alternate, like min-max-min-max-... or max-min-max-min-... If you believethis is true, provide a short justification of your position. Otherwise, provide an example of an array where the above pattern does not hold" Only reasonable offers.
Project ID: 8711950

About the project

2 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I fully understand your requirements, I'm pretty confident that I will meet your expectation. I will assist you until the work is done.
£15 GBP in 1 day
5.0 (2 reviews)
2.1
2.1
2 freelancers are bidding on average £17 GBP for this job
User Avatar
Предложение еще не подано
£18 GBP in 1 day
5.0 (2 reviews)
2.1
2.1

About the client

Flag of UNITED KINGDOM
watford, United Kingdom
5.0
1
Payment method verified
Member since Apr 19, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.