Find Jobs
Hire Freelancers

Algorithm excercise

$30-200 USD

Anulat
Data postării: aproape 14 ani în urmă

$30-200 USD

Plata la predare
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.
ID-ul proiectului: 3447958

Despre proiect

24 propuneri
Proiect la distanță
Activ: 14 ani în urmă

Vrei să câștigi bani?

Avantajele de a licita pe platforma Freelancer

Stabilește bugetul și intervalul temporal
Îți primești plata pentru serviciile prestate
Evidențiază-ți propunerea
Te înregistrezi și licitezi gratuit pentru proiecte
24 freelanceri plasează o ofertă medie de $115 USD pentru proiect
Avatarul utilizatorului
See private message.
$68 USD în 5 zile
5,0 (96 recenzii)
5,9
5,9
Avatarul utilizatorului
See private message.
$110,50 USD în 5 zile
4,9 (84 recenzii)
5,3
5,3
Avatarul utilizatorului
See private message.
$85 USD în 5 zile
5,0 (82 recenzii)
5,1
5,1
Avatarul utilizatorului
See private message.
$127,50 USD în 5 zile
5,0 (10 recenzii)
4,7
4,7
Avatarul utilizatorului
See private message.
$85 USD în 5 zile
5,0 (41 recenzii)
4,5
4,5
Avatarul utilizatorului
See private message.
$170 USD în 5 zile
4,9 (39 recenzii)
4,5
4,5
Avatarul utilizatorului
See private message.
$170 USD în 5 zile
5,0 (19 recenzii)
4,0
4,0
Avatarul utilizatorului
See private message.
$127,50 USD în 5 zile
5,0 (5 recenzii)
3,6
3,6
Avatarul utilizatorului
See private message.
$126,65 USD în 5 zile
5,0 (11 recenzii)
3,4
3,4
Avatarul utilizatorului
See private message.
$127,50 USD în 5 zile
3,5 (18 recenzii)
4,4
4,4
Avatarul utilizatorului
See private message.
$144,50 USD în 5 zile
5,0 (11 recenzii)
2,7
2,7
Avatarul utilizatorului
See private message.
$127,50 USD în 5 zile
3,4 (13 recenzii)
4,0
4,0
Avatarul utilizatorului
See private message.
$85 USD în 5 zile
4,9 (9 recenzii)
2,5
2,5
Avatarul utilizatorului
See private message.
$85 USD în 5 zile
4,9 (8 recenzii)
2,3
2,3
Avatarul utilizatorului
See private message.
$51 USD în 5 zile
5,0 (1 recenzie)
0,7
0,7
Avatarul utilizatorului
See private message.
$89,25 USD în 5 zile
0,5 (1 recenzie)
3,3
3,3
Avatarul utilizatorului
See private message.
$170 USD în 5 zile
0,0 (2 recenzii)
1,9
1,9
Avatarul utilizatorului
See private message.
$127,50 USD în 5 zile
0,0 (0 recenzii)
0,0
0,0
Avatarul utilizatorului
See private message.
$170 USD în 5 zile
0,0 (0 recenzii)
0,0
0,0
Avatarul utilizatorului
See private message.
$25,50 USD în 5 zile
0,0 (0 recenzii)
0,0
0,0

Despre client

Steagul SWEDEN
Sweden
5,0
1
Membru din mai 23, 2010

Verificarea clientului

Mulțumim! Ți-am trimis prin e-mail linkul pe care trebuie să-l accesezi pentru a revendica creditul gratuit.
A apărut o eroare la trimiterea e-mailului. Încearcă din nou.
Utilizatori înregistrați Totalul proiectelor postate
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Se încarcă previzualizarea
S-a oferit permisiunea de depistare a locației.
Ți-a expirat sesiunea pentru conectare sau te-ai deconectat. Conectează-te din nou.