Talk:AVL tree/Java: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
The Java version was ported from C# in 2016. The port of the full I# class library took only a week. For this reason, I decided to release the source code. It is available on [https://sourceforge.net/projects/isharpjava/ SourceForge]. This download is probably the quickest way to get AVL Trees up and running in Java. The download supports NetBeans, Eclipse and IntelliJ under Windows. The actual I# project is included in the .zip file and it is a NetBeans project. The documentation is at [http://nncnannara.net/Html/English/Java/index.html I#]. [[User:NNcNannara|NNcNannara]] ([[User talk:NNcNannara|talk]]) 10:20, 11 July 2016 (UTC)
The Java version was ported from C# in 2016. The port of the full [http://nncnannara.net/Html/English/Java/index.html Calculus] class library took only a week. [User:NNcNannara|NNcNannara]] ([[User talk:NNcNannara|talk]]) 10:20, 11 July 2016 (UTC)


The abbreviated version of Java on the main page will suffer in performance just like the C++ version on the main page - see [http://rosettacode.org/wiki/Talk:AVL_tree/C%2B%2B C++ Talk].
The abbreviated version of Java on the main page will suffer in performance just like the C++ version on the main page - see [http://rosettacode.org/wiki/Talk:AVL_tree/C%2B%2B C++ Talk].


The Java implementation of AVL Trees is a bit different to the C# version in that references to references are not available. This means that functions like RotateLeft and RotateRight return the new node rather than the function updating the reference for you. It is only a cosmetic change to the code. When Wikipedia rewrite their pseudo code they may use the Java model of returning the new node rather than updating a reference (or they may use references to pointers - if references are defined in pseudo code at all - I don't know).[[User:NNcNannara|NNcNannara]] ([[User talk:NNcNannara|talk]]) 11:25, 16 July 2016 (UTC)
The Java implementation of AVL Trees is a bit different to the C# version in that references to references are not available. This means that functions like RotateLeft and RotateRight return the new node rather than the function updating the reference for you. It is only a cosmetic change to the code. [[User:NNcNannara|NNcNannara]] ([[User talk:NNcNannara|talk]]) 11:25, 16 July 2016 (UTC)

Latest revision as of 12:05, 23 May 2017

The Java version was ported from C# in 2016. The port of the full Calculus class library took only a week. [User:NNcNannara|NNcNannara]] (talk) 10:20, 11 July 2016 (UTC)

The abbreviated version of Java on the main page will suffer in performance just like the C++ version on the main page - see C++ Talk.

The Java implementation of AVL Trees is a bit different to the C# version in that references to references are not available. This means that functions like RotateLeft and RotateRight return the new node rather than the function updating the reference for you. It is only a cosmetic change to the code. NNcNannara (talk) 11:25, 16 July 2016 (UTC)