Find Jobs
Hire Freelancers

Parsing an XML file, binary trees forest in C/C++

$10-30 USD

Completed
Posted almost 9 years ago

$10-30 USD

Paid on delivery
The task should use some of the following libraries RapidXml, Pugixml, Libxml, Boost and it'll be running on 64 bit Linux. On input there is an XML file contains a forest of binary trees (<Segment>) <Segment> <Node id="1"> <True/> <Node id="2"> <SimplePredicate field="data1" operator="lessOrEqual" value="1.162715515"/> <Node id="4"> <SimplePredicate field="data2" operator="lessOrEqual" value="1.0299651565"/> <Node id="8"> <SimplePredicate field="data3" operator="lessOrEqual" value="0.8254138555"/> <Node id="14" score="4"> <SimplePredicate field="data4" operator="lessOrEqual" value="-0.72156197"/> </Node> <Node id="15" score="-1.5"> <SimplePredicate field="data4" operator="greaterThan" value="-0.72156197"/> </Node> </Node> <Node id="9"> <SimplePredicate field="data3" operator="greaterThan" value="0.8254138555"/> <Node id="16" score="-10"> From stdin you get a string like this (it can be an array of arguments if it's easier to work with that) data1:val1,data2:val2,...datan:valn|data1:val1,data2:val2,...datan:valn.... The "|" character marks end of each input The program would go through each tree using each of the inputs and based on the data:value pair will end up in some node and store the value of score into an array. At the end it would print an average value of the array elements along with the input data. For example an input data1:1.08;data2:1.01;data3:0.66;data4:-0.6 will store -1.5 into an array In pseudocode the program might look like this input=readstdin; forest=readXMLfromfile; foreach_input{ foreach_forest{ arr[length]=runthrough(); } avg=countavg(arr); print "data1;data2;data3;...;avg\n"; }
Project ID: 8218565

About the project

10 proposals
Remote project
Active 9 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
Awarded to:
User Avatar
A proposal has not yet been provided
$15 USD in 5 days
5.0 (1 review)
0.6
0.6
10 freelancers are bidding on average $39 USD for this job
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
4.9 (1327 reviews)
7.5
7.5
User Avatar
I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the language is c++ under linux. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ scripts which has the same effect, of course garbage collection included. I also made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
$50 USD in 1 day
4.9 (126 reviews)
6.9
6.9
User Avatar
A proposal has not yet been provided
$111 USD in 3 days
4.7 (18 reviews)
5.0
5.0
User Avatar
hi... i can do this. please let me know immediately to start. i can deliver you on time. please initiate communication to discuss further. thanks
$50 USD in 1 day
4.7 (40 reviews)
5.0
5.0
User Avatar
I can implement your requirements in Boost. I have over 12 years experience in developing applications using Boost
$35 USD in 1 day
4.8 (9 reviews)
4.5
4.5
User Avatar
Hello, I have over 6+ years of experience in C/C++ programming. I can write this program in C using libxml2 to parse the xml file. I will make this program to take inputs from command line. I have written various applications involving xml parsing and C/C++ in my past projects. Kindly read employer reviews before assigning this project to me.. Please share your project details so that we can work and discuss together.
$25 USD in 1 day
4.7 (7 reviews)
2.6
2.6
User Avatar
A proposal has not yet been provided
$20 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Пропозиція ще не була подана
$30 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CZECH REPUBLIC
Aachen, Czech Republic
5.0
9
Payment method verified
Member since Jan 3, 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.