Find Jobs
Hire Freelancers

Array fast sorting algorithm

$10-30 USD

Opravljeno
Objavljeno pred več kot 8 leti

$10-30 USD

Plačilo ob dostavi
Hi, I'm writing a small software that makes an heavy use of sorting a 2 dimensional array. Today I have something that works but it's very slow as I call it many many many times. I need you to write a FAST sorting algorithm IN DELPHI. What I have today: i, j: Integer; X, x1: Double; for i := 1 to 49 do begin for j := i + 1 to 49 do begin if tmpArr[i][1] > tmpArr[j][1] then begin X := tmpArr[i][1]; x1 := tmpArr[i][0]; tmpArr[i][1] := tmpArr[j][1]; tmpArr[i][0] := tmpArr[j][0]; tmpArr[j][1] := X; tmpArr[j][0] := x1; end; end; end; The array is type: array [1 .. 49, 0 .. 1] of Double Let me know if you have any question
ID projekta: 8349321

Več o projektu

4 ponudb
Projekt na daljavo
Aktivno pred 9 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
Dodeljeno:
Avatar uporabnika
Hi. It's fast sorting. near 80 array changing. I think it will be faster than yours near 5 times. type TArray = array [1 .. 49, 0 .. 1] of Double; var ffff: integer; procedure qSort(var A: TArray; min, max: Integer); var i, j: Integer; supp, X, x1: Double; begin supp:=A[max-((max-min) div 2)][1]; i:=min; j:=max; while i<j do begin while A[i][1]<supp do i:=i+1; while A[j][1]>supp do j:=j-1; if i<=j then begin X := A[i][1]; x1 := A[i][0]; A[i][1] := A[j][1]; A[i][0] := A[j][0]; A[j][1] := X; A[j][0] := x1; i:=i+1; j:=j-1; inc(ffff); end; end; if min<j then qSort(A, min, j); if i<max then qSort(A, i, max); end; procedure [login to view URL](Sender: TObject); var A: TArray; i: integer; s: string; begin for I := 1 to 49 do A[i][1] := random; ffff := 1; qSort(A, 1, 49); for I := 1 to 49 do s := s + ' ' + FloatToStr(A[i][1]); ShowMessage(IntToStr(ffff)); {} end;
$15 USD v 3 dneh
4,9 (11 ocen)
4,7
4,7
4 freelancerjev je oddalo ponudbo s povprečno vrednostjo $26 USD za to delo
Avatar uporabnika
A proposal has not yet been provided
$30 USD v 2 dneh
4,9 (587 ocen)
6,8
6,8
Avatar uporabnika
Hello. How are you? I saw your description and detail code. I understand it and can do it well. I have done several project like this. I'm an expert in Data Structures and Algorithms. And I know Delphi, Pascal, Java ,C/C++ and Python well. I'm interested this project. I want to discuss with you about this project. If it's possible,please contact me and explain more detail. I wait your good reply. Bye. Huang
$25 USD v 1 dnevu
4,9 (28 ocen)
3,6
3,6
Avatar uporabnika
Hi, I had done MS in Engineering. also I had several years of experience in the field of programming and optimizations. I can optimize your algorithm for sorting. Also I had replace it with faster algorithms.
$35 USD v 1 dnevu
4,9 (6 ocen)
3,7
3,7
Avatar uporabnika
Hi, I have more than 10 years of coding in Java. I have build complex distributed systems, low latent, higl concurrent systems. I am willing to do this in half money since this will be my first project here, in return I will need good review from you
$25 USD v 1 dnevu
0,0 (0 ocen)
0,0
0,0
Avatar uporabnika
University of Math 25+ years experience in applications development 10+ years experience in Delphi with various databases I have any ideas, but I must have the full sources , to test which is the fastest way
$35 USD v 3 dneh
0,0 (0 ocen)
0,0
0,0

O stranki

Zastava FRANCE
Paris, France
5,0
91
Plačilna metoda je verificirana
Član(ica) od dec. 26, 2004

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.