Find Jobs
Hire Freelancers

Array fast sorting algorithm

$10-30 USD

Terminado
Publicado hace más de 8 años

$10-30 USD

Pagado a la entrega
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 del proyecto: 8349321

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 9 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
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 en 3 días
4,9 (11 comentarios)
4,7
4,7
4 freelancers están ofertando un promedio de $26 USD por este trabajo
Avatar del usuario
A proposal has not yet been provided
$30 USD en 2 días
4,9 (587 comentarios)
6,8
6,8
Avatar del usuario
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 en 1 día
4,9 (28 comentarios)
3,6
3,6
Avatar del usuario
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 en 1 día
4,9 (6 comentarios)
3,7
3,7
Avatar del usuario
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 en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
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 en 3 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de FRANCE
Paris, France
5,0
91
Forma de pago verificada
Miembro desde dic 26, 2004

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.