Find Jobs
Hire Freelancers

a structure which functions as both maximum tree and as binary tree search.

€30-250 EUR

Closed
Posted almost 11 years ago

€30-250 EUR

Paid on delivery
The aim of the thesis is the implementation of a structure which functions as both a maximum and tree as a binary search tree. In particular, each node i of the tree stored value pair (pi, ei) where pi is the priority and ei the price of the item. Priorities for pi, the pairs form tree maximum while in prices ei, forming a binary search [login to view URL] the following figure shows the steps to delete the pair (47,13). Essentially the pair relegated successively in the tree with a series of successive simple rotations to be stored in the tree leaves whenever and easily deleted. At each step, the rotation on the node that hosts the pair (47,13) and one of his two children, namely who has the highest priority. Eg in step (a) node (47,13) has two kids (42,10) and (36,24). The rotation occurs between the node (47,13) and (42,10) ie with a child who has the highest priority. In the same figure appears and the process of importing following the steps from the end to the beginning. Specifically in figure (f) The introductory element (47.13), taking into account only the values ​​ei. Then, a series of revolutions per pair (47,13) rises higher in the tree to the point that it ceases violating the basic property of the tree maxima (steps (f) - (a)). a) Implement the functions of insertions and deletions. b) Implement a function Find_second_next that takes as argument an element a and finds the second smallest among all elements ei of the tree that is larger than a. For example, if executed Find_second_next (11) to the tree shape (s) will be refunded the item 13. c) Implement the operation Print_between which accepts as arguments two numbers, k1, k2 (k1 <k2) and will print all elements ei of the tree with values ​​in the interval [k1, k2]. Will be delivered the source code printed and on CD along with the object code. Particular attention should be paid to proper documentation of your program. It is therefore your code to be accompanied by a separate document that will provide a detailed description of your techniques. Also, within the source code should be 'dense' comments couched in Greek.
Project ID: 4652715

About the project

6 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
6 freelancers are bidding on average €153 EUR for this job
User Avatar
Hello, I can help you with the project. Please check PM for some questions, Thanks,
€44 EUR in 2 days
5.0 (4 reviews)
2.2
2.2
User Avatar
Hello, peace of a cake, Let's begin. check p.m.
€101 EUR in 3 days
5.0 (2 reviews)
1.0
1.0
User Avatar
i am ready to do the job
€155 EUR in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I like the project and i will do it
€155 EUR in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I can do this job in a professional manner. I can assure you to provide 100% accurate work. Please contact with me through private message. Thanks.
€144 EUR in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Kalispera,steile m pm gia plirofories.
€255 EUR in 4 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of GREECE
Athens, Greece
5.0
1
Member since Sep 7, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.