Sorting and OpenJDK

If you are looking for sorting algorithms and if you use some sorting algorithm in your code/application/big application, then have a look here. First of all sorting/searching is a classic thing. It take more than 70 percent of your application time.People/Developer/Mathematician do a lot of work on optimizing this work to get Best, best out of best.

Early days, JDK used to use QuickSort which is one of the best sorting algorithm and go for a complexity of O(nlogn). But mind it, QuickSort is a recursive algorithm and consume space. Whereas some of the algorithm which has the complexity like O(n\^2) go for less complex in terms of memory. These days our platform varies from small mobile device to a terabyte storage machine.

JDK has improved sorting algorithm a lot, but the new one which is the sorting algorithm used in Android are get into OpenJDK. Have a look here:

Code is awesomely understandable but just a small explaination. It start with merge sort, which has effecient complexity of O(nlogn). But when the nodes go too much it merge, it calls binary insertion sorting, which is one of the best for small number of elements. Read this comment :

\* Sorts the specified portion of the specified array using a binary
\* insertion sort.  This is the best method for sorting small numbers
\* of elements.  It requires O(n log n) compares, but O(n\^2) data
\* movement (worst case).

I don't know is there any document available who did the actually benchmarking but if I get time, I would love to do checking with all worst/avg cases. It's a nice and tricky algorithm which take care of time complexity and space complexity both.  


can we change the path of the image in its ---url:"{__DIR__}"? how can i change it to indicate a parent path,I find it can't,and it can only in current directory or subdirectory? This makes it not so convenient.Can U
help me?

Posted by guest on November 30, 2009 at 12:49 AM IST #

for what thing, this question belongs too.. is it JavaFX?

Posted by Vaibhav Choudhary on December 02, 2009 at 07:25 AM IST #

I think I will try to recommend this post to my friends and family, cuz it’s really helpful.

Posted by Christian Louboutin on December 23, 2009 at 11:01 PM IST #

<p>Heat can’t distract from pure fabulosity… Love those shoes.When do they go on sale again? and please tell me they will be in size 11… The big foot girls also love choosing <a href="" target="_blank">christian louboutin</a> too! Because they are so fit you----girls,they will be your best choice!

Posted by christian louboutin shoes on December 30, 2009 at 05:37 AM IST #

[b][url=]mbt sneakers m walk[/url][/b]
[b][url=]mbt sneakers chapa [/url][/b]
[b][url=]mbt sneakers lami[/url][/b]
[b][url=]mbt masai shoes[/url][/b]
[b][url=]mbt barabara mens shoes [/url][/b]
[b][url=]mbt chapa sneakers[/url][/b]
[b][url=]mens mbt m walk sky[/url][/b]
[b][url=]mens mbt m walk silver[/url][/b]
[b][url=]mens mbt m walk pink[/url][/b]
[b][url=]mens mbt m walk black[/url][/b]
[b][url=]mens mbt m walk white[/url][/b]
[b][url=]mens mbt chapa water[/url][/b]
[b][url=]mens mbt chapa ebony[/url][/b]
[b][url=]mens mbt chapa black[/url][/b]
[b][url=]mens mbt chapa gtx stone[/url][/b]
[b][url=]mens mbt chapa gtx black[/url][/b]
[b][url=]mens mbt chapa caviar black[/url][/b]
[b][url=]mens mbt sport black[/url][/b]
[b][url=]mens mbt safiri chill[/url][/b]
[b][url=]mens mbt safiri navy[/url][/b]

Posted by mbt shoes on December 30, 2009 at 06:56 AM IST #

[urltp://][b]authentic football jerseys[/b][/url]
[url=][b]authentic jerseys[/b][/url]
[url=][b]authentic nfl jerseys[/b][/url]
[url=][b]authentic nhl jerseys[/b][/url]
[url=][b]buy nfl jerseys[/b][/url]
[url=][b]cheap football jerseys[/b][/url]
[url=][b]cheap jerseys[/b][/url]
[url=][b]cheap nfl jerseys[/b][/url]
[url=][b]cheap nhl jerseys[/b][/url]
[url=][b]chicago blackhawks nhl[/b][/url]
[url=][b]custom football jerseys[/b][/url]
[url=][b]custom nfl jerseys[/b][/url]
[url=][b]customized nfl jerseys[/b][/url]
[url=][b]discount nfl jerseys[/b][/url]
[url=][b]discount nhl jerseys[/b][/url]
[url=][b]hockey jerseys[/b][/url]
[url=][b]nfl authentic[/b][/url]
[url=][b]nfl football jerseys[/b][/url]
[url=][b]nfl jersey[/b][/url]
[url=][b]nfl jerseys[/b][/url]
[url=][b]nfl memorabilia[/b][/url]
[url=][b]nfl replica jerseys[/b][/url]
[url=][b]nfl store[/b][/url]
[url=][b]nfl stores[/b][/url]
[url=][b]nfl youth[/b][/url]
[url=][b]nhl apparel[/b][/url]
[url=][b]nhl hockey[/b][/url]
[url=][b]nhl hockey apparel[/b][/url]
[url=][b]nhl hockey jerseys[/b][/url]
[url=][b]nhl jersey[/b][/url]
[url=][b]nhl jerseys[/b][/url]
[url=][b]nhl new jersey devils[/b][/url]
[url=][b]nhl player[/b][/url]
[url=][b]nhl shop[/b][/url]
[url=][b]nhl store[/b][/url]
[url=][b]nhl team[/b][/url]
[url=][b]nhl teams[/b][/url]
[url=][b]nhl vintage[/b][/url]
[url=][b]penguins jerseys[/b][/url]
[url=][b]red wings nhl[/b][/url]
[url=][b]replica jerseys[/b][/url]
[url=][b]saints jerseys[/b][/url]
[url=][b]sports apparel[/b][/url]
[url=][b]sports jerseys[/b][/url]
[url=][b]steeler jerseys[/b][/url]
[url=][b]stitched nfl jerseys[/b][/url]
[url=][b]team jerseys[/b][/url]
[url=][b]vintage nhl jerseys[/b][/url]
[url=][b]wholesale nfl[/b][/url]
[url=][b]youth jerseys[/b][/url]
[url=][b]youth nfl jerseys[/b][/url]

Posted by kissnfl on January 14, 2010 at 01:21 AM IST #

[url=]timberland logo[/url]
[url=]timberland company[/url]
[url=]Timberland Womens Shoes[/url]
[url=]timberland official site[/url]
[url=]official timberland[/url]
[url=]timberland official website[/url]
[url=]timberland classic[/url]
[url=]timberland outdoor[/url]
[url=]timberland on line[/url]
[url=]timberland history[/url]
[url=]timberland usa[/url]
[url=]timberland euro hiker[/url]
[url=]timberland mukluk[/url]
[url=]timberland online store[/url]
[url=]timberland site[/url]
[url=]pink timberland[/url]
[url=]timberland splitrock[/url]
[url=]timberland nellie[/url]
[url=]timberland shoes[/url]
[url=]timberland chukka[/url]
[url=]timberland roll top[/url]
[url=]Timberland knee high boots[/url]
[url=]work boot Timberland[/url]
[url=]timberland boots for women[/url]
[url=]timberland boots men[/url]
[url=]timberland boots for men[/url]
[url=]Timberland Hiking Boot[/url]
[url=]timberland womens boots[/url]
[url=]timberland work boots[/url]
[url=]timberland mens boots[/url]
[url=]timberland kids boots[/url]

Posted by vip-boots on January 14, 2010 at 01:22 AM IST #

I will set you on a pedestal !!

Posted by Christian Louboutin on January 24, 2010 at 08:49 AM IST #

one day i went shopping outside,and in an ed hardy store,I found some kinds of ed hardy i love most they are Your website is really good Thank you for the information

Posted by Abercrombie Fitch on January 26, 2010 at 03:08 AM IST #

hey u should update your blog

Posted by Christian Louboutin on January 26, 2010 at 04:55 AM IST #

<a href="" rel="nofollow"><strong>Christian Louboutin Shoes</strong></a>
<a href="" rel="nofollow"><strong>Christian Louboutin Sale</strong></a>
<a href="" rel="nofollow"><strong>Cheap Christian Louboutin</strong></a>

<a href="" rel="nofollow"><strong>Christian Shoes</strong></a>
<a href="" rel="nofollow"><strong>Louboutin Shoes</strong></a>
<a href="" rel="nofollow"><strong>Louboutin</strong></a>

Posted by may on February 07, 2010 at 12:57 AM IST #

Christian Louboutin
Christian Louboutin Shoes
christian louboutin sale
Christian Louboutin Boots
Christian Louboutin Pumps
Christian Louboutin Sandals

tiffany wholesale
tiffany stores
replica tiffany
cheap jewelry
replica tiffany retail
pandora jewelry
replica pandora jewelry

ed hardy
ed hardy clothing
ed hardy t shirt
ed hardy jeans
wholesale ed hardy
ed hardy shirt
ed hardy boots

ed hardy swimwear
ed hardy clothing
ed hardy clothes
ed hardy t shirts
ed hardy jeans
ed hardy bags
ed hardy caps
ed hardy sunglasses
ed hardy sunglass

Posted by china wholesale on March 07, 2010 at 01:33 AM IST #

I would like to introduce a very good company, electronic products dealer.
I have bought some products from company,the price was very cheap,and the products are very good quality!They accept paypal, credit card transactions,bank transfers,and more.Just have a look at this web page :
I am sure you will could save a lot of money!
Best regards!

Posted by wwwnice on March 09, 2010 at 05:58 AM IST #

We have both been buying all our jeans from Mapatasi since it opened. It stocks Seal Kay, French Connection, manolo blahnik , Blood and Glitter, Levis and our favourite For All Mankind. Because the owners actually work in the shop, you can get the best advice straight away, which is a godsend.

Posted by jimmy choo shoes on March 15, 2010 at 06:49 AM IST #

The manolo shoesfounders met at a mutual friend's clothing store in Los Angeles 16 years ago. Taylor was a struggling actress with a baby on the way. Skaist-Levy, a fashion school grad, was designing hats. Their first creation was maternity blue jeans:

Posted by ysl boots on March 15, 2010 at 06:50 AM IST #

hgfhdhgf ghfhd

Posted by hjh on April 15, 2010 at 06:59 AM IST #

Post a Comment:
  • HTML Syntax: NOT allowed

Vaibhav Hi, I am Vaibhav Choudhary working in Oracle with JDK team. This blog is all about simple concept of Java, JVM and JavaFX.


« July 2016