Find Jobs
Hire Freelancers

Delphi: Balanced binary tree control

$30-250 USD

กำลังดำเนินการ
โพสต์ เกือบ 5 ปีที่ผ่านมา

$30-250 USD

ชำระเงินเมื่อส่งงาน
Implement in Delphi 10.3 (or compatible) two non visual data structure controls called TBinaryKeySearch and TBinaryKeyValueSearch. These two controls are balanced binary search trees. The controls are identical other than TBinaryKeyValueSearch contains name = value pairs, i.e. each node contains a key just like TBinaryKeySearch but also each key contains a string value. TBinaryKeySearch must have these methods: 0) Constructor Create(CaseSensitive : Boolean = False); - Creates an instance of the structure. If the given CaseSensitive is False, all Key comparisons of the control must be done as not case sensitive. Note: You can implement this simply by converting all Keys to LowerCase(). 1) Function Add(const Key : String) : Boolean; - Returns true if Key was added. Key is not added if key is empty string or if key already exists in the structure. 2) Function Query(const Key : String) : Boolean; - Returns true if Key exists in the structure. 3) Procedure Clear; - Clears the structure. 4) Function Remove(const Key : String) : Boolean; - Removes the given Key. Returns true if the Key was removed. Key is not removed if it does not exist in the structure. 5) Procedure SaveToFile(const Filename : String); - Saves the structure to a text file in human readable format. For example, one key per line. 6) Procedure SerializeToFile(const Filename : String); - Saves the structure to a file. 7) Procedure SerializeFromFile(const Filename : String); - Loads the structure from a file generated by an earlier SerializeToFile() call. 8) Procedure SelfTest(); - Perform a random number of the above methods and verify with assert() they work correctly. For example, add key "foobar" and after verify Query confirms "foobar" exists. The method must test all methods except SaveToFile() TBinaryKeyValueSearch must have these methods: 0) Constructor Create(CaseSensitive : Boolean = False); - Creates an instance of the structure. If the given CaseSensitive is False, all Key comparisons of the control must be done as not case sensitive. Note: You can implement this simply by converting all Keys to LowerCase(). This does not affect the Values in any ways, i.e. do not convert them lower case. 1) Function Add(const Key, Value : String) : Boolean; - Returns true if Key Value pair was added. Key is not added if key is empty string. If Key already exists in the structure, its value is updated with the given Value. Note: Value can be empty. 2) Function Query(const Key : String; Var Value : String) : Boolean; - Returns true if Key exists in the structure and returns the Value of the key via Value. 3) Procedure Clear; - Clears the structure. 4) Function Remove(const Key : String) : Boolean; - Removes the given Key. Returns true if the Key was removed. Key is not removed if it does not exist in the structure. 5) Procedure SaveToFile(const Filename : String); - Saves the structure to a text file in human readable format. For example, in format of "Key => Value", one pair per line. 6) Procedure SerializeToFile(const Filename : String); - Saves the structure to a file. 7) Procedure SerializeFromFile(const Filename : String); - Loads the structure from a file generated by an earlier SerializeToFile() call. 8) Procedure SelfTest(); - Perform a random number of the above methods and verify with assert() they work correctly. For example, add key "foobar" and after verify Query confirms "foobar" exists. The method must test all methods except SaveToFile() These controls are used mainly with the Add() and Query() methods and expected data is under 200 000 rows of data with average Key (and Value) lengths of 200 characters. The Remove() is rarely used. You can use any existing ready made code as a base of this work. Googling "Delphi balanced binary tree" shows up many cases of sample code.
รหัสโปรเจกต์: 19730318

เกี่ยวกับโปรเจกต์

4 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 5 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
หมอบหมายให้:
รูปอวาตาร์ของผู้ใช้
Hi, I'm not that verse in Delphi but have messed with it in the past and it is similar to many other programming languages in my repertoire. I am familiar with key search algorithms and have reference text and as you said Google is always an option. I'd like to know your project timeline. Please send me a private message I can't respond until you send me a message.
$111 USD ใน 4 วัน
0.0 (0 รีวิว)
0.0
0.0
4 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $150 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
hi, i can do this project, but need know what you want inheritance from Component or simple Object? TBinaryKeySearch = class(TComponent) or TBinaryKeySearch=class(TObject)? or you want use generics like: TBinaryKeySearch<TKey>?
$250 USD ใน 7 วัน
5.0 (19 รีวิว)
4.9
4.9
รูปอวาตาร์ของผู้ใช้
Hello. You need binary tree pascal code write. Is small task for my I coded delphi from 1998 I have hi degree in information system in economics. Pay only full complete
$99 USD ใน 3 วัน
4.9 (15 รีวิว)
3.6
3.6
รูปอวาตาร์ของผู้ใช้
Hi, High talented Delphi, MatLab, Unity, VBA, Access, Microsoft Office, Java, Python and R, C#, C++, QT expert is here! I have graduated from National University of Singapore and received Master Degree there. As I am a professional Delphi, Python and C# developer, I can do your job perfectly Fast and Perfectly on time. I have 10+ years of experience for Delphi, Python, R, C#, C++ application Development. I have developed several dozens of applications such as OCR, AI, e-commerce, banking, UNESCO census. I understood what you want and want to like to discuss in more detail for your project. I sincerely hope to work with you. If you hire me and give me a chance to prove my abilities, I will give you the best results with my professional skills and will do my best to finish the project successfully. I am sure I can help you. Please see my profile. I am looking forward to your soon reply. Best regards.
$140 USD ใน 7 วัน
5.0 (1 รีวิว)
1.8
1.8

เกี่ยวกับลูกค้า

ปักธงของ THAILAND
Turku, Thailand
5.0
621
ยืนยันวิธีการชำระเงินแล้ว
เป็นสมาชิกตั้งแต่ มี.ค. 16, 2011

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง