473,811 Members | 3,521 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

quick+insertion details by microsoft(1997)

Am
hi
i came to know that microsoft improved the efficiency of quick sort
by using a cutoff
of 8 elements and continuing with insertion sort then, do anybody have
the details about it
please contant me.

Apr 14 '06 #1
5 1844
"Am" <ma*********@gm ail.com> wrote in message
news:11******** **************@ g10g2000cwb.goo glegroups.com.. .
: i came to know that microsoft improved the efficiency of quick sort
: by using a cutoff
: of 8 elements and continuing with insertion sort then, do anybody have
: the details about it
: please contant me.

The enhanced algorithm is called *introsort*, designed by David Musser.
http://en.wikipedia.org/wiki/Introsort
It is often used to implement std::sort.

--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Brainbench MVP for C++ <> http://www.brainbench.com
Apr 14 '06 #2
Ivan Vecerina wrote:
"Am" <ma*********@gm ail.com> wrote in message
news:11******** **************@ g10g2000cwb.goo glegroups.com.. .
: i came to know that microsoft improved the efficiency of quick sort
: by using a cutoff
: of 8 elements and continuing with insertion sort then, do anybody have
: the details about it
: please contant me.

The enhanced algorithm is called *introsort*, designed by David Musser.
http://en.wikipedia.org/wiki/Introsort
It is often used to implement std::sort.


That's a different enhancement.

--

Pete Becker
Roundhouse Consulting, Ltd.
Apr 14 '06 #3
Am wrote:
hi
i came to know that microsoft improved the efficiency of quick sort
by using a cutoff
of 8 elements and continuing with insertion sort then, do anybody have
the details about it
please contant me.


You've just given the details. What's the question? (Note that just
about any algorithms book will talk about this enhancement)

--

Pete Becker
Roundhouse Consulting, Ltd.
Apr 14 '06 #4
Am
Thank you pete,but what i need is the internal details ie the
performance of algorithm for various input size and type.

Apr 15 '06 #5
Am
but intosort ,as you said begins with quick sort and ends up utilising
heap sort but i require info regarding quick and insertion sort

Apr 15 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
9284
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
16
1861
by: ranger | last post by:
Hi, I'm a beginner with C++, studying on my own from a book and I've encoutered quite some problems.. If possible, someone out there might help me out.. The problem is the following.. I've tried to create a couple of string class/functions.. and they do compile.. but when I run them.. windows suddenly reports an error.. As I'm just a beginner in C++, with noone around me to help.. I'd appreciate if someone might help me out!
2
3909
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at http://home.pacific.net.sg/~jacksony ? (the drop down bar could not work at www.apchosting.net but can drop at home.pacific.net.sg. I suspect it is a server problem but was told it is not possible, therefore assuming it is a client script problem? the script works last time...
1
9667
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
1
4742
by: tributek | last post by:
Hello, I work on a report and everything is going well... excepted the export. I have groups defined in the report so each differente groups will appear in a new sheet in Excel. Great! Question: I would like to know if it's posible to set up dynamicaly the name of the created sheets depending on the group name? thanks
139
14250
by: ravi | last post by:
Hi can anybody tell me that which ds will be best suited to implement a hash table in C/C++ thanx. in advanced
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10384
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10395
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6887
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5553
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.