Find Jobs
Hire Freelancers

Array fast sorting algorithm

$10-30 USD

已完成
已发布超过 8 年前

$10-30 USD

货到付款
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: 8349321

关于此项目

4提案
远程项目
活跃9 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
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 在3天之内
4.9 (11条评论)
4.7
4.7
4威客以平均价$26 USD来参与此工作竞价
用户头像
A proposal has not yet been provided
$30 USD 在2天之内
4.9 (587条评论)
6.8
6.8
用户头像
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 在1天之内
4.9 (28条评论)
3.6
3.6
用户头像
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 在1天之内
4.9 (6条评论)
3.7
3.7
用户头像
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 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
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 在3天之内
0.0 (0条评论)
0.0
0.0

关于客户

FRANCE的国旗
Paris, France
5.0
91
付款方式已验证
会员自12月 26, 2004起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。