Find Jobs
Hire Freelancers

Algorithm excercise

$30-200 USD

Cancelled
Posted almost 14 years ago

$30-200 USD

Paid on delivery
I need help with two algorithm tasks that involve choosing and justify choice of a sorting algorithm and providing pseudocode for another sorting algorithm. ## Deliverables First task: You have been asked to select an appropriate sorting algorithm for your workplace. The objects you need to sort are items from an inventory. Each item carries an identification number (Integer) and a name (String). Your boss expects that it should be possible to sort on both identification number and name. There are about 1,000,000 entries in the database of items to be sorted. In some cases, there are items with the same name but different identification numbers. If a user first sorts by identification number and then by name, the individual ordering of items of the same name should be in ascending order based on their identification number. That means that, given three items called “Car?? with the identification numbers 314, 812 and 345, after sorting on identification number and then on name, the list should contain: Car 314 Car 345 Car 812 Please select an appropriate sorting method for this given task, and provide a justification for why you selected this particular sorting method. Second task: You have been asked to write a custom algorithm for a customer with very peculiar demands when it comes to sorting and organising information. The customer has an array of about 100,000 elements where each element of the array contain two numbers, a and b. These can be referenced as A[i][a] and A[i][b] respectively where i is the element number in the array. The customer wants you to write an algorithm which sorts the array first by the value of a, and secondly by the number of b multiplied by a. That means that given the following array of values: [1,3], [2, 4], [2, 2], [5, 1], [4, 9] (given as [a, b], with a total of five elements in the array) The sorted list should be: [1, 3], [2, 2], [2, 4], [4, 9], [5, 1] Please provide pseudocode for an appropriate algorithm. You are allowed to base your code on existing sorting methods, but you need to make use of A[i][a] and A[i][b] respectively. You are allowed to change the logic of the sorting, if you can prove that your algorithm will produce the same sorting as what the customer wanted, even if the logic is different.
Project ID: 3447958

About the project

24 proposals
Remote project
Active 14 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
24 freelancers are bidding on average $115 USD for this job
User Avatar
See private message.
$68 USD in 5 days
5.0 (96 reviews)
5.9
5.9
User Avatar
See private message.
$110.50 USD in 5 days
4.9 (84 reviews)
5.3
5.3
User Avatar
See private message.
$85 USD in 5 days
5.0 (82 reviews)
5.1
5.1
User Avatar
See private message.
$127.50 USD in 5 days
5.0 (10 reviews)
4.7
4.7
User Avatar
See private message.
$85 USD in 5 days
5.0 (41 reviews)
4.5
4.5
User Avatar
See private message.
$170 USD in 5 days
4.9 (39 reviews)
4.5
4.5
User Avatar
See private message.
$170 USD in 5 days
5.0 (19 reviews)
4.0
4.0
User Avatar
See private message.
$127.50 USD in 5 days
5.0 (5 reviews)
3.6
3.6
User Avatar
See private message.
$126.65 USD in 5 days
5.0 (11 reviews)
3.4
3.4
User Avatar
See private message.
$127.50 USD in 5 days
3.5 (18 reviews)
4.4
4.4
User Avatar
See private message.
$144.50 USD in 5 days
5.0 (11 reviews)
2.7
2.7
User Avatar
See private message.
$127.50 USD in 5 days
3.4 (13 reviews)
4.0
4.0
User Avatar
See private message.
$85 USD in 5 days
4.9 (9 reviews)
2.5
2.5
User Avatar
See private message.
$85 USD in 5 days
4.9 (8 reviews)
2.3
2.3
User Avatar
See private message.
$51 USD in 5 days
5.0 (1 review)
0.7
0.7
User Avatar
See private message.
$89.25 USD in 5 days
0.5 (1 review)
3.3
3.3
User Avatar
See private message.
$170 USD in 5 days
0.0 (2 reviews)
1.9
1.9
User Avatar
See private message.
$127.50 USD in 5 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$170 USD in 5 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$25.50 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SWEDEN
Sweden
5.0
1
Member since May 23, 2010

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.