Faster/Leaner Node Iterator

This is an expression evaluator program right now. The program has a GUI that consist of a text box to put in your mathematical expression and a TreeView control that display in a tree how the expression is structured.

Simple program. This is what I need help with.

I am testing a piece of code to make it faster and leaner for use in my larger project.

So anyone who can make the following code faster, leaner and use less resources, then bid on it.


This is what I need... a better performing implementation of the node interface's iterator() method.

Performance is measured as:

* Throughput in nodes per second.

* Heap utilization in nodes per kilobyte.

Performance is measured by the [url removed, login to view] tool which is included in the attachment distribution.

* You may add/modify/remove iterator() methods to/from any direct or indirect subclass of [url removed, login to view] (including abstract node's current implementation).

* You may not change any other code in the distribution.

* You may, however, add your own helper classes.

* You may only write pure Java code; JNI is not permitted.

* Give me correct codes please. In particular, your code must always return a valid iterator for any given node.

* However, you do not need to implement the remove() method besides signalling an UnsupportedOperationException (just like the current implementation does).

The Fonda tool prints measurements for a particular expression tree. Use the same tree for our evaluation of the submissions. But we may also use other trees.

Before changing anything, I suggest that you run the test program to get baseline performance numbers for your system:

$ java [url removed, login to view]

After a while, see output like this:

Fonda says...

Number of nodes : 10001

Latency : 15327 ms for 1000 tree traversals

Storage : 480256 bytes for 3 tree traversals

Throughput : 652508.64 nodes/second

Heap utilization : 63.97 nodes/KByte

Note that only the last two numbers matter. Bigger is better.

Give me the source code for any classes you modified and for any new helper classes you created.

Thats it. I need something good.

The files are uploaded in the zip file.

Kemahiran: Java

Lihat lagi: java leaner, what is a tree node, tree to box, trees c, tree node, source code in oop, pure storage, number of nodes in a tree, not always right, no of trees with n nodes, node of a tree, node in tree, iterator second, iterator it, iterator in c, how to use iterator, gui number, direct performance, what is performance testing, what is node, what is an oop, oop oop, treeview, trees, structured

Tentang Majikan:
( 0 ulasan ) Bombay, India

ID Projek: #29428

10 pekerja bebas membida secara purata $64 untuk pekerjaan ini


Consider IT Done!

$40 USD dalam 15 hari
(15 Ulasan)

Hello I am expert in optimizing Java code because I am a mobile device game developer so I need a fast code with restricted memory and small in size.

$30 USD dalam 5 hari
(1 Ulasan)

Hi, I am not bidding for the project yet, just interested in the work as a hobby. One of the files is missing [login to view URL] can you please upload that as well? Thanks, Amit.

$100 USD dalam 15 hari
(0 Ulasan)

We will doing all that you want (and more... :-))). Quickly, Professional, Quality - our answer you and your organization. We work more than 10 years.. There are questions? Examples of jobs http://portfolio.pixy-tix Lagi

$100 USD dalam 14 hari
(0 Ulasan)

Hi, We take this opportunity to introduce ourselves as Vyas Infotech Private Limited, ISO 9001:2000, 14001 Certified IT Solution Provider Company based at Ahmedabad, India. Though we are new at Getafreelancer, we are Lagi

$100 USD dalam 20 hari
(0 Ulasan)

Very much interested to work on your project. I have 7 years of experience!

$100 USD dalam 14 hari
(0 Ulasan)

Hi, i specialize in optimaziting Java code, i would be more than happy to help you.

$30 USD dalam 20 hari
(0 Ulasan)

we have prfessionals in java

$75 USD dalam 15 hari
(0 Ulasan)

I had a quick look, and my throughput here was 2361511.22 nodes/second and is now 3107830.95 nodes/second. I can provide this right now for $30, or investigate further for $neg.

$30 USD dalam 0 hari
(0 Ulasan)

This type of work would take concentration to develop and solve this type of [login to view URL] i am commited to do this type of project and expecting same from your side. thaks

$30 USD dalam 5 hari
(0 Ulasan)